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.
Create location address information
Arguments
locationId ● ID!non-null
The ID of the company location.
address ● CompanyAddressInput!non-null
The input fields to use to update the address.
More
addressTypes ● [CompanyAddressType]!non-null
The address types on the location to update.
More
Return
addresses ● [CompanyAddress]
Address 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
Save company address information
{
"address": {
"address1": "长隆",
"address2": "奥园广场",
"city": "广州市",
"countryCode": "CN",
"phone": "008613878604673",
"zip": "514000"
},
"addressTypes": [
"BILLING","SHIPPING"
],
"locationId": "gid://shopline/CompanyLocation/6245049488106857931"
}
Response
{
"data": {
"companyLocationAssignAddress": {
"addresses": [
{
"province": null,
"address1": "长隆",
"city": "广州市",
"createdAt": "2023-12-14T13:54:25.605Z",
"updatedAt": "2023-12-21T11:23:01.228Z",
"zip": "514000",
"address2": "奥园广场",
"country": null,
"countryCode": "CN",
"id": "gid://shopline/CompanyAddress/6245049491713959373"
},
{
"address2": "奥园广场",
"city": "广州市",
"country": null,
"countryCode": "CN",
"zip": "514000",
"address1": "长隆",
"createdAt": "2023-12-14T13:54:25.706Z",
"id": "gid://shopline/CompanyAddress/6245049493408458190",
"province": null,
"updatedAt": "2023-12-21T11:23:00.418Z"
}
],
"userErrors": []
}
}
}
Was this article helpful to you?