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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Storefront API - get order with numeric ID

Storefront API - get order with numeric ID

jdarosaj
Visitor
3 0 0

I got the order numeric ID, since I'm using Recharge app for handling subscriptions. I'd like to know how to fetch an order in storefront API using this numeric ID.
I know that I have to use the base64 encoded string to fetch using ID, but which informations do I need to encode to be able to fetch?

Reply 1 (1)

SBD_
Shopify Staff
1831 273 423

You'll need to use the Admin API, not the Storefront API. Here's an example call: https://community.shopify.com/c/Shopify-APIs-SDKs/How-can-I-get-order-number-using-GraphQL/td-p/5221...

Scott | Developer Advocate @ Shopify