Reservations
The Reservations resource in our API enables clients to manage the reservation of inventory. It provides endpoints for placing, viewing, and canceling reservations. This functionality is crucial for businesses that must allocate inventory efficiently and ensure availability for orders or services. Users can seamlessly integrate reservation capabilities into their applications through the API, enhancing operational workflows and customer satisfaction.
Cancels a reservation. Supply the unique identifier of the reservation.
Reservation identifier
204 No Content
400 Bad Request
401 Unauthorized
403 Forbidden
401 Not Found
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
DELETE /reservations/{id} HTTP/1.1
Host: api.digitalriver.com
Accept: */*
No content
Create a reservation to hold inventory items in a fulfillment order.
The unique identifier of the reservation.
5678901234
A positive integer that specifies the number of seconds before the reservation expires and is deleted.
300
201 Created
400 Bad Request
401 Unauthorized
403 Forbidden
405 Method Not Allowed
406 Not Acceptable
408 Request Timeout
409 Conflict
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway Error
503 Service Unavailable Error
504 Gateway Timeout Error
POST /reservations HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 282
{
"id": "5678901234",
"items": [
{
"inventoryItemId": "9234276173",
"quantity": 1,
"allowOversell": false
}
],
"shipTo": {
"address": {
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
}
},
"shippingChoice": {
"currency": "USD",
"amount": 5.95,
"serviceLevel": "SG"
},
"expiresInSeconds": 300
}
{
"id": "5678901234",
"createdTime": "2018-04-25T20:36:00Z",
"shipTo": {
"address": {
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
}
},
"shippingChoice": {
"currency": "USD",
"amount": 5.95,
"serviceLevel": "SG"
},
"items": [
{
"inventoryItemId": "9234276173",
"quantity": 1,
"allowOversell": false
}
],
"expiresInSeconds": 300,
"liveMode": false
}
Last updated