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.

"fulfillments" status is "success" ,but the order "fulfillment_status" is null

"fulfillments" status is "success" ,but the order "fulfillment_status" is null

xu
Shopify Partner
2 0 0

“FulfillmentOrder” status is “in_progress” ,and "fulfillments" status is "success" ,but the order "fulfillment_status"=null, I tried FulfillmentOrder and Fulfillment. All interfaces cannot modify the fulfillment status of the order.

order:  5224631992612   

111111111118.png

2222222222222.png

xu_0-1673240836565.png

 

If I use the fulfillments.json API, an error will be reported: {"errors": ["Cannot create fulfillment for the fulfillment order."].
If I use the fulfillments/id/cancel.json API, an error will be reported: "errors": ["Validation failed: Quantity can't be greater than remaining sufficient quantity"].
"Fullment_orders/id/open.json, fullment_orders/id/close.json, fullment_orders/id/cancel. json, fullment_orders/id/hole. json" all report an error.

 

Question: How should I complete the reservation and which API should I use?

 

Replies 2 (2)

xu
Shopify Partner
2 0 0

As long as the "Fulfillments. json" API is used for shipment, then "Fulfillment_order_line_items" does not enter parameters, and the order has two or more sub-items, this problem will occur! These logistics cannot be deleted on the shopify backend, and all APIs cannot operate to repair orders. This is a very serious bug!!!

ShopifyDevSup
Shopify Staff
1453 238 528

Hi @xu, There's a couple of things we noticed here. Please be aware that there is a deprecated call for updating line items fulfilment, and ensure you are using the correct call.  https://shopify.dev/api/admin-graphql/2022-04/objects/LineItem#field-lineitem-fulfillmentstatus:~:te... 

 

Also the example you show there has a fulfillable quantity of -1. So it may be unfulfillable due to this. When the items are unfulfilled the expected value returned for order.fulfillment is NULL.

 

https://shopify.dev/api/admin-rest/2022-10/resources/order#:~:text=null%3A%20None%20of%20the%20line%....

 

  • fulfilled: Every line item in the order has been fulfilled.
  • null: None of the line items in the order have been fulfilled.
  • partial: At least one line item in the order has been fulfilled.
  • restocked: Every line item in the order has been restocked and the order canceled.

Hope that 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