404 for order that exist

404 for order that exist

spirAde
Visitor
1 0 0

Hello, I hope this day finds you well. I've faced with some a situation for few orders. My application is subscribed to webhooks on topics: orders/updated, orders/created. Immediately after getting the order payload from webhook, I send a request with the same orderId from payload (GET https://{store}.myshopify.com/admin/api/2020-10/orders/{orderId}.json or https://{store}.myshopify.com/admin/api/2020-10/orders/{orderId}.json) to Shopify API(actually, I need it for some business requirements) and retrieve a 404 error.
My application information:
Scope:
- read_all_orders
- read_shopify_payments_disputes
- read_shopify_payments_payouts
API version:
- 2020-10
The orders are not older than 60 days(although I can read all orders). Would you please give me some information on how is it going? And what I can do? Thanks in advance

Reply 1 (1)

cdarne
Shopify Staff
30 5 14

Hello,

 

The workflow you're describing should be working. I'd advise to update to a more recent API version because the 2020-10 one is no more supported (https://shopify.dev/api/usage/versioning). Also I don't see the "read_order" in the permissions you're listing and it is required to access that API endpoint.

I hope this can help you fixing that problem.

 

Cheers,

 

Cédric | Developer @ Shopify

To learn more visit the Shopify Help Center or the Community Blog.