Make an unfulfilled order fullfilled

Hello i’m trying to make an order with financial_status: paid and unfulfilled ( https://prnt.sc/1yew012 ) as fulfilled with api (v 2021-10). I want to fulfill all the line_items.

What i have done:

– Content-Type:application/json

  • Body:

{
“fulfillments”: {
“location_id”: 905684977,
“tracking_number”:[1234567],
“line_items”: [
{
“id”: 10085501796505,
“quantity”: 1
}
]
}
}

  • Response:

https://prnt.sc/1yewfzc

Source: https://shopify.dev/api/admin-rest/2021-10/resources/fulfillment#[post]/admin/api/2021-10/orders/{order_id}/fulfillments.json

As the source said, i could have for response a json object like https://prnt.sc/1yewkfj. Is something wrong with the request ?

I also try ( https://prnt.sc/1yf6e4e ) on that way and i got response with status code 404 - ( https://prnt.sc/1yf6mlo )

Hey @GGkikas

Thanks for getting in touch! So if I have a Paid Order with an unfulfilled status and try something like this with a call to https://mycoolstore.myshopify.com/admin/api/2021-10/orders/order_id/fulfillments.json - I’m able to successfully fulfill my line item myself. Take a look below :

{
   "fulfillment":{
      "location_id": 123456789,
      "tracking_number":"8782828",
      "line_items":[
         {
            "id":1111111111111111,
            "quantity":1
         }
      ]
   }

Please feel free to give that a try. I’d say it would be a good idea to clear those cookies too in your Postman client, I’ve encountered issues in Postman in the past if I don’t delete them (here’s Postman’s docs on how to delete them.) Hope that helps!

Thank you for your response,

I tried it but the response is not found. Why is this happening ? Do you have any idea ?

It’s ok, the location id was wrong … thank you

1 Like