Having trouble fulfilling an order through API

Solved
reneLizarragaGG
New Member
2 0 0

Hi!

I have a system that has been fulfilling orders without issues for a couple of months and today i ran into an exception, when i try to fulfill the order using the endpoint /admin/api/2021-04/orders/{order_number}/fulfillments.json i get the error { "errors": { "base": [ "Line items are already fulfilled" ] } } . And when i retrieve the data through /admin/api/2021-04/orders/{order_number}/fulfillments.json i get this response { "fulfillments": [] } .

I've tried other endpoints to try to gather more information and my Shopify admin page doesn't indicate anything different about this order, it is Partially Refunded but so are many more that I've been able to fulfill without any issues.

Thanks to whoever read this and i hope someone has any solutions for this!

Accepted Solution (1)
GrahamS
Shopify Staff (Retired)
Shopify Staff (Retired)
193 36 52

This is an accepted solution.

Her @reneLizarragaGG  - I checked the x-request-id and confirm that no bad data is being passed here. I would encourage you to head to your admin at "https://your-store-name-here.myshopify.com/admin/orders/ORDERIDHERE", replacing that end portion with the ID you are using in your API call, and review the status of the line items on the order. You mentioned that the order is partially refunded - depending on how this was processed, the line items may have been removed from the order and restocked, in which case they would no longer be fulfillable. If that's the case, the empty array and error messages you are receiving would be expected.

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me 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

View solution in original post

Replies 4 (4)
GrahamS
Shopify Staff (Retired)
Shopify Staff (Retired)
193 36 52

Hey @reneLizarragaGG ,

I can take a look at this for you - can you pass me an x-request-id for your most recent API call that returned that response?

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me 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

reneLizarragaGG
New Member
2 0 0

Sure! This is the X-Request-ID:ae2a0b30-e631-42e0-ac28-663c0b15a72a , thank you so much for looking into this @GrahamS ! We detected that the items are removed from this order, would this cause this issue? And if so, what would be the right way to fulfill this order?

GrahamS
Shopify Staff (Retired)
Shopify Staff (Retired)
193 36 52

This is an accepted solution.

Her @reneLizarragaGG  - I checked the x-request-id and confirm that no bad data is being passed here. I would encourage you to head to your admin at "https://your-store-name-here.myshopify.com/admin/orders/ORDERIDHERE", replacing that end portion with the ID you are using in your API call, and review the status of the line items on the order. You mentioned that the order is partially refunded - depending on how this was processed, the line items may have been removed from the order and restocked, in which case they would no longer be fulfillable. If that's the case, the empty array and error messages you are receiving would be expected.

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me 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

V18SProjects
New Member
1 0 0

Hi Graham

I'm having the same problem, but in this case, what can I do to fulfill this order, if the order was partially refunded. When I try to get fulfill information of this order, I get an empty array, and when I do the post request I get an error with "Line items are already fulfilled". What can I do?

"X-Request-ID":"7cbd3e50-db81-474e-8e07-3a49339132e9"

Thanks!