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