Download OpenAPI specification:Download
fabric V2 allocation APIs for multi-tenant service help identify the nearest warehouse to ship items in the order by reserving the inventory.
Generates allocation for each item in the order. The response includes fabric-generated allocationID, which is required for GET /allocation/{allocationId}.
required | object (XSiteContext) x-site-context value |
Allocation Assigned
Partial Content
Bad Request
Order/item/Details Not Found/Valid
Internal Server Error
{- "detailType": "ORDER_CREATE",
- "detail": {
- "orderNumber": "ship1233234555g",
- "channel": "ship1233234555g",
- "tenant": "ship1233234555g",
- "id": "98ff5c0bec0aed3c86202c32",
- "documentType": "ALLOCATION",
- "items": [
- {
- "lineItemId": "134fqfaa532qrf",
- "allocationLineNumber": 1,
- "quantity": 3
}
]
}
}
[- {
- "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": [
- {
- "name": {
- "first": "John",
- "middle": "Middle",
- "last": "Doe"
}, - "email": "demo@xyz.inc",
- "phone": {
- "number": "55555555555",
- "type": "MOBILE"
}, - "pickupType": "Primary"
}
], - "items": [
- {
- "orderLineId": "134fqfaa532qrf",
- "itemId": "100064",
- "sku": "123k4h123k",
- "orderId": "123k4h123k",
- "orderDate": "2022-08-01T18:03:28.483971941Z",
- "estimatedDeliveryDate": "2022-08-01T18:03:28.483971941Z",
- "quantity": 3,
- "allocationLineNumber": 3,
- "parentAllocationLineNumber": 3,
- "reallocationRequestId": "123k4h123k",
- "shippedQuantity": 1,
- "scratchQuantity": 1,
- "scratchedReasonCode": "Scratched during shipment",
- "reshipReasonCode": "Reshipping during shipment",
- "reallocationReasonCode": "Reallocating due to unavailability of location number",
- "channelId": "12",
- "segment": null,
- "vendorId": "56",
- "title": "Demo",
- "weight": 5.5,
- "cost": 500.2,
- "price": 50.2,
- "itemStatus": "ALLOCATED",
- "attributes": {
- "property1": { },
- "property2": { }
}, - "uom": "KG"
}
], - "auditLogs": [
- {
- "lineItemId": "4",
- "auditId": "62272e917b12209e68751d94",
- "auditType": "UPDATE",
- "employeeId": "62272e917b12209e68751d94",
- "auditTimestamp": "2022-05-12T09:24:54.804Z",
- "source": "POS",
- "reasonCode": "POS",
- "subReasonCode": "POS",
- "policyCode": "POS",
- "note": "Note",
- "lineItemNumber": 1,
- "sku": "F5F",
- "quantity": 1,
- "amount": 2.4,
- "paymentToken": {
- "token": "pi_34tr6787rt",
- "paymentType": "VISA"
}, - "success": true,
- "paymentResponse": { },
- "updatedFields": [
- {
- "fieldName": "UOM",
- "fieldOriginalValue": "PK"
}
], - "attributes": {
- "property1": { },
- "property2": { }
}
}
]
}
]
Gets allocation details by allocation ID
Allocation Details
AllocationId not found/valid
Internal Server Error
{- "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": [
- {
- "name": {
- "first": "John",
- "middle": "Middle",
- "last": "Doe"
}, - "email": "demo@xyz.inc",
- "phone": {
- "number": "55555555555",
- "type": "MOBILE"
}, - "pickupType": "Primary"
}
], - "items": [
- {
- "orderLineId": "134fqfaa532qrf",
- "itemId": "100064",
- "sku": "123k4h123k",
- "orderId": "123k4h123k",
- "orderDate": "2022-08-01T18:03:28.483971941Z",
- "estimatedDeliveryDate": "2022-08-01T18:03:28.483971941Z",
- "quantity": 3,
- "allocationLineNumber": 3,
- "parentAllocationLineNumber": 3,
- "reallocationRequestId": "123k4h123k",
- "shippedQuantity": 1,
- "scratchQuantity": 1,
- "scratchedReasonCode": "Scratched during shipment",
- "reshipReasonCode": "Reshipping during shipment",
- "reallocationReasonCode": "Reallocating due to unavailability of location number",
- "channelId": "12",
- "segment": null,
- "vendorId": "56",
- "title": "Demo",
- "weight": 5.5,
- "cost": 500.2,
- "price": 50.2,
- "itemStatus": "ALLOCATED",
- "attributes": {
- "property1": { },
- "property2": { }
}, - "uom": "KG"
}
], - "auditLogs": [
- {
- "lineItemId": "4",
- "auditId": "62272e917b12209e68751d94",
- "auditType": "UPDATE",
- "employeeId": "62272e917b12209e68751d94",
- "auditTimestamp": "2022-05-12T09:24:54.804Z",
- "source": "POS",
- "reasonCode": "POS",
- "subReasonCode": "POS",
- "policyCode": "POS",
- "note": "Note",
- "lineItemNumber": 1,
- "sku": "F5F",
- "quantity": 1,
- "amount": 2.4,
- "paymentToken": {
- "token": "pi_34tr6787rt",
- "paymentType": "VISA"
}, - "success": true,
- "paymentResponse": { },
- "updatedFields": [
- {
- "fieldName": "UOM",
- "fieldOriginalValue": "PK"
}
], - "attributes": {
- "property1": { },
- "property2": { }
}
}
]
}
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
required | object (XSiteContext) x-site-context value |
Allocation Updated
Order/item/Details Not Found/Valid
Internal Server Error
{- "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": [
- {
- "name": {
- "first": "John",
- "middle": "Middle",
- "last": "Doe"
}, - "email": "demo@xyz.inc",
- "phone": {
- "number": "55555555555",
- "type": "MOBILE"
}, - "pickupType": "Primary"
}
], - "items": [
- {
- "orderLineId": "134fqfaa532qrf",
- "itemId": "100064",
- "sku": "123k4h123k",
- "orderId": "123k4h123k",
- "orderDate": "2022-08-01T18:03:28.483971941Z",
- "estimatedDeliveryDate": "2022-08-01T18:03:28.483971941Z",
- "quantity": 3,
- "allocationLineNumber": 3,
- "parentAllocationLineNumber": 3,
- "reallocationRequestId": "123k4h123k",
- "shippedQuantity": 1,
- "scratchQuantity": 1,
- "scratchedReasonCode": "Scratched during shipment",
- "reshipReasonCode": "Reshipping during shipment",
- "reallocationReasonCode": "Reallocating due to unavailability of location number",
- "channelId": "12",
- "segment": null,
- "vendorId": "56",
- "title": "Demo",
- "weight": 5.5,
- "cost": 500.2,
- "price": 50.2,
- "itemStatus": "ALLOCATED",
- "attributes": {
- "property1": { },
- "property2": { }
}, - "uom": "KG"
}
], - "auditLogs": [
- {
- "lineItemId": "4",
- "auditId": "62272e917b12209e68751d94",
- "auditType": "UPDATE",
- "employeeId": "62272e917b12209e68751d94",
- "auditTimestamp": "2022-05-12T09:24:54.804Z",
- "source": "POS",
- "reasonCode": "POS",
- "subReasonCode": "POS",
- "policyCode": "POS",
- "note": "Note",
- "lineItemNumber": 1,
- "sku": "F5F",
- "quantity": 1,
- "amount": 2.4,
- "paymentToken": {
- "token": "pi_34tr6787rt",
- "paymentType": "VISA"
}, - "success": true,
- "paymentResponse": { },
- "updatedFields": [
- {
- "fieldName": "UOM",
- "fieldOriginalValue": "PK"
}
], - "attributes": {
- "property1": { },
- "property2": { }
}
}
]
}
{- "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": [
- {
- "name": {
- "first": "John",
- "middle": "Middle",
- "last": "Doe"
}, - "email": "demo@xyz.inc",
- "phone": {
- "number": "55555555555",
- "type": "MOBILE"
}, - "pickupType": "Primary"
}
], - "items": [
- {
- "orderLineId": "134fqfaa532qrf",
- "itemId": "100064",
- "sku": "123k4h123k",
- "orderId": "123k4h123k",
- "orderDate": "2022-08-01T18:03:28.483971941Z",
- "estimatedDeliveryDate": "2022-08-01T18:03:28.483971941Z",
- "quantity": 3,
- "allocationLineNumber": 3,
- "parentAllocationLineNumber": 3,
- "reallocationRequestId": "123k4h123k",
- "shippedQuantity": 1,
- "scratchQuantity": 1,
- "scratchedReasonCode": "Scratched during shipment",
- "reshipReasonCode": "Reshipping during shipment",
- "reallocationReasonCode": "Reallocating due to unavailability of location number",
- "channelId": "12",
- "segment": null,
- "vendorId": "56",
- "title": "Demo",
- "weight": 5.5,
- "cost": 500.2,
- "price": 50.2,
- "itemStatus": "ALLOCATED",
- "attributes": {
- "property1": { },
- "property2": { }
}, - "uom": "KG"
}
], - "auditLogs": [
- {
- "lineItemId": "4",
- "auditId": "62272e917b12209e68751d94",
- "auditType": "UPDATE",
- "employeeId": "62272e917b12209e68751d94",
- "auditTimestamp": "2022-05-12T09:24:54.804Z",
- "source": "POS",
- "reasonCode": "POS",
- "subReasonCode": "POS",
- "policyCode": "POS",
- "note": "Note",
- "lineItemNumber": 1,
- "sku": "F5F",
- "quantity": 1,
- "amount": 2.4,
- "paymentToken": {
- "token": "pi_34tr6787rt",
- "paymentType": "VISA"
}, - "success": true,
- "paymentResponse": { },
- "updatedFields": [
- {
- "fieldName": "UOM",
- "fieldOriginalValue": "PK"
}
], - "attributes": {
- "property1": { },
- "property2": { }
}
}
]
}
Finds allocation details based on filter criteria
required | object (XSiteContext) x-site-context value |
Matched Allocations
Data Not Found/Valid
Internal Server Error
{- "limit": 10,
- "offset": 0,
- "sortBy": "updatedAt",
- "sortDirection": "desc",
- "filters": {
- "retail": {
- "locationNum": 12
}, - "orderSubTotal": {
- "gte": 1300,
- "lt": 1400
}, - "orderNumber": "order-*Z",
- "statusCode": [
- "ORDER_CREATED"
], - "createdAt": {
- "lt": "2022-09-11T23:12:00.123Z"
}, - "shipInfo": {
- "shipToId": [
- "23434",
- "23436"
]
}
}
}
[- {
- "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": [
- {
- "name": {
- "first": "John",
- "middle": "Middle",
- "last": "Doe"
}, - "email": "demo@xyz.inc",
- "phone": {
- "number": "55555555555",
- "type": "MOBILE"
}, - "pickupType": "Primary"
}
], - "items": [
- {
- "orderLineId": "134fqfaa532qrf",
- "itemId": "100064",
- "sku": "123k4h123k",
- "orderId": "123k4h123k",
- "orderDate": "2022-08-01T18:03:28.483971941Z",
- "estimatedDeliveryDate": "2022-08-01T18:03:28.483971941Z",
- "quantity": 3,
- "allocationLineNumber": 3,
- "parentAllocationLineNumber": 3,
- "reallocationRequestId": "123k4h123k",
- "shippedQuantity": 1,
- "scratchQuantity": 1,
- "scratchedReasonCode": "Scratched during shipment",
- "reshipReasonCode": "Reshipping during shipment",
- "reallocationReasonCode": "Reallocating due to unavailability of location number",
- "channelId": "12",
- "segment": null,
- "vendorId": "56",
- "title": "Demo",
- "weight": 5.5,
- "cost": 500.2,
- "price": 50.2,
- "itemStatus": "ALLOCATED",
- "attributes": {
- "property1": { },
- "property2": { }
}, - "uom": "KG"
}
], - "auditLogs": [
- {
- "lineItemId": "4",
- "auditId": "62272e917b12209e68751d94",
- "auditType": "UPDATE",
- "employeeId": "62272e917b12209e68751d94",
- "auditTimestamp": "2022-05-12T09:24:54.804Z",
- "source": "POS",
- "reasonCode": "POS",
- "subReasonCode": "POS",
- "policyCode": "POS",
- "note": "Note",
- "lineItemNumber": 1,
- "sku": "F5F",
- "quantity": 1,
- "amount": 2.4,
- "paymentToken": {
- "token": "pi_34tr6787rt",
- "paymentType": "VISA"
}, - "success": true,
- "paymentResponse": { },
- "updatedFields": [
- {
- "fieldName": "UOM",
- "fieldOriginalValue": "PK"
}
], - "attributes": {
- "property1": { },
- "property2": { }
}
}
]
}
]
Updates location number of the existing allocation. To update other details, PUT /allocation/{allocationId} endpoint is recommended.
required | object (XSiteContext) x-site-context value |
Location reallocated
AllocationId not found/valid
Internal Server Error
{- "orderNumber": "ship1233234555g",
- "channel": "ship1233234555g",
- "tenant": "ship1233234555g",
- "id": "98ff5c0bec0aed3c86202c32",
- "documentType": "ALLOCATION",
- "items": [
- {
- "lineItemId": "134fqfaa532qrf",
- "allocationLineNumber": 1,
- "quantity": 3
}
]
}
{- "message": "Reallocation process completed Successfully with !! allocation Ids [6315dec507025b003f20ed3c]"
}
Cancels allocation by allocation ID
Cancel Allocation
AllocationRequestId Not Found/Valid
Internal Server Error
[- {
- "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": [
- {
- "name": {
- "first": "John",
- "middle": "Middle",
- "last": "Doe"
}, - "email": "demo@xyz.inc",
- "phone": {
- "number": "55555555555",
- "type": "MOBILE"
}, - "pickupType": "Primary"
}
], - "items": [
- {
- "orderLineId": "134fqfaa532qrf",
- "itemId": "100064",
- "sku": "123k4h123k",
- "orderId": "123k4h123k",
- "orderDate": "2022-08-01T18:03:28.483971941Z",
- "estimatedDeliveryDate": "2022-08-01T18:03:28.483971941Z",
- "quantity": 3,
- "allocationLineNumber": 3,
- "parentAllocationLineNumber": 3,
- "reallocationRequestId": "123k4h123k",
- "shippedQuantity": 1,
- "scratchQuantity": 1,
- "scratchedReasonCode": "Scratched during shipment",
- "reshipReasonCode": "Reshipping during shipment",
- "reallocationReasonCode": "Reallocating due to unavailability of location number",
- "channelId": "12",
- "segment": null,
- "vendorId": "56",
- "title": "Demo",
- "weight": 5.5,
- "cost": 500.2,
- "price": 50.2,
- "itemStatus": "ALLOCATED",
- "attributes": {
- "property1": { },
- "property2": { }
}, - "uom": "KG"
}
], - "auditLogs": [
- {
- "lineItemId": "4",
- "auditId": "62272e917b12209e68751d94",
- "auditType": "UPDATE",
- "employeeId": "62272e917b12209e68751d94",
- "auditTimestamp": "2022-05-12T09:24:54.804Z",
- "source": "POS",
- "reasonCode": "POS",
- "subReasonCode": "POS",
- "policyCode": "POS",
- "note": "Note",
- "lineItemNumber": 1,
- "sku": "F5F",
- "quantity": 1,
- "amount": 2.4,
- "paymentToken": {
- "token": "pi_34tr6787rt",
- "paymentType": "VISA"
}, - "success": true,
- "paymentResponse": { },
- "updatedFields": [
- {
- "fieldName": "UOM",
- "fieldOriginalValue": "PK"
}
], - "attributes": {
- "property1": { },
- "property2": { }
}
}
]
}
]