Create Company From CG
Create company from bigCommerce customer group. This API only enable for non-MSF store.
Authentication
authTokenstring
API Key authentication via header
Headers
authToken
Auth token in header.
Request
Request body
adminEmail
Company admin user email
adminFirstName
Company admin user's first name
adminLastName
Company admin user's last name
companyEmail
companyName
customerGroupId
BC customer group ID
phoneNumber
acceptWelcomeEmail
(0=will not receive email 1=will receive email)
Allowed values:
addressLine1
Address string line 1
addressLine2
Address string line 2
adminPhoneNumber
Company admin user phone number
city
country
extraFields
To use customized extra fields with field names you need to first add company extra fields in Settings > Extra fields inside B2B edition. eg. If you want to create a new company with an extra integer field named licenseNO, you can use this structure [{‘fieldName’: ‘LicenseNO’, ‘fieldValue’: 10342340323}] in the request body.
state
userExtraFields
zipCode
Response
Response Success
code
Response status code
data
Response data
message
Response message
Errors
400
Bad Request Error
404
Not Found Error