Update allocation

Updates allocation for the given order or item. Primary use cases are to update location number (related to warehouse), allocation number (external use), item details, etc. To specifically update Location Number, the PUT /allocation/reallocate endpoint is recommended

Request
path Parameters
allocationId
required
string
header Parameters
required
object

x-site-context value

Request Body schema: application/json
allocationId
required
string

Unique ID for an allocation document

version
integer <int64>

Current version of allocation document

allocationRequestId
string

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

allocationNum
string

Allocation number for client tracking

parentAllocationId
required
string

Same as previous allocation document while creating new allocation

sentToPPSDate
string <date-time>

Time of sending allocation event to PPS

allocationDate
string <date-time>

Time of allocation creation and when it was stored in database

updatedAt
string <date-time>

Time of allocation update

type
string

Allocation type

Enum: "ALLOCATED" "SCRATCHED" "RETURNED"
previousAllocationLocationNum
number

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

poNumber
string or null

Purchase order number (generally, vendor-generated)

itemsType
string

Items type

Enum: "WEB_SHIP" "POS" "WEB"
orderSubType
string

Sub-type of order

Enum: "IOS" "Android" "International" "Borderfree"
vendorId
string or null

Vendor ID

shipDate
string <date-time>

Estimated ship date

shipType
string <date-time>

Optional field for shipment type

shipMethod
string <date-time>

Optional field for shipment method

shipToId
string

Unique Id for delivery address

statusCode
string

Allocation status code

Enum: "ALLOCATED" "PENDING_DROP" "PENDING_PICK" "SHIPPED" "PARTIALLY_SHIPPED" "REALLOCATED" "CANCELLED" "PARTIALLY_CANCELLED"
locationNum
required
string

Tenant's ship-from location ID

locationType
string

Tenant's ship-from location type

shipToAddress
object
Array of objects

Recipient details such as phone number, email, and name

required
Array of objects

List of items to be shipped

Array of objects

Logs with updated fields

Responses
200

Allocation Updated

400

Order/item/Details Not Found/Valid

500

Internal Server Error

put/allocation/{allocationId}
Request samples
application/json
{
  • "allocationId": "62ff5c0bec0aed3c86202c32",
  • "version": 2,
  • "allocationRequestId": "62ff5c0bec0aed3c86202c32",
  • "allocationNum": "xxyyzz12345",
  • "parentAllocationId": "62ff5c0bec0aed3c86202c32",
  • "sentToPPSDate": "2022-08-01T18:03:28.483971941Z",
  • "allocationDate": "2022-08-01T18:03:28.483971941Z",
  • "updatedAt": "2022-08-01T20:03:28.483971941Z",
  • "type": "ALLOCATED",
  • "previousAllocationLocationNum": 410,
  • "poNumber": "1125",
  • "itemsType": "WEB_SHIP",
  • "orderSubType": "BORDERFREE",
  • "vendorId": "56",
  • "shipDate": null,
  • "shipType": "SHIP_TO_ADDRESS",
  • "shipMethod": "Overnight Delivery",
  • "shipToId": "98ff5c0bec0aed3c86202c32",
  • "statusCode": "PENDING_PICK",
  • "locationNum": "1234B",
  • "locationType": "1234B",
  • "shipToAddress": { },
  • "recipient": [
    ],
  • "items": [
    ],
  • "auditLogs": [
    ]
}
Response samples
application/json
{
  • "allocationId": "62ff5c0bec0aed3c86202c32",
  • "version": 2,
  • "allocationRequestId": "62ff5c0bec0aed3c86202c32",
  • "allocationNum": "xxyyzz12345",
  • "parentAllocationId": "62ff5c0bec0aed3c86202c32",
  • "sentToPPSDate": "2022-08-01T18:03:28.483971941Z",
  • "allocationDate": "2022-08-01T18:03:28.483971941Z",
  • "updatedAt": "2022-08-01T20:03:28.483971941Z",
  • "type": "ALLOCATED",
  • "previousAllocationLocationNum": 410,
  • "poNumber": "1125",
  • "itemsType": "WEB_SHIP",
  • "orderSubType": "BORDERFREE",
  • "vendorId": "56",
  • "shipDate": null,
  • "shipType": "SHIP_TO_ADDRESS",
  • "shipMethod": "Overnight Delivery",
  • "shipToId": "98ff5c0bec0aed3c86202c32",
  • "statusCode": "PENDING_PICK",
  • "locationNum": "1234B",
  • "locationType": "1234B",
  • "shipToAddress": { },
  • "recipient": [
    ],
  • "items": [
    ],
  • "auditLogs": [
    ]
}