Unable to update shipment_status during fulfillment/fulfillmentUpdate

rexb
Excursionist
19 0 0

Good day!

I am Unable to update shipment_status during fulfillment/fulfillmentUpdate. Does someone encounter this issue?

$result = (new Shopify())->request('orders/'.$order_id.'/fulfillments.json',[
                        'fulfillment' => [
                            'line_items' => $line_items,
                            'location_id' =>  $location_id,
                            'tracking_number' => $tracking_number,
                            'tracking_urls' => [
                                $tracking_url
                            ],
                            'notify_customer' => $notify,
                            'tracking_company' => $tracking_company,
                            'shipment_status' => $shipment_status
                        ]
                    ], 'POST');

 

And here's the response

 

local.vdw.io_tes.png

Thank you in advance.

 

 

 

 

0 Likes
CalD
Shopify Staff
Shopify Staff
128 15 18

Hey @rexb,

You should be able to update the fulfillment status through the FulfillmentEvent API: https://shopify.dev/docs/admin-api/rest/reference/shipping-and-fulfillment/fulfillmentevent#create-2...

 

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes