Inventory Allocation (POST)

Allocates the given source locations along with allocated quantities to selected item IDs.

Resource

/connect/inventory/allocation

Resource Example

https://yourInstance.salesforce.com/services/data/v66.0/connect/inventory/allocation

Available Version

66.0

HTTP Methods

POST

Request Body for POST

JSON Example

{
  "allocationData": [
    {
      "sourceId": "0AoSG000006cqWo0AI",
      "items": [
        {
          "sourceItemId": "0CoSG000006cqWo0AI",
          "allocations": [
            {
              "allocatedQuantity": 10,
              "sourceLocationId": "131SG000001ErblYAC",
              "unbatchedSerializedProductIds": ["0SPRG0000008AA1AI", "0SPRG0000008AA2AI"]
            }
          ],
          "deallocationLocationIds": ["131SG000001ErblYBD"],
          "deallocations": [
            {
              "sourceLocationId": "131SG000001ErblYBE",
              "serializedProductIds": ["0SPRG0000009AA1AI", "0SPRG0000009AA2AI"]
            }
          ]
        }
      ]
    }
  ]
}

Properties

Name Type Description Required or Optional Available Version
allocationData Inventory Allocation Data[] List of source or parent records for inventory allocation processing. Required 66.0

Response Body for POST