How to modify order phone number using GraphQL mutation?

How to modify order phone number using GraphQL mutation?

Paul_vd_Dool
Shopify Partner
114 6 101

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.

Doppelganger - Managing duplicate user accounts
Replies 2 (2)

marcreese
Shopify Partner
19 0 2

I also went into the same problem. Any solutions? 🙏

Paul_vd_Dool
Shopify Partner
114 6 101

I haven't checked in well over a year, so it might have been changed, but as far as I know, no solution.

Doppelganger - Managing duplicate user accounts