Skip to content

Brands

Use these APIs to create, update and read 10DLC Brand Records

Schema

NameTypeDescription
legal_company_nameString requiredThe legal name of the entity that owns the business
dbaString requiredDoing Business As, the operating name
country_of_registrationString(format:country-code) requiredThe country of registration of the Legal Company, valid inputs are CA or US
entity_typeString requiredThe legal structure of your organization
Valid Inputs:Private Company,Publicly Traded Company,Non-Profit Organization,Government,Sole Proprietor
business_verticalString requiredThe legal structure of your organization
Valid Inputs:Agriculture,Communication,Construction/Material,Education,Energy,Entertainment,Finance,Gambling,Government,Healthcare,Hospitalty,HR,Insurance,Legal,Manufacturing,Non-Profit,Political,Delivery,Professional Service,Property,Retail,Technology,Transportation
ein_numberString requiredFor US organizations enter the EIN number. For Canadian organizations enter the business number (first 9 digits).
tax_number_id_ein_countryString requiredThe country that has issued the EIN Number or Corporation Number
duns_giin_leiStringThe type of number you are going to put in the next field, valid inputs are DUNS, GIINS or LEI
duns_giin_lei_numberStringThe DUNS, GIINS or LEI number of your company
addressString requiredThe legal address of the organization
cityString required
state_province requiredString(formt:state/province-code)The two letter state or province code
zip_postal_code requiredStringThe zip or postal code
country requiredString(format:country-code)The two letter country code
stock_exchangeStringRequired when entity type is “Publically Traded Company”
stock_symbolStringRequired when entity type is “Publicly Traded Company”
first_nameStringRequired if Entity type is Sole Proprietor
last_nameStringRequired if Entity type is Sole Proprietor
phoneString requiredSupport phone number for the organization
emailString(format:email) requiredSupport Email Address for the organization
business_contactString(format:email)Business Contact Address for the organization
websiteString(format:url)Must be included if Brand has a website, if the website has a mandatory phone number collection field for customers then the following statement must be displayed “Std. Message and Data rates may apply. Text STOP to cancel. HELP for Help”
webhookString(format:url)A URL that will have POSTs sent to with any status changes to the brand.

Webhook Format:

{
"id":"123xxx456",
"legal_company_name":"Company Name",
"status":"Pending",
"rejection_reason":"reason" // if the status is Rejected
}

Create a new Brand Record

Request:

POST https://api.swift-api.com/api/v0/brands
Content-Type: application/json
Authorization: Bearer ABC123
{
"data": {
"legal_company_name": "Business Name",
"dba": "Business DBA",
"country_of_registration": "CA",
"entity_type": "Private Company",
"business_vertical": "Agriculture",
"duns_giin_lei": "DUNS",
"duns_giin_lei_number": "1xxx1",
"ein_number": "1xxx1",
"tax_number_id_ein_country": "CA",
"address": "11 King Street",
"city": "City",
"state_province": "ON",
"zip_postal_code": "a2a2a2",
"country": "CA",
"stock_exchange": "NASDAQ",
"stock_symbol": "STCK",
"first_name": "Jon",
"last_name": "Doe",
"phone": "1112223333",
"email": "address@gmail.com",
"business_contact": "address@gmail.com",
"website": "www.url.com",
"2ebhook": "www.url2.com"
}
}

Response:

HTTP/1.1 200 OK
Content-Type: application/json
{
"data": {
"id": "234xxx345"
},
"type": "csp_campaign"
}

Get a Brand Record

Request:

GET https://api.swift-api.com/api/v0/brands/{id}/
Authorization: Bearer ABC123

Response:

HTTP/1.1 200 OK
Content-Type: application/json
{
"data": {
"status": "Pending",
"rejection_reason": "reason", // if the status is "Rejected"
"legal_company_name": "Business Name",
"dba": "Business DBA",
"country_of_registration": "CA",
"entity_type": "Private Company",
"business_vertical": "Agriculture",
"duns_giin_lei": "DUNS",
"duns_giin_lei_number": "1xxx1",
"ein_number": "1xxx1",
"tax_number_id_ein_country": "CA",
"address": "11 King Street",
"city": "City",
"state_province": "ON",
"zip_postal_code": "a2a2a2",
"country": "CA",
"stock_exchange": "NASDAQ",
"stock_symbol": "STCK",
"first_name": "Jon",
"last_name": "Doe",
"phone": "1112223333",
"email": "address@gmail.com",
"business_contact": "address@gmail.com",
"website": "www.url.com",
"webhook": "www.url2.com"
}
}

Update a Brand Record

Request:

PUT https://api.swift-api.com/api/v0/brands/{id}/
Content-Type: application/json
Authorization: Bearer ABC123
{
"data": {
"email": "newaddress@gmail.com",
"website": "www.newurl.com"
}
}

Response:

HTTP/1.1 204 No Content