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.

Order fulfillment_status not getting updated

Order fulfillment_status not getting updated

HarshPanday
Shopify Partner
4 0 1

I want to update my shopify order's fulfillment_status using my API but for some reason the fulfillment_Status is not changing.
I have tried 2 ways
1. CURL API endpoint

/admin/api/2023-04/orders/XXXXX.json
I am sending a PUT request to an endpoint similar to above as instructed in Shopify's Admin API docs
I am sending the following JSON

{
  "order":{
    "id":5333711388952,
    "fulfillment_status""fulfilled"
    }
}
but this request return the orignal order, it does not update the fulfullment_Status of the order.

2. using shopify-api-node
I also tried using shopify-api-node library to update the order but that also return the original order
const Shopify = require('shopify-api-node');
        const shopify = new Shopify({
            shopName: 'XX.myshopify.com',
            apiKey: 'XXXX',
            password: 'XXXX',
          });
 
          try {
            // Update the fulfillment status of the order
            const order = await shopify.order.get(1234567890)         
            const updatedOrder = await shopify.order.update(1234567890, {
                "id":1234567890,
                "fulfillment_status": "fulfilled",
            });
            console.log(updatedOrder)
        }catch(e){
            console.log(e)
        }


I would be grateful if someone could tell me what am I doing wrong.

Reply 1 (1)

garyrgilbert
Shopify Partner
431 41 185

Hi There,

 

are you trying to fulfill the order?  If so you are going about it the wrong way, you can not update the fulfillment_status of an order anymore. You have to use the fulfillment endpoint in conjunction with fulfillment_orders to fulfill the order.

 

Cheers,

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution