Requires write_customers access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Company creation
Arguments
input ● CompanyCreateInput!non-null
The input fields to use to create the company.
More
Return
company ● Company
Company information
More
userErrors ● [BusinessCustomerUserError!]!non-null
Error message
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Create a company
{
"input": {
"company": {
"name": "five company"
},
"companyContact": {
"email": "7678452820@gmail.com",
"firstName": "Feide55",
"lastName": "James",
"phone": "008613980890643",
"locale": "en"
},
"companyLocation": {
"shippingAddress": {
"address1": "hot street2",
"address2": "B1 floor",
"city": "guangzhou",
"countryCode": "CN",
"phone": "008615070041732",
"zip": "511400"
},
"billingAddress": {
"address1": "hot street2",
"address2": "B2 floor",
"city": "guangzhou",
"countryCode": "CN",
"phone": "008615070096832",
"zip": "511400"
},
"billingSameAsShipping": false,
"name": "location 5",
"taxRegistrationId":"909999999999",
"taxExemptions": [
{
"countryCode":"US",
"provinceGCodeList":["AL","AK"]
}
]
}
}
}
Response
{
"data": {
"companyCreate": {
"company": {
"id": "gid://shopline/Company/6254924101557166237",
"mainContact": {
"customer": {
"email": "7678452820@gmail.com",
"firstName": "Feide55",
"id": "gid://shopline/Customer/4600093492",
"lastName": "James",
"phone": "008613980890643",
"locale": "en",
"state": "NOT_INVITED",
"updatedAt": "2023-12-21T09:23:58.778Z",
"createdAt": "2023-12-21T09:23:58.778Z",
"displayName": "Feide55 James"
},
"id": "gid://shopline/CompanyContact/gid://shopline/CompanyContact/4600093492",
"createdAt": "2023-12-21T09:23:58.778Z"
},
"name": "five company"
},
"userErrors": []
}
}
}
Was this article helpful to you?