Development discussions around Shopify APIs
I am going to delay a shipment for a week using API, i used order UPDATE api
https://storename.myshopify.com/admin/api/2023-04/orders/11111111.json
with body:
{
"order": {
"id": orderID,
"fulfillment_status": "null",
"fulfillments": [
{
"id": ID,
"location_id": ID,
"tracking_number": "XXXXXXXXXXXXXXXX",
"tracking_url": "https://tools.usps.com/go/TrackConfirmAction.action?tLabels=XXXXXXXXXXXXXXXXXXXX",
"status": "delayed",
"delayed_until": "2023-05-29T00:00:00Z"
}
],
"line_items": [
{
"id": ID,
"fulfillment_status": "null"
}
]
}
}
but it didn't work, what is the exact API and body i should used to update the order with shipment fulfillment status or any other status and it would be delayed for a week.
Hey @Abdul_Qayyum thanks for getting in touch- at the moment, all fulfillment/shipping data would be managed through our fulfillments API rather than the Orders API. A good place to start is this documentation on building a fulfillment service app. In terms of a specific REST API endpoint you'd need to use, you would want to look into using Fulfillment Orders.
You can update the fulfillment order like this, provided your app has the right fulfillment scopes on the shop:
POST https://your-store.myshopify.com/admin/api/2023-04/fulfillment_orders/1046000816/reschedule.json
{
"fulfillment_order": {
"new_fulfill_at": "2024-03-02 14:24 UTC"
}
}
Hope this helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023