Fulfill an order using API / "fulfillment": {"errors":{"base":["Cannot create fulfillment"]}}

pankaj180
New Member
3 0 0
Hi,
 
I am getting an error while calling a fulfillment API.  with Gift card product + other products. Both products are of the same location.
API URL: admin/orders/2621977559122/fulfillments.json
Request : 
{
  "fulfillment": {
    "location_id"32111558738,
    "tracking_number"null,
    "line_items": [
      {
        "id"5821044719698,
        "quantity"1
      },
      {
        "id"5821044752466,
        "quantity"1
      }
    ]
  }
}
 
Error : HTTP status is 422, Unprocessable Entity{"errors":{"base":["Cannot create fulfillment"]}}
 
However, Both product is of location.
0 Likes