companyUpdate
mutation
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.
Query company information.
Arguments
Company id
Update the company's input information
Return
Company information
Error message
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Update company information
Code
{
"companyId": "gid://shopline/Company/6254924101557166237",
"input": {
"name": "test2"
}
}
Response
{
"data": {
"companyUpdate": {
"company": {
"id": "gid://shopline/Company/gid://shopline/Company/6254924101557166237",
"mainContact": {
"customer": {
"phone": "0086139****0643",
"state": "NOT_INVITED",
"createdAt": "2023-12-21T09:23:57.777Z",
"displayName": "L*** S****",
"email": "*********@example.com",
"firstName": "L***",
"updatedAt": "2023-12-21T09:23:58.372Z",
"id": "gid://shopline/Customer/gid://shopline/Customer/4600093492",
"lastName": "S****",
"locale": "en"
},
"id": "gid://shopline/CompanyContact/gid://shopline/CompanyContact/gid://shopline/CompanyContact/gid://shopline/CompanyContact/4600093492",
"createdAt": "2023-12-21T09:23:57.777Z"
},
"name": "test2"
},
"userErrors": []
}
}
}
Was this article helpful to you?