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 location information query
Arguments
companyId ● ID!non-null
Company id
input ● CompanyContactInput!non-null
Company contact input information
More
Return
companyContact ● CompanyContact
Company contact
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 company contact
{
"companyId": "gid://shopline/Company/6254924101557166237",
"input": {
"email": "******@example.com",
"firstName": "S*****",
"lastName": "T*****",
"locale": "en",
"phone": "0086139****9732"
}
}
Response
{
"data": {
"companyContactCreate": {
"companyContact": {
"customer": {
"id": "gid://shopline/Customer/4600093512",
"lastName": "T*****",
"phone": "0086139****9732",
"addresses": [],
"email": "******@example.com",
"firstName": "S*****"
},
"id": "gid://shopline/CompanyContact/4600093512",
"isMainContact": false,
"updatedAt": "2023-12-21T10:25:42.757Z",
"company": {
"id": "gid://shopline/Company/6254924101557166237",
"name": "C*****"
},
"createdAt": "2023-12-21T10:25:42.374Z"
},
"userErrors": []
}
}
}
Was this article helpful to you?