Estimate

Returns

Response Object object

Response object child attributes


id String

Estimate ID


name String

Service name


fee Double

Fee amount


pickupTime String ISO DateTime, UTC

Pickup time for the order.

ISO DateTime, example "2021-08-21T23:34:10Z"

pattern: "YYYY-mm-DDTHH:MM:SSZ"


deliveryTime String ISO DateTime, UTC

Delivery time for the order.

ISO DateTime, example "2021-08-21T23:34:10Z"

pattern: "YYYY-mm-DDTHH:MM:SSZ"


pickupDuration Integer

Pickup duration for the order in minutes


deliveryDuration Integer

Delivery duration in minutes


error Boolean

Identifier for error. True if there was any.


errorCode String

Error Code. ex. "SDX-3-2"


errorMessage String

Reason 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

}