Company
Create Company From CG
POST https://api-b2b.bigcommerce.com/api/v2/io/companies/convert-from-customer-group⚠️
This endpoint is deprecated.
Request
Create company from bigCommerce customer group. This API only enable for non-MSF store.
Authentication
- authToken in header
Parameters
- authToken in header - stringrequiredAuth token in header.
Body
object | application/json
Request body
acceptWelcomeEmailstring
(0=will not receive email 1=will receive email)Allowed: 0 | 1
addressLine1string
Address string line 1addressLine2string
Address string line 2adminEmailstring
requiredCompany admin user emailadminFirstNamestring
requiredCompany admin user's first nameadminLastNamestring
requiredCompany admin user's last nameadminPhoneNumberstring
Company admin user phone numbercitystring
companyEmailstring
requiredcompanyNamestring
requiredcountrystring
customerGroupIdstring
requiredBC customer group IDextraFieldsarray[object]
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.phoneNumberstring
requiredstatestring
zipCodestring
userExtraFieldsarray[object]
example
{
"userExtraFields": [
{
"fieldName": "string",
"fieldValue": "string"
}
]
}
Response
Response Success
Body
object | application/json
codenumber
Response status codedataobject
Response data
example
{
"code": 200,
"data": {
"companyId": "2"
},
"message": "Success"
}
Get Company Basic Information
GET https://api-b2b.bigcommerce.com/api/v2/io/companies/{companyId}/basic-info⚠️
This endpoint is deprecated.
Request
Get company's basic information
Authentication
- authToken in header
Parameters
- companyId in path - stringrequired
- authToken in header - stringrequiredAuth token in header.
example
curl --request GET \
--url 'https://api-b2b.bigcommerce.com/api/v2/io/companies/[companyId]/basic-info' \
--header 'Content-Type: application/json' \
--header 'authToken: {{token}}'
Response
Response Success
Body
object | application/json
codenumber
Response status codedataobject
Response data
example
{
"code": 200,
"data": {
"addressLine1": "",
"addressLine2": "",
"catalogId": "1",
"catalogName": "testCatalogName",
"city": "Paris",
"companyEmail": "test@bundleb2b.com",
"companyId": "35",
"companyName": "CropTest1",
"companyStatus": "1",
"country": "French",
"description": "CropTest",
"extraFields": [
{
"dataType": "2",
"fieldName": "extraStr1",
"fieldValue": "extra_text",
"isRequired": "0",
"labelName": "Enter your license"
}
],
"phoneNumber": "10030212001",
"state": "BC",
"updatedAt": "1594192159",
"uuid": "111",
Update Company Basic Information
PUT https://api-b2b.bigcommerce.com/api/v2/io/companies/{companyId}/basic-info⚠️
This endpoint is deprecated.
Request
Update a company's basic info, you can update on or more options
Authentication
- authToken in header
Parameters
- companyId in path - stringrequired
- authToken in header - stringrequiredAuth token in header.
Body
object | application/json
Request body
addressLine1string
Address string line 1addressLine2string
Address string line 2catalogIdstring
BigCommerce price list Id that company related(If put its 0 will clear the catalog).citystring
companyEmailstring
companyNamestring
companyStatusstring
Company status:
0=PENDING 1=APPROVED 2=REJECTED 3=INACTIVE 4=DELETED
countrystring
Country full name or ISO2 country code. For Example:
A Country full name: Afghanistan
ISO2 Country code: AF
descriptionstring
extraFieldsarray[object]
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.phoneNumberstring
statestring
zipCodestring
priceListAssignarray[object]
example
{
"addressLine1": "string",
"addressLine2": "string",
"catalogId": "string",
"city": "string",
"companyEmail": "string",
"companyName": "string",
"companyStatus": "string",
"country": "string",
"description": "string",
"extraFields": [
{
"fieldName": "string",
"fieldValue": "string"
}
],
"phoneNumber": "string",
"state": "string",
"zipCode": "string",
"priceListAssign": [
{
"channelId": 0,
"priceListId": 0
}
]
}
Response
Response Success
Body
object | application/json
codenumber
Response status codedataobject
Response data
example
{
"code": 200,
"data": {
"companyId": "2"
},
"message": "Success"
}
Delete Company With Related
DELETE https://api-b2b.bigcommerce.com/api/v2/io/companies/{companyId}/force-del⚠️
This endpoint is deprecated.
Request
Force Delete A Company and its Related Information.
Authentication
- authToken in header
Parameters
- companyId in path - stringrequired
- authToken in header - stringrequiredAuth token in header
example
curl --request DELETE \
--url 'https://api-b2b.bigcommerce.com/api/v2/io/companies/[companyId]/force-del' \
--header 'Content-Type: application/json' \
--header 'authToken: {{token}}'
Response
Deleted successful
Body
object | application/json
codenumber
Response status codedataobject
Response data
example
{
"code": 200,
"data": {
"companyId": "2"
},
"message": "Success"
}
Get BC Order Id List By Company Id
GET https://api-b2b.bigcommerce.com/api/v2/io/companies/{companyId}/orderBCIds⚠️
This endpoint is deprecated.
Request
Get bC order ID list by company id
Authentication
- authToken in header
Parameters
- companyId in path - stringrequired
- authToken in header - stringrequiredAuth token in header.
- offset in query - numberPagination offset default: 0
- limit in query - numberPagination limit default: 10
- beginDateAt in query - stringEnd date filter, in format '12/31/2019'
- endDateAt in query - stringEnd date filter, in format '12/31/2019'
example
curl --request GET \
--url 'https://api-b2b.bigcommerce.com/api/v2/io/companies/[companyId]/orderBCIds' \
--header 'Content-Type: application/json' \
--header 'authToken: {{token}}'
Response
Response Success
Body
object | application/json
codenumber
Response status codedataobject
example
{
"code": 200,
"data": {
"list": [
{
"orderId": "1"
}
],
"pagination": {
"limit": 10,
"offset": 0,
"totalCount": 3
}
},
"message": "Success"
}
Get Company By CustomerId
GET https://api-b2b.bigcommerce.com/api/v2/io/users/{customerId}/companies⚠️
This endpoint is deprecated.
Request
Get company by customer Id, if company not in bigCommerce will delete the company
Authentication
- authToken in header
Parameters
- customerId in path - stringrequiredBigCommerce's customer id
- authToken in header - stringrequiredAuth token in header.
example
curl --request GET \
--url 'https://api-b2b.bigcommerce.com/api/v2/io/users/[customerId]/companies' \
--header 'Content-Type: application/json' \
--header 'authToken: {{token}}'
Response
Response Success
Body
object | application/json
codenumber
Response status codedataobject
Response data
example
{
"code": 200,
"data": {
"addressLine1": "",
"addressLine2": "",
"catalogId": "1",
"city": "Paris",
"companyId": "35",
"companyName": "CropTest1",
"companyStatus": "1",
"country": "French",
"description": "CropTest",
"state": "BC",
"zipCode": "1032332"
},
"message": "SUCCESS"
}
Did you find what you were looking for?