Shopify Order API - Update Notes Isn't Working

Solved
Highlighted
New Member
2 0 1

Hi,

  I can't seem to be able to use the Shopify Order API to update notes for orders in my shop. I am using Python and have included a snippet of the code below (excluding Shopify Keys and Order Details). 

 

json = {"order":  {"id": 691745259575,
"note": "Custom Note From API"}
}
headers = {"Accept": "application/json", "Content-Type": "application/json"}
shopRequestUrl = "https://{ShopifyKey}:{ShopifySecret}@intuitive-audio-limited.myshopify.com/admin/api/2020-01/orders/691745259575.json"
r = requests.post(shopRequestUrl, json = json, headers = headers)
print(r.json())

The GET Requests are working fine, and creating a New Orders/Products using PUT Requests also works, but I can't seem to be able to update the order notes (based on the Shopify API Guides I was under the impression that this was possible https://help.shopify.com/en/api/reference/orders/order#update-2020-01). I have also tried including the Order Id as an "int" rather than String value, but this doesn't seem to be working either.

 

If anyone could provide any assistance it would be greatly appreciated.

 

Regards,

 

Mark

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 163

This is an accepted solution.

Hey @markbarbaric,

 

You'll need to send via PUT method. Here's an example.

0 Likes
Highlighted
New Member
2 0 1

Hi Scotty,

 

 Thanks for getting back to me. I realised my mistake the other day. This is working now.

 

Thanks again,

 

Mark

1 Like