Hello Parabola users,
I’m trying to update Shopify order email adresses. It should be rather simple.
As Shopify intgration does not allow to update an order, I have to use “Send to API” method.
However I’m not able to update anything, getting a 406 (not acceptable) error.
API request looks like this.
{
“data”: {
“order”: {
“email”: “example@web.com”,
“id”: valid-order-id
}
},
“headers”: {
“Content-Type”: “application/json”
},
“method”: “PUT”,
“url”: “https://xxx:xxx@xxx.myshopify.com/admin/api/2020-10/valid-order-id.json”
}
Anyone could shed some light on this, please?
I suspect data should not be encapsulated with “data” as read in Shopify docs:
Change an order’s email address
PUT /admin/api/2020-10/orders/450789469.json
{
“order”: {
“id”: 450789469,
“email”: “a-different@email.com”
}
}
Have a nice day,