Estimate
Returns
Response Object object
Response object child attributes
id
StringEstimate ID
name
StringService name
fee
DoubleFee amount
pickupTime
String ISO DateTime, UTCPickup time for the order.
ISO DateTime, example "2021-08-21T23:34:10Z"
pattern: "YYYY-mm-DDTHH:MM:SSZ"
deliveryTime
String ISO DateTime, UTCDelivery time for the order.
ISO DateTime, example "2021-08-21T23:34:10Z"
pattern: "YYYY-mm-DDTHH:MM:SSZ"
pickupDuration
IntegerPickup duration for the order in minutes
deliveryDuration
IntegerDelivery duration in minutes
error
BooleanIdentifier for error. True if there was any.
errorCode
StringError Code. ex. "SDX-3-2"
errorMessage
StringReason of the error or error related informations.
orderId
string
required
order Id of the order
``200 200
object
id
string
name
string
fee
number
Defaults to 0
pickupTime
string
deliveryTime
string
pickupDuration
integer
Defaults to 0
deliveryDuration
integer
Defaults to 0
error
boolean
Defaults to true
errorCode
string
errorMessage
string
``400 400
xxxxxxxxxx
curl --request GET \
--url https://api.shipday.com/on-demand/estimate/orderId \
--header 'Accept: application/json' \
--header 'Authorization: Basic BgxsDwd00n.LNNn90QydrjgZ1K9dS13' \
--header 'Content-Type: application/json'
xxxxxxxxxx
{
"id": "1233",
"name": "Delivery Ninja",
"fee": 22.5,
"pickupTime": "2021-08-21T23:14:10Z",
"deliveryTime": "2021-08-21T23:44:10Z",
"pickupDuration": 15,
"deliveryDuration": 15,
"error": false,
"errorCode": null,
"errorMessage": null
}