Anchor to companyLocationUpdatecompany
companyLocationUpdate
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Updates a company location.
Anchor to Arguments
Arguments
- Anchor to companyLocationIdcompany•
Location Id ID!required The ID of the company location to update.
- Anchor to inputinput•Company
Location requiredUpdate Input! The input fields to update in the company location.
Was this section helpful?
Anchor to CompanyLocationUpdatePayload returnsCompanyLocationUpdatePayload returns
- Anchor to companyLocationcompany•
Location The updated company location.
- Anchor to userErrorsuser•
Errors [BusinessCustomer non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation companyLocationUpdate($companyLocationId: ID!, $input: CompanyLocationUpdateInput!) {
companyLocationUpdate(companyLocationId: $companyLocationId, input: $input) {
companyLocation {
# CompanyLocation fields
}
userErrors {
field
message
}
}
}
Input
{
"companyLocationId": "gid://shopify/<objectName>/10079785100",
"input": {
"buyerExperienceConfiguration": {
"checkoutToDraft": true,
"editableShippingAddress": true,
"paymentTermsTemplateId": "gid://shopify/<objectName>/10079785100"
},
"externalId": "<your-externalId>",
"locale": "<your-locale>",
"name": "<your-name>",
"note": "<your-note>",
"phone": "<your-phone>"
}
}
{
"companyLocationId": "gid://shopify/<objectName>/10079785100",
"input": {
"buyerExperienceConfiguration": {
"checkoutToDraft": true,
"editableShippingAddress": true,
"paymentTermsTemplateId": "gid://shopify/<objectName>/10079785100"
},
"externalId": "<your-externalId>",
"locale": "<your-locale>",
"name": "<your-name>",
"note": "<your-note>",
"phone": "<your-phone>"
}
}
input CompanyLocationUpdateInput {
buyerExperienceConfiguration: BuyerExperienceConfigurationInput
externalId: String
locale: String
name: String
note: String
phone: String
}
input BuyerExperienceConfigurationInput {
checkoutToDraft: Boolean
editableShippingAddress: Boolean
paymentTermsTemplateId: ID
}