PowerBuilder / ShipEngine Walkthrough / Get rate estimates (minimal)
Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_Json
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JarrResp
integer li_RespStatusCode
oleobject loo_Json
string ls_Rate_type
string ls_Carrier_id
string ls_V_Currency
string ls_Amount
string ls_Insurance_amountCurrency
integer li_Insurance_amountAmount
string ls_Confirmation_amountCurrency
integer li_Confirmation_amountAmount
string ls_Other_amountCurrency
integer li_Other_amountAmount
integer li_Zone
string ls_Package_type
integer li_Delivery_days
integer li_Guaranteed_service
string ls_Estimated_delivery_date
string ls_Carrier_delivery_days
string ls_Ship_date
integer li_Negotiated_rate
string ls_Service_type
string ls_Service_code
integer li_Trackable
string ls_Carrier_code
string ls_Carrier_nickname
string ls_Carrier_friendly_name
string ls_Validation_status
integer j
integer li_Count_j
integer i
integer li_Count_i
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
// Use this online tool to generate code from sample JSON: Generate Code to Create JSON
// The following JSON is sent in the request body.
// {
// "carrier_ids": [
// "{{stamps_com}}",
// "{{fedex}}",
// "{{ups}}"
// ],
// "from_country_code": "US",
// "from_postal_code": "78756",
// "to_country_code": "US",
// "to_postal_code": "91521",
// "weight": {
// "value": 17,
// "unit": "pound"
// }
// }
loo_Json = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_Json.ConnectToNewObject("Chilkat.JsonObject")
loo_Json.UpdateString("carrier_ids[0]","{{stamps_com}}")
loo_Json.UpdateString("carrier_ids[1]","{{fedex}}")
loo_Json.UpdateString("carrier_ids[2]","{{ups}}")
loo_Json.UpdateString("from_country_code","US")
loo_Json.UpdateString("from_postal_code","78756")
loo_Json.UpdateString("to_country_code","US")
loo_Json.UpdateString("to_postal_code","91521")
loo_Json.UpdateInt("weight.value",17)
loo_Json.UpdateString("weight.unit","pound")
loo_Http.SetRequestHeader("API-Key","{{API_KEY}}")
loo_Http.SetRequestHeader("Content-Type","application/json")
loo_Resp = loo_Http.PostJson3("https://api.shipengine.com/v1/rates/estimate","application/json",loo_Json)
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
destroy loo_Json
return
end if
loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")
loo_Resp.GetBodySb(loo_SbResponseBody)
loo_JarrResp = create oleobject
// Use "Chilkat_9_5_0.JsonArray" for versions of Chilkat < 10.0.0
li_rc = loo_JarrResp.ConnectToNewObject("Chilkat.JsonArray")
loo_JarrResp.LoadSb(loo_SbResponseBody)
loo_JarrResp.EmitCompact = 0
Write-Debug "Response Body:"
Write-Debug loo_JarrResp.Emit()
li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
Write-Debug "Response Header:"
Write-Debug loo_Resp.Header
Write-Debug "Failed."
destroy loo_Resp
destroy loo_Http
destroy loo_Json
destroy loo_SbResponseBody
destroy loo_JarrResp
return
end if
destroy loo_Resp
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// [
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 11.07
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "package",
// "delivery_days": 7,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-24T00:00:00Z",
// "carrier_delivery_days": "6",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Media Mail",
// "service_code": "usps_media_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 38.98
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "package",
// "delivery_days": 7,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-24T00:00:00Z",
// "carrier_delivery_days": "6",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Parcel Select Ground",
// "service_code": "usps_parcel_select",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 39.23
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "package",
// "delivery_days": 3,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-20T00:00:00Z",
// "carrier_delivery_days": "3",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail",
// "service_code": "usps_priority_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 12.72
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "medium_flat_rate_box",
// "delivery_days": 3,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-20T00:00:00Z",
// "carrier_delivery_days": "3",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail",
// "service_code": "usps_priority_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 6.98
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "small_flat_rate_box",
// "delivery_days": 3,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-20T00:00:00Z",
// "carrier_delivery_days": "3",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail",
// "service_code": "usps_priority_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 17.47
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "large_flat_rate_box",
// "delivery_days": 3,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-20T00:00:00Z",
// "carrier_delivery_days": "3",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail",
// "service_code": "usps_priority_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 6.48
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "flat_rate_envelope",
// "delivery_days": 3,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-20T00:00:00Z",
// "carrier_delivery_days": "3",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail",
// "service_code": "usps_priority_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 7.03
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "flat_rate_padded_envelope",
// "delivery_days": 3,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-20T00:00:00Z",
// "carrier_delivery_days": "3",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail",
// "service_code": "usps_priority_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 16.1
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "regional_rate_box_b",
// "delivery_days": 3,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-20T00:00:00Z",
// "carrier_delivery_days": "3",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail",
// "service_code": "usps_priority_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 6.78
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "flat_rate_legal_envelope",
// "delivery_days": 3,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-20T00:00:00Z",
// "carrier_delivery_days": "3",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail",
// "service_code": "usps_priority_mail",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 103.04
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "package",
// "delivery_days": 2,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-19T00:00:00Z",
// "carrier_delivery_days": "1-2",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail Express",
// "service_code": "usps_priority_mail_express",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 22.68
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "flat_rate_envelope",
// "delivery_days": 2,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-19T00:00:00Z",
// "carrier_delivery_days": "1-2",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail Express",
// "service_code": "usps_priority_mail_express",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 23.18
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "flat_rate_padded_envelope",
// "delivery_days": 2,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-19T00:00:00Z",
// "carrier_delivery_days": "1-2",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail Express",
// "service_code": "usps_priority_mail_express",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// },
// {
// "rate_type": "check",
// "carrier_id": "se-121861",
// "shipping_amount": {
// "currency": "usd",
// "amount": 22.8
// },
// "insurance_amount": {
// "currency": "usd",
// "amount": 0
// },
// "confirmation_amount": {
// "currency": "usd",
// "amount": 0
// },
// "other_amount": {
// "currency": "usd",
// "amount": 0
// },
// "zone": 6,
// "package_type": "flat_rate_legal_envelope",
// "delivery_days": 2,
// "guaranteed_service": false,
// "estimated_delivery_date": "2019-09-19T00:00:00Z",
// "carrier_delivery_days": "1-2",
// "ship_date": "2019-09-17T00:00:00Z",
// "negotiated_rate": false,
// "service_type": "USPS Priority Mail Express",
// "service_code": "usps_priority_mail_express",
// "trackable": true,
// "carrier_code": "stamps_com",
// "carrier_nickname": "ShipEngine Test Account - Stamps.com",
// "carrier_friendly_name": "Stamps.com",
// "validation_status": "unknown",
// "warning_messages": [
// ],
// "error_messages": [
// ]
// }
// ]
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
i = 0
li_Count_i = loo_JarrResp.Size
do while i < li_Count_i
loo_Json = loo_JarrResp.ObjectAt(i)
ls_Rate_type = loo_Json.StringOf("rate_type")
ls_Carrier_id = loo_Json.StringOf("carrier_id")
ls_V_Currency = loo_Json.StringOf("shipping_amount.currency")
ls_Amount = loo_Json.StringOf("shipping_amount.amount")
ls_Insurance_amountCurrency = loo_Json.StringOf("insurance_amount.currency")
li_Insurance_amountAmount = loo_Json.IntOf("insurance_amount.amount")
ls_Confirmation_amountCurrency = loo_Json.StringOf("confirmation_amount.currency")
li_Confirmation_amountAmount = loo_Json.IntOf("confirmation_amount.amount")
ls_Other_amountCurrency = loo_Json.StringOf("other_amount.currency")
li_Other_amountAmount = loo_Json.IntOf("other_amount.amount")
li_Zone = loo_Json.IntOf("zone")
ls_Package_type = loo_Json.StringOf("package_type")
li_Delivery_days = loo_Json.IntOf("delivery_days")
li_Guaranteed_service = loo_Json.BoolOf("guaranteed_service")
ls_Estimated_delivery_date = loo_Json.StringOf("estimated_delivery_date")
ls_Carrier_delivery_days = loo_Json.StringOf("carrier_delivery_days")
ls_Ship_date = loo_Json.StringOf("ship_date")
li_Negotiated_rate = loo_Json.BoolOf("negotiated_rate")
ls_Service_type = loo_Json.StringOf("service_type")
ls_Service_code = loo_Json.StringOf("service_code")
li_Trackable = loo_Json.BoolOf("trackable")
ls_Carrier_code = loo_Json.StringOf("carrier_code")
ls_Carrier_nickname = loo_Json.StringOf("carrier_nickname")
ls_Carrier_friendly_name = loo_Json.StringOf("carrier_friendly_name")
ls_Validation_status = loo_Json.StringOf("validation_status")
j = 0
li_Count_j = loo_Json.SizeOfArray("warning_messages")
do while j < li_Count_j
loo_Json.J = j
j = j + 1
loop
j = 0
li_Count_j = loo_Json.SizeOfArray("error_messages")
do while j < li_Count_j
loo_Json.J = j
j = j + 1
loop
destroy loo_Json
i = i + 1
loop
destroy loo_Http
destroy loo_Json
destroy loo_SbResponseBody
destroy loo_JarrResp
Curl Command
curl -X POST
-H "API-Key: {{API_KEY}}"
-H "Content-Type: application/json"
-d '{
"carrier_ids": [
"{{stamps_com}}",
"{{fedex}}",
"{{ups}}"
],
"from_country_code": "US",
"from_postal_code": "78756",
"to_country_code": "US",
"to_postal_code": "91521",
"weight": {
"value": 17,
"unit": "pound"
}
}'
https://api.shipengine.com/v1/rates/estimate
Postman Collection Item JSON
{
"name": "Get rate estimates (minimal)",
"event": [
{
"listen": "test",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"carrier_ids\": [\n\t\t\"{{stamps_com}}\",\n\t\t\"{{fedex}}\",\n\t\t\"{{ups}}\"\n\t],\n\t\"from_country_code\": \"US\",\n\t\"from_postal_code\": \"78756\",\n\t\"to_country_code\": \"US\",\n\t\"to_postal_code\": \"91521\",\n\t\"weight\": {\n\t\t\"value\": 17,\n\t\t\"unit\": \"pound\"\n\t}\n}"
},
"url": {
"raw": "https://api.shipengine.com/v1/rates/estimate",
"protocol": "https",
"host": [
"api",
"shipengine",
"com"
],
"path": [
"v1",
"rates",
"estimate"
]
},
"description": "This request shows you how to get rate estimates when you don't know the full delivery address yet."
},
"response": [
{
"name": "Get rate estimates (minimal)",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"carrier_id\": \"{{stamps_com}}\",\n\t\"from_country_code\": \"US\",\n\t\"from_postal_code\": \"78756\",\n\t\"to_country_code\": \"US\",\n\t\"to_postal_code\": \"91521\",\n\t\"weight\": {\n\t\t\"value\": 17,\n\t\t\"unit\": \"pound\"\n\t}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://api.shipengine.com/v1/rates/estimate",
"protocol": "https",
"host": [
"api",
"shipengine",
"com"
],
"path": [
"v1",
"rates",
"estimate"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Tue, 17 Sep 2019 17:48:57 GMT"
},
{
"key": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"key": "Content-Length",
"value": "14422"
},
{
"key": "Connection",
"value": "keep-alive"
},
{
"key": "Access-Control-Allow-Origin",
"value": "https://www.shipengine.com"
},
{
"key": "Vary",
"value": "Origin"
},
{
"key": "x-shipengine-requestid",
"value": "a0122561-502b-4e6e-93d1-f1498bf6a0b3"
}
],
"cookie": [
],
"body": "[\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 11.07\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"package\",\n \"delivery_days\": 7,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-24T00:00:00Z\",\n \"carrier_delivery_days\": \"6\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Media Mail\",\n \"service_code\": \"usps_media_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 38.98\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"package\",\n \"delivery_days\": 7,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-24T00:00:00Z\",\n \"carrier_delivery_days\": \"6\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Parcel Select Ground\",\n \"service_code\": \"usps_parcel_select\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 39.23\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"package\",\n \"delivery_days\": 3,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-20T00:00:00Z\",\n \"carrier_delivery_days\": \"3\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail\",\n \"service_code\": \"usps_priority_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 12.72\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"medium_flat_rate_box\",\n \"delivery_days\": 3,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-20T00:00:00Z\",\n \"carrier_delivery_days\": \"3\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail\",\n \"service_code\": \"usps_priority_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 6.98\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"small_flat_rate_box\",\n \"delivery_days\": 3,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-20T00:00:00Z\",\n \"carrier_delivery_days\": \"3\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail\",\n \"service_code\": \"usps_priority_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 17.47\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"large_flat_rate_box\",\n \"delivery_days\": 3,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-20T00:00:00Z\",\n \"carrier_delivery_days\": \"3\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail\",\n \"service_code\": \"usps_priority_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 6.48\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"flat_rate_envelope\",\n \"delivery_days\": 3,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-20T00:00:00Z\",\n \"carrier_delivery_days\": \"3\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail\",\n \"service_code\": \"usps_priority_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 7.03\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"flat_rate_padded_envelope\",\n \"delivery_days\": 3,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-20T00:00:00Z\",\n \"carrier_delivery_days\": \"3\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail\",\n \"service_code\": \"usps_priority_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 16.1\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"regional_rate_box_b\",\n \"delivery_days\": 3,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-20T00:00:00Z\",\n \"carrier_delivery_days\": \"3\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail\",\n \"service_code\": \"usps_priority_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 6.78\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"flat_rate_legal_envelope\",\n \"delivery_days\": 3,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-20T00:00:00Z\",\n \"carrier_delivery_days\": \"3\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail\",\n \"service_code\": \"usps_priority_mail\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 103.04\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"package\",\n \"delivery_days\": 2,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-19T00:00:00Z\",\n \"carrier_delivery_days\": \"1-2\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail Express\",\n \"service_code\": \"usps_priority_mail_express\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 22.68\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"flat_rate_envelope\",\n \"delivery_days\": 2,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-19T00:00:00Z\",\n \"carrier_delivery_days\": \"1-2\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail Express\",\n \"service_code\": \"usps_priority_mail_express\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 23.18\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"flat_rate_padded_envelope\",\n \"delivery_days\": 2,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-19T00:00:00Z\",\n \"carrier_delivery_days\": \"1-2\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail Express\",\n \"service_code\": \"usps_priority_mail_express\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n },\n {\n \"rate_type\": \"check\",\n \"carrier_id\": \"se-121861\",\n \"shipping_amount\": {\n \"currency\": \"usd\",\n \"amount\": 22.8\n },\n \"insurance_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"confirmation_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"other_amount\": {\n \"currency\": \"usd\",\n \"amount\": 0\n },\n \"zone\": 6,\n \"package_type\": \"flat_rate_legal_envelope\",\n \"delivery_days\": 2,\n \"guaranteed_service\": false,\n \"estimated_delivery_date\": \"2019-09-19T00:00:00Z\",\n \"carrier_delivery_days\": \"1-2\",\n \"ship_date\": \"2019-09-17T00:00:00Z\",\n \"negotiated_rate\": false,\n \"service_type\": \"USPS Priority Mail Express\",\n \"service_code\": \"usps_priority_mail_express\",\n \"trackable\": true,\n \"carrier_code\": \"stamps_com\",\n \"carrier_nickname\": \"ShipEngine Test Account - Stamps.com\",\n \"carrier_friendly_name\": \"Stamps.com\",\n \"validation_status\": \"unknown\",\n \"warning_messages\": [],\n \"error_messages\": []\n }\n]"
}
]
}