companyContactUpdate
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.
Company contact update
Arguments
Company contact id
Company contact information input
Return
Company contact information
Error message
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Update company contact information
Code
{
"companyContactId": "gid://shopline/CompanyContact/4600093512",
"input": {
"email": "*******@example.com",
"firstName": "S*****",
"lastName": "T*****",
"locale": "en",
"phone": "0086139****5903"
}
}
Response
{
"data": {
"companyContactUpdate": {
"companyContact": {
"updatedAt": "2023-12-21T10:41:17.580Z",
"company": {
"id": "gid://shopline/Company/6254924101557166237",
"name": "test2"
},
"createdAt": "2023-12-21T10:25:42.374Z",
"customer": {
"id": "gid://shopline/Customer/gid://shopline/Customer/4600093512",
"lastName": "T*****",
"phone": "0086139****5903",
"addresses": [],
"email": "*******@example.com",
"firstName": "S*****"
},
"id": "gid://shopline/CompanyContact/gid://shopline/CompanyContact/4600093512",
"isMainContact": false
},
"userErrors": []
}
}
}
Was this article helpful to you?