Documentation

LogIn
  • Home
  • API
  • Add/Edit/delete Phone service sub account with legal info

This API to manage adding/editing/deleting a sub account for phone service and their legal info
Method: Get/Post

Base URL : https://hubbucs.com/site/api/add_edit_subaccount
Mandatory Parameters Sample Description
key 374593457034859 The company account API key, you can get from company settings > API settings
action integer 1 for add new (default value), 2 for editing, 3 for delete sub account


Optional Parameters Sample Description
sub_account_id ID of the sub account required only in case of editing or deleting. if it is sent and the id doesn't match an existing sub account (it will return an error)
delete_action 1 OR 2 in case of deleting the sub account, 1: don't disconnect related phone numbers and will assign them to the main account (default value of not sent), 2: disconnect related phone numbers
sub_account_name string
entitytype string Allowed values :
PRIVATE_PROFIT
NON_PROFIT
GOVERNMENT
SOLE_PROPRIETOR
legal_companyname string Legal Company Name. Max Length 100 characters
altbusinessid string Alternate business identifier such as DUNS, LEI, GIIN
altbusinessidtype string Enum value describing AltBussinessId. Allowed values: 'NONE', 'DUNS', 'LEI', 'GIIN'
vertical string Enum value describing vertical or industry segment of the industry
Allowed values :
REAL_ESTATE
HEALTHCARE
ENERGY
ENTERTAINMENT
RETAIL
AGRICULTURE
INSURANCE
EDUCATION
HOSPITALITY
FINANCIAL
GAMBLING
CONSTRUCTION
NGO
GOVERNMENT
TECHNOLOGY
COMMUNICATION
street string street name. Max Length 100 characters
city string City name. Max Length 100 characters
state string State name. Must be 2 letters code for United States or Canada

Allowed values for USA: "AL" ,"AK" ,"AS" ,"AZ" ,"AR" ,"CA" ,"CO" ,"CT" ,"DE" ,"DC" ,"FL" ,"GA" ,"GU" ,"HI" ,"ID" ,"IL" ,"IN" ,"IA" ,"KS" ,"KY" ,"LA" ,"ME" ,"MD" ,"MA" ,"MI" ,"MN" ,"MS" ,"MO" ,"MT" ,"NE" ,"NV" ,"NH" ,"NJ" ,"NM" ,"NY" ,"NC" ,"ND" ,"MP" ,"OH" ,"OK" ,"OR" ,"PA" ,"PR" ,"RI" ,"SC" ,"SD" ,"TN" ,"TX" ,"UT" ,"VT" ,"VA" ,"VI" ,"WA" ,"WV" ,"WI" ,"WY"
Allowed Values for Canada: "NL", "PE", "NS", "NB", "QC", "ON", "MB", "SK", "AB", "BC", "YT", "NT", "NU"
postalcode string Postal codes. Use 5 digit zipcode for United States
country string Allowed Values only US, CA
ein string Government assigned corporate tax ID. EIN is 9-digits in U.S
email string Valid email address of brand support contact. Max 100 characters
phone string Valid phone number in e.164 international format '+18009999999'
firstname string
lastname string
stockexchange string Stock exchange. Allowed Values: "NONE" , "NASDAQ" , "NYSE" , "AMEX" , "AMX" , "ASX" , "B3" , "BME" , "BSE" , "FRA" , "ICEX" , "JPX" , "JSE" , "KRX" , "LON" , "NSE" , "OMX" , "SEHK" , "SSE" , "STO" , "SWX" , "ZSE" , "TSX" , "TWSE" , "VSE"
stocksymbol string Stock symbol
website URL sub cpmpany website URL. Max Length 100 characters

Example:


				

Example :

https://hubbucs.com/site/api/add_edit_subaccount?key=12134651Gsuid7349

Response :

  1. {
  2. "message":"success",
  3. "sub_account_id":"5656555"
  4. }
  5. ------OR------
  6. {
  7. "error_message":"error message"
  8. }