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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Update Order by using API

Update Order by using API

Abubakar8144
Tourist
11 0 1

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
Tourist
11 0 1

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"
}
}