Covers all questions related to inventory management, order fulfillment, and shipping.
In Shopify there are created fulfillments. I think they are automatically generated from out of the orders.
I can retrieve a fulfillment trough a get via the admin rest api endpoint:
/admin/api/2023-01/fulfillment_orders/5094514917629/fulfillments.json
{
"fulfillment_orders": [
{
"id": 6194896634109,
"shop_id": 61600006397,
"order_id": 5094514917629,
"assigned_location_id": 71889551613,
"request_status": "unsubmitted",
"status": "open",
"supported_actions": [
"create_fulfillment",
"move",
"hold"
],
Now my fulfillment company wants to update a fulfillment in Shopify when they shipped the goods.
They want to update the fulfillment as shipped and add tracking information. For as far I can see in the documentation this should be done trough the following endpoint:
/admin/api/2023-01/fulfillments/6195541836029/update_tracking.json or do they need to create the fulfillment trough the API endpoint:
/admin/api/2023-01/fulfillments.json?
However, both options are not working. And are giving a strange response when posting:
Could someone please help us out?:)
Hi @Steambox, There are a couple of approaches that they can take to update the fulfillment status. If they can make a POST to update_tracking (they have required scopes/permissions) then the guide is here. Or if you're working with GraphQL then you have more options and can use FullfilmentCreateV2 , part of the migration to Fullfillment Orders process. You can find details on this here. https://www.shopify.com/ie/partners/blog/fulfillment-orders-api-migration.
Unfortunately the screenshot you provided is illegible when zoomed, but it looks like possibly the call in postman is missing some permissions or required field parameters. 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
Hi there,
We've been working on it and we gave our partner all the permissions they need. However we are now facing the following issue's (almost there). We receive the following responses:
1) Response 1
{
"errors": [
"Invalid fulfillment order line item quantity requested."
]
}
2) Response 2
{
"errors": [
"Fulfillment order 6201866977533 has an unfulfillable status= closed."
]
}
Current situation:
"status": "closed",
"line_items": [
{
"id": 13084681896189,
"shop_id": 61600006397,
"fulfillment_order_id": 6201866977533,
"quantity": 1,
"line_item_id": 12847558721789,
"inventory_item_id": 44360120205565,
"fulfillable_quantity": 0,
"variant_id": 42265906446589
}
The current status shows "closed" (marked) but this should be open and the fulfillable_quantity (marked) should be 1. Could you tell me how to keep the current status open until our partner has fulfilled the orders an how to keep the fulfillable_quantity one?
Looking forward hearing from you:)!
Hi Shopify, please help us on this subject (reply of 02-03-2023 03:41 AM). Thanks!
Hi Shopify, Please help on the below messages:
Hi there,
We've been working on it and we gave our partner all the permissions they need. However we are now facing the following issue's (almost there). We receive the following responses:
1) Response 1
{
"errors": [
"Invalid fulfillment order line item quantity requested."
]
}
2) Response 2
{
"errors": [
"Fulfillment order 6201866977533 has an unfulfillable status= closed."
]
}
Current situation:
"status": "closed",
"line_items": [
{
"id": 13084681896189,
"shop_id": 61600006397,
"fulfillment_order_id": 6201866977533,
"quantity": 1,
"line_item_id": 12847558721789,
"inventory_item_id": 44360120205565,
"fulfillable_quantity": 0,
"variant_id": 42265906446589
}
The current status shows "closed" (marked) but this should be open and the fulfillable_quantity (marked) should be 1. Could you tell me how to keep the current status open until our partner has fulfilled the orders an how to keep the fulfillable_quantity one?