Fulfillment API Failure

Solved
Highlighted
New Member
6 0 0

Dears,

I am trying to update order fulfillment status to fulfilled. I am using POSTMAN  and referred to Shopify fulfillment API documentation. I was able to test some APIs successfully (GetOrders, Get Fulfillment status and others). So, the API setup looks fine. 

 

However when I use the example in the guide to create new fulfillment it retrieves some HTML and status not updated.

https://help.shopify.com/en/api/reference/shipping-and-fulfillment/fulfillment#create-2019-07

 

Below is the code I am using. I tried many trials with different combinations but fails all. Like with/without status. I have also double checked the order ID in the URL and line items Id as well and tried different orders. But all the same

https://mystore.myshopify.com/admin/api/2019-07/orders/1222314065993/fulfillments.json
{
  "fulfillment": {
    "tracking_number": null,
    "location_id": 16344285257,
    "status": "success",
    "notify_customer": false,
    "line_items": [
      {
        "id": "2479313813577"
      }
	]
  }
}

Appreciate your help and advice

 

error_shop.PNG

0 Likes

Success.

Shopify Staff
Shopify Staff
469 36 92

Hi @Ahmed_Hassan1 ,

 

This error usually occurs when you are sending cookies with your POST/PUT request.  Can you double check to ensure that POSTMAN isn't including cookies?

 

15-57-6e09g-9u8mc

Developer Experience @ Shopify
1 Like
New Member
6 0 0

Many thanks for your reply. That was the issue and it is now resolved after deleting all cookies.

0 Likes