Inventory Allocation (POST)

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

Resource

1/connect/inventory/allocation

Resource Example

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

Available Version

66.0

HTTP Methods

POST

Request Body for POST

JSON Example

1{
2  "allocationData": [
3    {
4      "sourceId": "0AoSG000006cqWo0AI",
5      "items": [
6        {
7          "sourceItemId": "0CoSG000006cqWo0AI",
8          "allocations": [
9            {
10              "allocatedQuantity": 10,
11              "sourceLocationId": "131SG000001ErblYAC",
12              "unbatchedSerializedProductIds": ["0SPRG0000008AA1AI", "0SPRG0000008AA2AI"]
13            }
14          ],
15          "deallocationLocationIds": ["131SG000001ErblYBD"],
16          "deallocations": [
17            {
18              "sourceLocationId": "131SG000001ErblYBE",
19              "serializedProductIds": ["0SPRG0000009AA1AI", "0SPRG0000009AA2AI"]
20            }
21          ]
22        }
23      ]
24    }
25  ]
26}

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