Not able to cancel and update orders from API.

priamjain
Visitor
1 0 0

My accessToken has all the permissions that I can give in shopify settings.

1.⁠ ⁠GET request is working and we are able to get order details, curl --location 'https://{storeName).myshopify.com/admin/api/2023-07/orders/{orderId}.json' \
--header 'X-Shopify-Access-Token: {accessToken}' \
--header 'Content-Type: application/json'

 

 2.⁠ ⁠However cancel order request is giving 404, curl --location 'https://{storeName}.myshopify.com/admin/api/2023-07/orders/{orderId}/cancel.json' \ --header 'X-Shopify-Access-Token:{accessToken}' \ --header 'Content-Type: application/json' \ --header 'Cookie: request_method=POST' \ --data '{}'

RESPONSE: { "errors": "Not Found" }

 3.⁠ ⁠PUT Request to update address is also giving same error - https://${shopifyStore}/admin/api/2023-07/orders/${orderId}.json

Pls suggest how to fix these issues.

Replies 0 (0)