Set fulfilment status to fulfilled using API

jak82
New Member
8 0 0

Hi,

I am trying to set the fulfilment status of an order to fulfilled.

From what I have read you need to create a new fulfilment item to set the status.

What I have tried so far is

$Linkhttps://<site>/admin/api/2021-04/orders/<orderid>/fullfillment.json
$Body"`"fulfillments`": { `"id`"`"<orderid>`"`"fulfillment_status`"`"fulfilled`" } }"
$Headers = @{"Authorization" = "Basic "+[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($apikey+":"+$password))}
Powershell CALL= Invoke-RestMethod -Uri $uri -Method Post -Body $body -ContentType 'application/json' -Headers $headers -UseBasicParsing
Method I am using is Post
 
Is the BODY and LINK i am using to set the fulfilment status ok.. I am receiving the error 
 
Response status code does not indicate success: 406 (Not Acceptable).
 
Would someone be able to help?
 
 

 

 

 

0 Likes
jak82
New Member
8 0 0

We also do not use locationid's

0 Likes
CalD
Shopify Staff
Shopify Staff
128 15 18

Hey @jak82,

Have you looked at the FulfillmentEvent API for updating the status? 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
jak82
New Member
8 0 0

Hi CalD,

 

Thanks for replying.

That seems to be more to do with the fulliment delivery status.

We just need to set on the order Fulfillment status to 'Fulfilled' as we are using unfulffilled to see what orders need processed.

 

 

 

 

0 Likes