Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Can't create fulfillment after accepting an order - Line items are already fulfilled

Can't create fulfillment after accepting an order - Line items are already fulfilled

unitedpostalgh
Tourist
6 0 1

Hello,

I'm using this post command:

admin/api/2021-04/orders/{orderid}/fulfillments.json

Error message is: Line items are already fulfilled

X-Request-ID = 950c4ce1-e77b-4609-8452-629f27729113

Any help would be appreciated.

 

Thanks

 

issah

Replies 2 (2)

csam
Shopify Staff (Retired)
267 40 51

Hi @unitedpostalgh 

Thank you for providing the request ID. Having a look in our logs, the error I am seeing is a 422 unprocessable entity. Usually this means that one or more of the fields in the request is incorrect, or the json itself is malformed. You can see an example fulfillment call in our documentation here: https://shopify.dev/api/admin/rest/reference/shipping-and-fulfillment/fulfillment#create-2021-07 

 

 

To learn more visit the Shopify Help Center or the Community Blog.

unitedpostalgh
Tourist
6 0 1

Hello Csam,

 

Thank you for your response.

I created a fresh order and went through the flow.

1. I did an api request for the order.

2. I accepted the order

3. I tried to create a fulfillment

orders/4009360818371/fulfillments.json

I used the following body which is taken from the documentation with only the location_id being changed

{
  "fulfillment": {
    "location_id"64417300675,
    "tracking_number""123456789",
    "tracking_urls": [
    ],
    "notify_customer"true
  }
}
 
I still got the following:
"Line items are already fulfilled"
 
X-Request-ID: 3a3a4810-1d42-4ee0-b42e-60eb5737cab3
 
Can you tell me what I am doing wrong?  Is there an error in the sequence of api calls.  Do you need additional information to dive deeper?  On the shop interface the order status is "In Progress" and the Fulfillment Status is "Accepted".  Attached is a screen shot.
 
Thanks
 
issah