Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi,
I know this was answered in the thread "Re: Add address to orders that do not require shipping"
But I'm trying to set up a flow to update order details for store pickups. However, I'm getting the following error for the orderUpdate mutation.
"Mutation had errors: "Variable $input of type OrderInput! was provided invalid value for id (Expected value to not be null)"
Am I missing anything obvious? Any help would be appreciated.
Adam
Solved! Go to the solution
This is an accepted solution.
Hi @BAdam!
You're right - the error message is telling you exactly what's missing: the order ID!
In your orderUpdate mutation, you need to include the "id" field in your input. Your current JSON is missing this required field.
Try updating your mutation input to include the order ID like this:
{
"input": {
"id": "{{ order.id }}",
"shippingAddress": [
"address1": "STORE PICK UP",
"city": "STORE PICK UP",
"countryCode": "AU",
"firstName": "{{order.billingAddress.firstName}}",
"lastName": "{{order.billingAddress.lastName}}",
"phone": "0000000000",
"provinceCode": "New South Wales",
"zip": "2000"
]
}
}
The Shopify API needs to know which order to update, and that's what the "id" parameter provides.
Once you add this, your mutation should work correctly for store pickups.
Hope this helps!
This is an accepted solution.
Hi @BAdam!
You're right - the error message is telling you exactly what's missing: the order ID!
In your orderUpdate mutation, you need to include the "id" field in your input. Your current JSON is missing this required field.
Try updating your mutation input to include the order ID like this:
{
"input": {
"id": "{{ order.id }}",
"shippingAddress": [
"address1": "STORE PICK UP",
"city": "STORE PICK UP",
"countryCode": "AU",
"firstName": "{{order.billingAddress.firstName}}",
"lastName": "{{order.billingAddress.lastName}}",
"phone": "0000000000",
"provinceCode": "New South Wales",
"zip": "2000"
]
}
}
The Shopify API needs to know which order to update, and that's what the "id" parameter provides.
Once you add this, your mutation should work correctly for store pickups.
Hope this helps!
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025