Hey Guys i am making a POST request to `{{REST_SER...
# suitetalkapi
m
Hey Guys i am making a POST request to
{{REST_SERVICES}}/record/v1/salesOrder/1234/!transform/itemFulfillment
With the Body
Copy code
{
  "item": {
    "items": [
      {
        "orderLine": 1,
        "itemreceive": true,
        "location": 6
      },
      {
        "orderLine": 2,
        "itemreceive": true
      }
    ]
  },
  "shipStatus": {
    "id": "C"
  }
}
The first order line is the inventory item The second order line is non-inventory resale item If I make separate requests for both the line items i can create item fulfilment but if I combine them in one request like above I get this error
Copy code
{
  "type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>",
  "title": "Bad Request",
  "status": 400,
  "o:errorDetails": [
    {
      "detail": "Error while accessing a resource. Fulfillments can be shipped from only one location when using Multi-Location Inventory.",
      "o:errorCode": "USER_ERROR"
    }
  ]
}
Can somebody help me in getting this done in a single request? Thanks
a
This single request is not simple if you use multi-location and different locations at the line level of the Sales Order, you need to use ship groups, search the help for ship groups, each location will need a shipgroup, you can create a fulfillment per each unique location.