How to create a fulfillment order via Shopify API

Justin-Xie
Visitor
1 0 0

Hi,

 

Does anyone knows how to create a fulfillment order via Shopify API? I check through the doc but not able to find how to do that. Can anyone help?

 

Thanks so much in advance!

Replies 5 (5)

garyrgilbert
Shopify Partner
391 40 162

https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#post-fulfillments

 

This tells you how to create a fulfillment.

 

Cheers,

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
JFrankParnell
Shopify Partner
3 0 0

Nope, that shows how to create a fulfillment, not a fulfillment order.

Not sure if this is the prob that OP has, but for me, i try to get a ff order by the orderid and it says no fullfillment orders.  So, how do you make a fullfillment order?

garyrgilbert
Shopify Partner
391 40 162

Fulfillment Orders can not be created via the API. Fulfillment orders are created automatically by Shopify when an order is created. The only way a fulfillment order can be created via the api, as far as I know, is through a MOVE operation on an existing fulfillment order, thats why I figured the OP misspoke and wanted to know about creating a fulfillment.

 

/orders/{orderid}/fulfillment_orders.json should give you an array of fulfillment orders, if it doesn't you may not have the appropriate scopes, or the order id does not exist. Those are the only two scenarios where you should get an empty array back (as far as I am aware) otherwise you should get a list of open, pending, complete or cancelled fulfillment orders.

 

What does it say "exactly"?

{"fulfillment_orders":[]}

 

Cheers

Gary

 

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
JFrankParnell
Shopify Partner
3 0 0

THank you, it turned out i didnt have the correct scopes.

garyrgilbert
Shopify Partner
391 40 162

Hi Justin,

 

Fulfillment Orders can not be created via the API. Fulfillment orders are created automatically by Shopify when an order is created. The only way a fulfillment order can be created via the api, as far as I know, is through a MOVE operation on an existing fulfillment order, thats why I figured the OP misspoke and wanted to know about creating a fulfillment.

 

Cheers,

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution