Not able to cancel and update orders from API.

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){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}{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)