What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

Order fulfillment API issue

Order fulfillment API issue

divinainditech
Visitor
1 0 0

Hi ,

 we are facing issues while fulfilling the order through Shopify Order Fulfilment API.

 

below was endpoint and Payload that was used before to fulfill the online order:

 

https://myshopify.com/admin/api/2019-10/orders/5182711431223/fulfillments.json

{"fulfillment": {"location_id":6566655,"tracking_number":"12345" ,"tracking_urls": [],"notify_customer"true }}
 
as per the new documentation provided we have changed the endpoint as payload as below for the fulfilment updated, however even after updating it we are getting error "Not Found".
 

https://myshopify.com/admin/api/2019-10/fulfillments.json

{"fulfillment":{"line_items_by_fulfillment_order":[{"fulfillment_order_id":5182711431223}],"tracking_info":{"number":"MS1562678","url":""}}}
 
Appreciate immediate help on this matter as we have integrations with POS Solutions.
 
thanks!
Reply 1 (1)

lizk
Shopify Staff
246 58 78

Hi there 👋

If you are able to share an x-request-id of a failing request I may be able to look a bit further into this. 

One thing you will want to double check though is in the new API call you need to provide the fulfillment_order_id not the order id. In the example requests you have provided you are using the order id in the required fulfillment order id field

Check out this documentation for getting the fulfillment orders for an order.

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