---
schema_version: "1"
id: e3b0f7805cc1ce32b90efd274749d301ed1e1c1823d5043e71b1de4014ff8ded
title: Inventory Allocation (POST)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/connect_resources_inventory_allocation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/connect_resources_inventory_allocation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 21e3b7ebfaecdb4e92c7853512b9005a5eaf52d9ad2cdf2dd36768e13a5ef40e
description: Allocates the given source locations along with allocated quantities to selected item IDs.
---
# 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](https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/connect_requests_inventory_allocation_data.htm "List of records associated to a source ID.")\[\] | List of source or parent records for inventory allocation processing. | Required | 66.0 |

## Response Body for POST

[Inventory Allocation Output](https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/connect_responses_inventory_allocation_output.htm "Output representation for inventory allocation.")