Shipping quotes
The Shipping Quotes resource provides shipping options.
Get all available shipping quotes
Body
currencystringRequiredExample:
A three-letter ISO currency code.
USD
Responses
200
200 OK
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
post
POST /shipping-quotes HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 158
{
"currency": "USD",
"shipTo": {
"postalCode": "55129",
"state": "MN",
"country": "US",
"type": "standard"
},
"items": [
{
"inventoryItemId": "abc",
"price": 9.99,
"quantity": 1
}
]
}
{
"shipTo": {
"postalCode": "55129",
"state": "MN",
"country": "US",
"type": "standard"
},
"quotes": [
{
"id": "SG",
"currency": "USD",
"serviceLevel": "Standard",
"shipping": 5.99,
"handling": 0.99,
"fees": 0,
"total": 6.98,
"signatureRequiredType": "standard",
"estimatedMinimumDeliveryTime": 1,
"estimatedMaximumDeliveryTime": 1,
"items": [
{
"inventoryItemId": "abc",
"quantity": 1,
"availableQuantity": 6,
"availableTime": {
"offset": {
"totalSeconds": 0,
"id": "Z",
"rules": {
"fixedOffset": true,
"transitions": [],
"transitionRules": []
}
},
"nano": 0,
"year": 2018,
"monthValue": 4,
"dayOfMonth": 25,
"hour": 20,
"minute": 36,
"second": 0,
"dayOfWeek": "WEDNESDAY",
"dayOfYear": 115,
"month": "APRIL"
},
"shipFrom": {
"address": {
"line1": "10380 Bren Rd W",
"line2": "text",
"city": "Minnetonka",
"postalCode": "55129",
"state": "MN",
"country": "US"
},
"additionalAddressInfo": {
"neighborhood": "Centro",
"division": "???",
"phoneticName": "??? ??"
}
},
"shipping": 5.99,
"handling": 0.99,
"fees": 0,
"total": 6.98
}
]
}
],
"liveMode": false
}
Last updated