How can I make an API call using order name (not Order id)

Highlighted
Shopify Partner
8 0 1

POST: /admin/orders/{{ order_id}}/fulfillments.json

 

is it possible to make an API call using order name? 

 

I'm thinking something like this:

POST: /admin/orders/{{ order_id}}/fulfillments.json?name=12345

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

Hey @jasper5 

 

You'll need the order ID to fulfill the order.

 

As a workaround, you could make a call to orders.json first to look up the ID.

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes
Highlighted
Shopify Partner
8 0 1

Hi!

 

Thanks for your response,

 

do you have a sample on how to do this?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 167

https://community.shopify.com/c/Shopify-APIs-SDKs/Order-Search-by-Name/td-p/580282

 

Heads up: this will return partial matches too, so you'll need to parse the results to find/confirm the order number.

Notice; Out of office, replies will be delayed until my return. Thanks!
0 Likes