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!

0 Likes
GrahamS
Shopify Staff
Shopify Staff
83 16 16

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

0 Likes
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?

0 Likes
GrahamS
Shopify Staff
Shopify Staff
83 16 16

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

0 Likes