Re: Update Order by using API

Update Order by using API

Abubakar8144
New Member
11 0 0

When I update the fulfillment status of order by using respective API, its not updated. But, when I update note of order by using respective API, it worked fine. So, I want to update the fulfillment status by using respective API. How can we overcome my problem? Kindly help me.

 

My request sample :

https://my_development_store/admin/api/2021-10/orders/4107536728217.json?

 

My json requestbody :

 

{
    "order": {
     "id" : 4107536728217,
     "fulfillment_status": "shipped",
    }
}
Replies 2 (2)

csam
Shopify Staff (Retired)
267 40 51

Hi @Abubakar8144 

 

The fulfillment status that you're attempting to set is not one of the accepted values. The accepted values are fulfillednull, or partial

 

You can read more about this here: https://shopify.dev/api/admin-rest/2021-10/resources/fulfillment#resource_object

 

Cheers!

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

Abubakar8144
New Member
11 0 0

I have tried these but it didn't work. The value of fulfillment_status remains null. Kindly tell me the mistake in this code.

 

My json requestbody :

 

{
    "order":
{
    "id"4247151902873,
    "fulfillment_status""fulfilled"
}
}