i need to update customer’s tax iDs via GraphQL.
I cannot find a mutation to do this.
looking into this field, which i think is labeled “Tax Id” in the browser:
https://shopify.dev/docs/api/liquid/objects#company_location-tax_registration_id
i try this:
mutation {
companyLocationUpdate(
companyLocationId: "gid://shopify/CompanyLocation/99999999"
input: {
taxRegistrationId: "DE999999999"
}
) {
companyLocation {
id
taxRegistrationId
}
}
}
and get this:
{
"errors": [
{
"message": "InputObject 'CompanyLocationUpdateInput' doesn't accept argument 'taxRegistrationId'",
"locations": [
{
"line": 9,
"column": 9
}
],
"path": [
"mutation",
"companyLocationUpdate",
"input",
"taxRegistrationId"
],
"extensions": {
"code": "argumentNotAccepted",
"name": "CompanyLocationUpdateInput",
"typeName": "InputObject",
"argumentName": "taxRegistrationId"
}
}
]
}