Create A Company User

Deprecated
Create a company user, which belongs company

Authentication

authTokenstring
API Key authentication via header

Path parameters

companyIdstringRequired

Headers

authTokenstringRequired
Auth token in header.

Request

This endpoint expects an object.
emailstringRequired
firstNamestringRequired
lastNamestringRequired
phonestringRequired
acceptWelcomeEmailenumOptional

(0=will not receive email 1=will receive email)

Allowed values:
channelIdslist of integersOptional
BigCommerce channel id list
companyRoleIdintegerOptional
The company role id. This field is only applicable to the company's RBAC feature. If your store doesn't utilize this feature, please do not use this field. When it has a value, it will override the value of the userRole field.
extraFieldslist of objectsOptional
originChannelIdintegerOptional
BigCommerce channel id, used for BigCommerce customer origin channel id. This field takes effect only when the store default b2b channel is not configured
userRolestringOptional

user role(0=admin 1=senior_buyer 2=junior_buyer 3=sales_rep)

uuidstringOptional

Response

Response Success
codedouble
Response status code
dataobject
Response data
messagestring
Response message

Errors

400
Bad Request Error
404
Not Found Error