In the Shopify Admin, you’re allowed to change the email address and phone number on an order. Shopify does the following GraphQL mutation.
mutation OrderContactUpdate($input: OrderInput!) {
orderUpdate(input: $input) {
order {
id
phone
email
}
userErrors {
field
message
}
}
}
Variables:
{
"input": {
"id": "gid://shopify/Order/3986425053319",
"phone": "+31612345678",
"email": "name@domain.com"
}
}
The same mutation exists on the public GraphQL API but the “phone” field is not defined on the OrderInput for the public API. I’d very much like it to have the phone field defined so we can do the same mutations as the user can do manually within the Shopify Admin.