Documentation
LogIn- Getting started
-
CRM API
- Adding/Updating Contacts
- List Filter/Search Contacts
- Contact Timeline Actions
- Contact Info
- Contact Actions
- Adding/Updating Company
- List Filter/Search Companies
- Company Timeline Actions
- Company Info
- Update Company Info
- Add Company Timeline Action
- Adding/Updating Deals
- List Filter/Search Deals
- List Filter/Search Deals Board View
- Drag/Drop Deals between Stages
- Deal WIN/LOSS Reasons
- Owners
- Countries
- Stages
- Funnels
- Lead Scores
- Deal Timeline Actions
- Deal Info
- Update Deal Info
- Add Deal Timeline Action
- List Filter/Search Activities/Tasks
- Add/Update Activity/Tasks
- Contact Messages
- List User Messages
- Delete Actions
-
Phone API
- Send SMS
- Search Phone Numbers
- Order Phone Number
- List Active Phone Numbers
- Disconnect Phone Number
- List Available Audio Files
- Block Phone Number
- Unblock Phone Number
- Check Number Block Status
- List Phone Sub Accounts
- Add/Edit Sub Account
- Attach Phone Number to Sub Account
- List Phone Numbers Per Sub Account
- System API
- Service/Tickets API
- API - Premium Edition
- Callbacks
- Resellers API
- Enabler API
- SMS Error Codes
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
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 |
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 :
- {
- "message":"success",
- "sub_account_id":"5656555"
- }
- ------OR------
- {
- "error_message":"error message"
- }