Anchor to companyLocationCreatecompany
companyLocationCreate
mutation
Requires access scope or
access scope. Also: The API client must be installed on a Shopify Plus store.
Creates a company location.
Anchor to Arguments
Arguments
- Anchor to companyIdcompany•
Id ID!required The ID of the company that the company location belongs to.
- Anchor to inputinput•Company
Location requiredInput! The fields to use to create the company location.
Was this section helpful?
Anchor to CompanyLocationCreatePayload returnsCompanyLocationCreatePayload returns
- Anchor to companyLocationcompany•
Location The created 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 companyLocationCreate($companyId: ID!, $input: CompanyLocationInput!) {
companyLocationCreate(companyId: $companyId, input: $input) {
companyLocation {
# CompanyLocation fields
}
userErrors {
field
message
}
}
}
Input
{
"companyId": "gid://shopify/<objectName>/10079785100",
"input": {
"billingAddress": {
"address1": "<your-address1>",
"address2": "<your-address2>",
"city": "<your-city>",
"countryCode": "",
"firstName": "<your-firstName>",
"lastName": "<your-lastName>",
"phone": "<your-phone>",
"recipient": "<your-recipient>",
"zip": "<your-zip>",
"zoneCode": "<your-zoneCode>"
},
"billingSameAsShipping": true,
"buyerExperienceConfiguration": {
"checkoutToDraft": true,
"deposit": "",
"editableShippingAddress": true,
"paymentTermsTemplateId": "gid://shopify/<objectName>/10079785100"
},
"externalId": "<your-externalId>",
{
"companyId": "gid://shopify/<objectName>/10079785100",
"input": {
"billingAddress": {
"address1": "<your-address1>",
"address2": "<your-address2>",
"city": "<your-city>",
"countryCode": "",
"firstName": "<your-firstName>",
"lastName": "<your-lastName>",
"phone": "<your-phone>",
"recipient": "<your-recipient>",
"zip": "<your-zip>",
"zoneCode": "<your-zoneCode>"
},
"billingSameAsShipping": true,
"buyerExperienceConfiguration": {
"checkoutToDraft": true,
"deposit": "",
"editableShippingAddress": true,
"paymentTermsTemplateId": "gid://shopify/<objectName>/10079785100"
},
"externalId": "<your-externalId>",
"locale": "<your-locale>",
"name": "<your-name>",
"note": "<your-note>",
"phone": "<your-phone>",
"shippingAddress": {
"address1": "<your-address1>",
"address2": "<your-address2>",
"city": "<your-city>",
"countryCode": "",
"firstName": "<your-firstName>",
"lastName": "<your-lastName>",
"phone": "<your-phone>",
"recipient": "<your-recipient>",
"zip": "<your-zip>",
"zoneCode": "<your-zoneCode>"
},
"taxExempt": true,
"taxExemptions": [
""
],
"taxRegistrationId": "<your-taxRegistrationId>"
}
}
input CompanyLocationInput {
billingAddress: CompanyAddressInput
billingSameAsShipping: Boolean
buyerExperienceConfiguration: BuyerExperienceConfigurationInput
externalId: String
locale: String
name: String
note: String
phone: String
shippingAddress: CompanyAddressInput
taxExempt: Boolean
taxExemptions: [TaxExemption!]
taxRegistrationId: String
}
input CompanyAddressInput {
address1: String
address2: String
city: String
countryCode: CountryCode
firstName: String
lastName: String
phone: String
recipient: String
zip: String
zoneCode: String
}
input BuyerExperienceConfigurationInput {
checkoutToDraft: Boolean
deposit: DepositInput
editableShippingAddress: Boolean
paymentTermsTemplateId: ID
}