Examples
Request Example
{
"destinationCountry":"USA",
"amount":"50",
"currencyCode":"USD",
"productCodes":[]
}Response Example
[
{
"destinationCountry": "USA",
"status": "active",
"shippingRates": [
{
"minOrderSubtotal": 0.0000,
"maxOrderSubtotal": 100.0000,
"shippingCost": 15.0000,
"shippingCostCurrency": "USD",
"shippingPriority": "Express Courier (Air)",
"estimatedDeliveryDays": "1-3",
"specialOfferExpiryDate": null
},
{
"minOrderSubtotal": 100.0000,
"maxOrderSubtotal": 9999999.0000,
"shippingCost": 0.0000,
"shippingCostCurrency": "USD",
"shippingPriority": "Express Courier (Air)",
"estimatedDeliveryDays": "1-3",
"specialOfferExpiryDate": null
}
]
}
]Failures
Error Code 500
{
"Code": "500",
"Error": "Error occurred, Please contact Global‑e",
"Description": "Please send valid authentication token/userName in HTTP headers (Authorization/UserName)"
}Error Code 401
{
"Code": "401",
"Error": "Parameter merchantGUID is not a valid GUID. Provided value C064DA15-65E6-42B7-B705-3554FC631.
MerchantId=",
"Description": "Please provide the valid merchantGUID as supplied to you during initial setup"
}Error Code 400
{
"Code": "400",
"Error": "Invalid country code",
"Description": "Country with code UT not found"
}{
"Code": "400",
"Error": "Parameter Amount was not a number",
"Description": "Please provide a valid value for the Amount parameter"
}{
"Code": "400",
"Error": "Invalid currency code",
"Description": "Currency with code D not found"
}Missing Parameter Error
{
"Code": "EmptyString",
"Error": "Parameter Currency was empty or null",
"Description": "Please provide a valid value for the Currency parameter"
}Error Codes
Code | Description |
|---|---|
400 | Error. Problem with the data passed in the request payload. |
401 | Error. The authorization has failed for this merchant GUID. Note: The |
500 | Issue with JWT authentication, such as wrong credentials or expired token. |