POST api/Allocations

Request Information

URI Parameters

None.

Body Parameters

AllocationData
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CustomerId

globally unique identifier

None.

WarehouseId

globally unique identifier

None.

TerritoryId

globally unique identifier

None.

ProductId

globally unique identifier

None.

AllocatedQty

decimal number

Required

Identifier

string

None.

Updated

date

None.

SoldQty

decimal number

None.

StartDate

date

None.

EndDate

date

None.

IsDeleted

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "1a83aa95-d613-4cbc-92bb-b87b84a2293d",
  "CustomerId": "dce97a69-c7c6-4f1c-87b5-5c9a4e25c316",
  "WarehouseId": "c534c63d-2759-4e02-b101-5e5e3dae8ad1",
  "TerritoryId": "878bd9ff-8cb6-49d8-bc7f-cd3d941561d9",
  "ProductId": "540233b1-8452-4568-bff5-700aa4b0fb4e",
  "AllocatedQty": 2.0,
  "Identifier": "sample string 3",
  "Updated": "2025-10-26T03:16:06.7750437-04:00",
  "SoldQty": 1.0,
  "StartDate": "2025-10-26T03:16:06.7750437-04:00",
  "EndDate": "2025-10-26T03:16:06.7750437-04:00",
  "IsDeleted": 1
}

application/xml, text/xml

Sample:
<AllocationData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IosWebApi.Models">
  <AllocatedQty>2</AllocatedQty>
  <CustomerId>dce97a69-c7c6-4f1c-87b5-5c9a4e25c316</CustomerId>
  <EndDate>2025-10-26T03:16:06.7750437-04:00</EndDate>
  <Id>1a83aa95-d613-4cbc-92bb-b87b84a2293d</Id>
  <Identifier>sample string 3</Identifier>
  <IsDeleted>1</IsDeleted>
  <ProductId>540233b1-8452-4568-bff5-700aa4b0fb4e</ProductId>
  <SoldQty>1</SoldQty>
  <StartDate>2025-10-26T03:16:06.7750437-04:00</StartDate>
  <TerritoryId>878bd9ff-8cb6-49d8-bc7f-cd3d941561d9</TerritoryId>
  <Updated>2025-10-26T03:16:06.7750437-04:00</Updated>
  <WarehouseId>c534c63d-2759-4e02-b101-5e5e3dae8ad1</WarehouseId>
</AllocationData>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AllocationData'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.