RELATED TOPICS
Inventory Allocation Service
The allocation create operation reserves inventory for one or more line items. The prescribed usage of this API is immediately after the shopper clicks "submit order". This action holds the inventory for an order between the time the shopper starts the submit order process and when the webstore calls order create. This serves two purposes:
- Prevents another shopping session from nabbing the inventory while the current submit order is being processed.
- Prevents overselling of items.
Inventory Allocation Request Message
Level |
Field Name |
Type |
Length |
Req |
Comments |
---|---|---|---|---|---|
1 |
AllocationRequestMessage |
|
|
|
|
2 |
requestId |
String |
50 |
Y |
Unique Request Id |
2 |
storeCode |
String |
10 |
N |
Radial Store Code |
2 |
OrderItem |
|
|
|
|
3 |
lineId |
Integer |
4 |
Y |
Sequential Line ID |
3 |
itemId |
String |
15 |
Y |
Client Item Id |
3 |
Quantity |
Integer |
7 |
Y |
|
Inventory Allocation Request XSD
Sample Request Message XML
Sample Inventory Allocation Request XML
Inventory Allocation Response Message
Level |
Field Name |
Type |
Length |
Required |
Comments |
||
---|---|---|---|---|---|---|---|
1 |
AllocationResponseMessage |
|
|
|
|
||
2 |
reservationId |
Integer |
11 |
Y |
|
||
2 |
AllocationResponse |
|
|
|
|
||
3 |
lineId |
Integer |
4 |
Y |
Sequential Line ID |
||
3 |
itemId |
String |
15 |
Y |
Client Item Id |
||
3 |
AmountAllocated |
Integer |
7 |
Y |
Allocated Quantity |
Inventory Allocation Response XSD
Sample Response Message XML
Sample Inventory Allocation Response XML
Error Message
Reply |
XML Response |
---|---|
500 |
500: Error Response Elapsed time of 90.107000 seconds exceeded Wait Time of 90 seconds |
500 |
500: Radial, Inc. Web Services API "CreateReservation=Inventory Reservation/Allocation" is NOT AVAILABLE at this time. |