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

jasper5
Shopify Partner
14 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

 

Replies 3 (3)
SBD_
Shopify Staff
Shopify Staff
1098 146 227

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.

Scott | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

jasper5
Shopify Partner
14 0 1

Hi!

 

Thanks for your response,

 

do you have a sample on how to do this?

SBD_
Shopify Staff
Shopify Staff
1098 146 227

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.

Scott | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog