Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify Order API - Update Notes Isn't Working

Solved

Shopify Order API - Update Notes Isn't Working

markbarbaric
Visitor
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

Accepted Solution (1)

SBD_
Shopify Staff
1831 273 421

This is an accepted solution.

Hey @markbarbaric,

 

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

Scott | Developer Advocate @ Shopify 

View solution in original post

Replies 3 (3)

SBD_
Shopify Staff
1831 273 421

This is an accepted solution.

Hey @markbarbaric,

 

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

Scott | Developer Advocate @ Shopify 

markbarbaric
Visitor
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

thanjaipvr
Tourist
3 0 1

Hi All,

Is there any way to append the notes instead of replace.

Thanks