A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I updated the CPF of Brazilian customer orders through API, but there was an error
mutation {
orderUpdate(input: {
id:"gid://shopify/Order/4285322231901",
localizationExtensions: {
key:"TAX_CREDENTIAL_BR",
value:"39053344705"
}
}) {
order {
id
localizationExtensions(first: 1) {
edges {
node {
key
value
}
}
}
}
}
}
The following is the error content has an invalid value ("TAX_CREDENTIAL_BR")
{'errors': [{'message': 'Argument \'key\' on InputObject \'LocalizationExtensionInput\' has an invalid value ("TAX_CREDENTIAL_BR"). Expected type \'LocalizationExtensionKey!\'.', 'locations': [{'line': 5, 'column': 33}], 'path': ['mutation', 'orderUpdate', 'input', 'localizationExtensions', 0, 'key'], 'extensions': {'code': 'argumentLiteralsIncompatible', 'typeName': 'InputObject', 'argumentName': 'key'}}]}