PUT
/
allocation
/
cancel
/
{allocationIds}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

allocationIds
string[]
required

Response

200 - application/json
allocationId
string
required

Unique ID for an allocation document

items
object[]
required

List of items to be shipped

locationNum
string
required

Tenant's ship-from location ID

parentAllocationId
string
required

Same as previous allocation document while creating new allocation

allocationDate
string

Time of allocation creation and when it was stored in database

allocationNum
string

Allocation number for client tracking

allocationRequestId
string

Allocation request ID used for tracking internal communication. Required to update allocation details.

auditLogs
object[]

Logs with updated fields

itemsType
enum<string>

Items type

Available options:
WEB_SHIP,
POS,
WEB
locationType
string

Tenant's ship-from location type

orderSubType
enum<string>

Sub-type of order

Available options:
IOS,
Android,
International,
Borderfree
poNumber
string | null

Purchase order number (generally, vendor-generated)

previousAllocationLocationNum
number

In reallocation scenarios, keeps track of the previously allocation location numbers

recipient
object[]

Recipient details such as phone number, email, and name

sentToPPSDate
string

Time of sending allocation event to PPS

shipDate
string

Estimated ship date

shipMethod
string

Optional field for shipment method

shipToAddress
object
shipToId
string

Unique Id for delivery address

shipType
string

Optional field for shipment type

statusCode
enum<string>

Allocation status code

Available options:
ALLOCATED,
PENDING_DROP,
PENDING_PICK,
SHIPPED,
PARTIALLY_SHIPPED,
REALLOCATED,
CANCELLED,
PARTIALLY_CANCELLED
type
enum<string>

Allocation type

Available options:
ALLOCATED,
SCRATCHED,
RETURNED
updatedAt
string

Time of allocation update

vendorId
string | null

Vendor ID

version
integer

Current version of allocation document