Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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
Inventory Allocation Output