Hi,
New order once we created in our in house order management system, when in-transit we used to call the following API methods :
- Get orders : /admin/api/2023-04/orders/{orderid}/fulfillment_orders.json
- Created fulfillment using the following URL : /admin/api/2023-04/fulfillments.json
request data :
{
“fulfillment”: {
“line_items_by_fulfillment_order”: [
{
“fulfillment_order_id”: ,
“fulfillment_order_line_items”:
}
],
“id”: ,
“location_id”:{location_id},
“tracking_info”: {
“number”: {tracking number},
“url”: {TrackingURL},
“company”: {company name}
},
“notify_customer”: true,
“message”: “”,
“origin_address”: “”
},
“order_id”: {OrderId},
“status”: “In-Transit”
}
3) Created fullfillment Event using the following URL : /admin/api/2023-04/orders/{OrderID}/fulfillments/{fulfillmentOrderID}/events.json
request data :
{
“fulfillment_events”: {
“Event”: {
FulfillmentId = {fulfillmentOrderID},
OrderId = {OrderID},
status = “In-Transit”
}
}
the above three steps created fulfillment and fulfillment status updated in-transit in shopify.
After that, when we try to update delivered status using the following URL unable to update.
- Created fullfillment Event using the following URL : /admin/api/2023-04/orders/{OrderID}/fulfillments/{fulfillmentOrderID}/events.json
request data :
{
“fulfillment_events”: {
“Event”: {
FulfillmentId = ,
OrderId = ,
status = “Delivered”
}
}
If I use status as Delivered in step-3, it will update delivered status in shopify. But unabler to update first in-transit status then delivered status. what I missed here. how to update Delivered status in shopify through rest API?
Thanks