Development discussions around Shopify APIs
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!
Solved! Go to the solution
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
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
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?
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
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!
User | RANK |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We'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, 2023