Calculate rates
Name | Type | Description |
---|---|---|
shipment * | shipment | An instance of shipping freight or cargo |
async | boolean | enable async mode or not (set to false if not provided) |
is_document | boolean | If the shipment is document type. (set to false if not provided) |
shipper_accounts | array of reference | accounts for shipment Object reference |
{
"shipper_accounts": [
{
"id": "00000000-0000-0000-0000-000000000000"
}
],
"is_document": false,
"shipment": {
"parcels": [
{
"description": "Food XS",
"box_type": "custom",
"weight": {
"value": 2,
"unit": "kg"
},
"dimension": {
"width": 20,
"height": 40,
"depth": 40,
"unit": "cm"
},
"items": [
{
"description": "Food Bar",
"origin_country": "USA",
"quantity": 2,
"price": {
"amount": 3,
"currency": "HKD"
},
"weight": {
"value": 0.6,
"unit": "kg"
},
"sku": "Epic_Food_Bar",
"hs_code": "1234.12"
}
]
}
],
"ship_from": {
"contact_name": "CHAN Kwok-kwong",
"phone": "2411 0232",
"email": "df12@yahoo.com.hk",
"street1": "01234567890123456789012345678901234",
"street2": "01234567890123456789012345678901234",
"street3": "01234567890123456789012345678901234",
"city": "Hong Kong, Hong Kong",
"country": "HKG",
"type": "residential"
},
"ship_to": {
"contact_name": "Rollo Benard",
"phone": "(662) 861-9588",
"email": "ro_be@mail.com",
"street1": "2432 Quaking Cove",
"street2": "Content, Mississippi",
"city": "guangzhou",
"postal_code": "511740",
"country": "CHN",
"type": "residential"
}
},
"async": false
}
curl --request POST \
--url https://sandbox-api.postmen.com/v3/rates \
--header 'content-type: application/json' \
--header 'postmen-api-key: 8fc7966b-679b-4a57-911d-c5a663229c9e' \
--data '{"shipper_accounts":[{"id":"00000000-0000-0000-0000-000000000000"}],"is_document":false,"shipment":{"parcels":[{"description":"Food XS","box_type":"custom","weight":{"value":2,"unit":"kg"},"dimension":{"width":20,"height":40,"depth":40,"unit":"cm"},"items":[{"description":"Food Bar","origin_country":"USA","quantity":2,"price":{"amount":3,"currency":"HKD"},"weight":{"value":0.6,"unit":"kg"},"sku":"Epic_Food_Bar","hs_code":"1234.12"}]}],"ship_from":{"contact_name":"CHAN Kwok-kwong","phone":"2411 0232","email":"df12@yahoo.com.hk","street1":"01234567890123456789012345678901234","street2":"01234567890123456789012345678901234","street3":"01234567890123456789012345678901234","city":"Hong Kong, Hong Kong","country":"HKG","type":"residential"},"ship_to":{"contact_name":"Rollo Benard","phone":"(662) 861-9588","email":"ro_be@mail.com","street1":"2432 Quaking Cove","street2":"Content, Mississippi","city":"guangzhou","postal_code":"511740","country":"CHN","type":"residential"}},"async":false}'
using System;
using System.Net;
using System.IO;
class ExamplePostmen
{
static void Main(string[] args)
{
WebRequest httpWebRequest = WebRequest.Create("https://sandbox-api.postmen.com/v3/rates");
string json = "{\"shipper_accounts\":[{\"id\":\"00000000-0000-0000-0000-000000000000\"}],\"is_document\":false,\"shipment\":{\"parcels\":[{\"description\":\"Food XS\",\"box_type\":\"custom\",\"weight\":{\"value\":2,\"unit\":\"kg\"},\"dimension\":{\"width\":20,\"height\":40,\"depth\":40,\"unit\":\"cm\"},\"items\":[{\"description\":\"Food Bar\",\"origin_country\":\"USA\",\"quantity\":2,\"price\":{\"amount\":3,\"currency\":\"HKD\"},\"weight\":{\"value\":0.6,\"unit\":\"kg\"},\"sku\":\"Epic_Food_Bar\",\"hs_code\":\"1234.12\"}]}],\"ship_from\":{\"contact_name\":\"CHAN Kwok-kwong\",\"phone\":\"2411 0232\",\"email\":\"df12@yahoo.com.hk\",\"street1\":\"01234567890123456789012345678901234\",\"street2\":\"01234567890123456789012345678901234\",\"street3\":\"01234567890123456789012345678901234\",\"city\":\"Hong Kong, Hong Kong\",\"country\":\"HKG\",\"type\":\"residential\"},\"ship_to\":{\"contact_name\":\"Rollo Benard\",\"phone\":\"(662) 861-9588\",\"email\":\"ro_be@mail.com\",\"street1\":\"2432 Quaking Cove\",\"street2\":\"Content, Mississippi\",\"city\":\"guangzhou\",\"postal_code\":\"511740\",\"country\":\"CHN\",\"type\":\"residential\"}},\"async\":false}";
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
httpWebRequest.Headers["postmen-api-key"] = "8fc7966b-679b-4a57-911d-c5a663229c9e";
using (StreamWriter streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
streamWriter.Write(json);
streamWriter.Flush();
streamWriter.Close();
}
HttpWebResponse httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (StreamReader streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string result = streamReader.ReadToEnd();
Console.WriteLine(result);
}
}
}
import com.squareup.okhttp.*;
public class test {
public static void main(String[] args) {
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"shipper_accounts\":[{\"id\":\"00000000-0000-0000-0000-000000000000\"}],\"is_document\":false,\"shipment\":{\"parcels\":[{\"description\":\"Food XS\",\"box_type\":\"custom\",\"weight\":{\"value\":2,\"unit\":\"kg\"},\"dimension\":{\"width\":20,\"height\":40,\"depth\":40,\"unit\":\"cm\"},\"items\":[{\"description\":\"Food Bar\",\"origin_country\":\"USA\",\"quantity\":2,\"price\":{\"amount\":3,\"currency\":\"HKD\"},\"weight\":{\"value\":0.6,\"unit\":\"kg\"},\"sku\":\"Epic_Food_Bar\",\"hs_code\":\"1234.12\"}]}],\"ship_from\":{\"contact_name\":\"CHAN Kwok-kwong\",\"phone\":\"2411 0232\",\"email\":\"df12@yahoo.com.hk\",\"street1\":\"01234567890123456789012345678901234\",\"street2\":\"01234567890123456789012345678901234\",\"street3\":\"01234567890123456789012345678901234\",\"city\":\"Hong Kong, Hong Kong\",\"country\":\"HKG\",\"type\":\"residential\"},\"ship_to\":{\"contact_name\":\"Rollo Benard\",\"phone\":\"(662) 861-9588\",\"email\":\"ro_be@mail.com\",\"street1\":\"2432 Quaking Cove\",\"street2\":\"Content, Mississippi\",\"city\":\"guangzhou\",\"postal_code\":\"511740\",\"country\":\"CHN\",\"type\":\"residential\"}},\"async\":false}");
Request request = new Request.Builder()
.url("https://sandbox-api.postmen.com/v3/rates")
.post(body)
.addHeader("postmen-api-key", "8fc7966b-679b-4a57-911d-c5a663229c9e")
.addHeader("content-type", "application/json")
.build();
try {
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
} catch (Exception e) {
System.err.println("Caught IOException: " + e.getMessage());
}
}
}
var request = require("request");
var options = {
method: 'POST',
url: 'https://sandbox-api.postmen.com/v3/rates',
headers: {
'content-type': 'application/json',
'postmen-api-key': '8fc7966b-679b-4a57-911d-c5a663229c9e'
},
body: '{"shipper_accounts":[{"id":"00000000-0000-0000-0000-000000000000"}],"is_document":false,"shipment":{"parcels":[{"description":"Food XS","box_type":"custom","weight":{"value":2,"unit":"kg"},"dimension":{"width":20,"height":40,"depth":40,"unit":"cm"},"items":[{"description":"Food Bar","origin_country":"USA","quantity":2,"price":{"amount":3,"currency":"HKD"},"weight":{"value":0.6,"unit":"kg"},"sku":"Epic_Food_Bar","hs_code":"1234.12"}]}],"ship_from":{"contact_name":"CHAN Kwok-kwong","phone":"2411 0232","email":"df12@yahoo.com.hk","street1":"01234567890123456789012345678901234","street2":"01234567890123456789012345678901234","street3":"01234567890123456789012345678901234","city":"Hong Kong, Hong Kong","country":"HKG","type":"residential"},"ship_to":{"contact_name":"Rollo Benard","phone":"(662) 861-9588","email":"ro_be@mail.com","street1":"2432 Quaking Cove","street2":"Content, Mississippi","city":"guangzhou","postal_code":"511740","country":"CHN","type":"residential"}},"async":false}'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
<?php
$url = 'https://sandbox-api.postmen.com/v3/rates';
$method = 'POST';
$headers = array(
"content-type: application/json",
"postmen-api-key: 8fc7966b-679b-4a57-911d-c5a663229c9e"
);
$body = '{"shipper_accounts":[{"id":"00000000-0000-0000-0000-000000000000"}],"is_document":false,"shipment":{"parcels":[{"description":"Food XS","box_type":"custom","weight":{"value":2,"unit":"kg"},"dimension":{"width":20,"height":40,"depth":40,"unit":"cm"},"items":[{"description":"Food Bar","origin_country":"USA","quantity":2,"price":{"amount":3,"currency":"HKD"},"weight":{"value":0.6,"unit":"kg"},"sku":"Epic_Food_Bar","hs_code":"1234.12"}]}],"ship_from":{"contact_name":"CHAN Kwok-kwong","phone":"2411 0232","email":"df12@yahoo.com.hk","street1":"01234567890123456789012345678901234","street2":"01234567890123456789012345678901234","street3":"01234567890123456789012345678901234","city":"Hong Kong, Hong Kong","country":"HKG","type":"residential"},"ship_to":{"contact_name":"Rollo Benard","phone":"(662) 861-9588","email":"ro_be@mail.com","street1":"2432 Quaking Cove","street2":"Content, Mississippi","city":"guangzhou","postal_code":"511740","country":"CHN","type":"residential"}},"async":false}';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => $url,
CURLOPT_CUSTOMREQUEST => $method,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POSTFIELDS => $body
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
# Make sure to install requests: pip install requests
import requests
url = 'https://sandbox-api.postmen.com/v3/rates'
payload = '''
{
"shipper_accounts": [
{
"id": "00000000-0000-0000-0000-000000000000"
}
],
"is_document": false,
"shipment": {
"parcels": [
{
"description": "Food XS",
"box_type": "custom",
"weight": {
"value": 2,
"unit": "kg"
},
"dimension": {
"width": 20,
"height": 40,
"depth": 40,
"unit": "cm"
},
"items": [
{
"description": "Food Bar",
"origin_country": "USA",
"quantity": 2,
"price": {
"amount": 3,
"currency": "HKD"
},
"weight": {
"value": 0.6,
"unit": "kg"
},
"sku": "Epic_Food_Bar",
"hs_code": "1234.12"
}
]
}
],
"ship_from": {
"contact_name": "CHAN Kwok-kwong",
"phone": "2411 0232",
"email": "df12@yahoo.com.hk",
"street1": "01234567890123456789012345678901234",
"street2": "01234567890123456789012345678901234",
"street3": "01234567890123456789012345678901234",
"city": "Hong Kong, Hong Kong",
"country": "HKG",
"type": "residential"
},
"ship_to": {
"contact_name": "Rollo Benard",
"phone": "(662) 861-9588",
"email": "ro_be@mail.com",
"street1": "2432 Quaking Cove",
"street2": "Content, Mississippi",
"city": "guangzhou",
"postal_code": "511740",
"country": "CHN",
"type": "residential"
}
},
"async": false
}
'''
headers = {
'postmen-api-key': '8fc7966b-679b-4a57-911d-c5a663229c9e',
'content-type': 'application/json'
}
response = requests.request('POST', url, data=payload, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI('https://sandbox-api.postmen.com/v3/rates')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request['postmen-api-key'] = '8fc7966b-679b-4a57-911d-c5a663229c9e'
request['content-type'] = 'application/json'
request.body = '{"shipper_accounts":[{"id":"00000000-0000-0000-0000-000000000000"}],"is_document":false,"shipment":{"parcels":[{"description":"Food XS","box_type":"custom","weight":{"value":2,"unit":"kg"},"dimension":{"width":20,"height":40,"depth":40,"unit":"cm"},"items":[{"description":"Food Bar","origin_country":"USA","quantity":2,"price":{"amount":3,"currency":"HKD"},"weight":{"value":0.6,"unit":"kg"},"sku":"Epic_Food_Bar","hs_code":"1234.12"}]}],"ship_from":{"contact_name":"CHAN Kwok-kwong","phone":"2411 0232","email":"df12@yahoo.com.hk","street1":"01234567890123456789012345678901234","street2":"01234567890123456789012345678901234","street3":"01234567890123456789012345678901234","city":"Hong Kong, Hong Kong","country":"HKG","type":"residential"},"ship_to":{"contact_name":"Rollo Benard","phone":"(662) 861-9588","email":"ro_be@mail.com","street1":"2432 Quaking Cove","street2":"Content, Mississippi","city":"guangzhou","postal_code":"511740","country":"CHN","type":"residential"}},"async":false}'
response = http.request(request)
puts response.read_body
Name | Type | Description |
---|---|---|
id | string | Calculate Rate ID |
status | string | Accepts: calculating ,calculated ,failed . |
rates | array of rate type | The amount of a charge or payment with reference to some basis of calculation. |
created_at | string | A formatted date. |
updated_at | string | A formatted date. |
Response example
{
"meta": {
"code": 200,
"message": "OK",
"details": []
},
"data": {
"created_at": "2015-12-23T04:14:51+00:00",
"id": "e6ff8a69-54ab-492e-85ad-22a4b5c4bf2e",
"updated_at": "2015-12-23T04:14:53+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "tnt",
"description": "tnt"
},
"service_type": "tnt_express",
"service_name": "TNT Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 0.1,
"unit": "kg"
},
"total_charge": {
"amount": 252.45,
"currency": "HKD"
},
"detailed_charges": []
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "tnt",
"description": "tnt"
},
"service_type": "tnt_economy_express",
"service_name": "TNT Economy Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 0.1,
"unit": "kg"
},
"total_charge": {
"amount": 252.45,
"currency": "HKD"
},
"detailed_charges": []
}
]
}
}
List all rates
Optional parameters
Name | Type | Description |
---|---|---|
status | string | Rate status Accepts: calculating ,calculated ,failed . |
limit | string | Number of records per page |
created_at_min | string | Start date and time of the record created (format YYYY-MM-DDTHH:MM:SSZ, default: 24hrs ago) |
created_at_max | string | End date and time of the record created (format YYYY-MM-DDTHH:MM:SSZ, default: NOW()) |
next_token | string | Next token |
{}
curl --request GET \
--url https://sandbox-api.postmen.com/v3/rates \
--header 'content-type: application/json' \
--header 'postmen-api-key: 8fc7966b-679b-4a57-911d-c5a663229c9e' \
using System;
using System.Net;
using System.IO;
class ExamplePostmen
{
static void Main(string[] args)
{
WebRequest httpWebRequest = WebRequest.Create("https://sandbox-api.postmen.com/v3/rates");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "GET";
httpWebRequest.Headers["postmen-api-key"] = "8fc7966b-679b-4a57-911d-c5a663229c9e";
HttpWebResponse httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (StreamReader streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string result = streamReader.ReadToEnd();
Console.WriteLine(result);
}
}
}
import com.squareup.okhttp.*;
public class test {
public static void main(String[] args) {
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
Request request = new Request.Builder()
.url("https://sandbox-api.postmen.com/v3/rates")
.get()
.addHeader("postmen-api-key", "8fc7966b-679b-4a57-911d-c5a663229c9e")
.addHeader("content-type", "application/json")
.build();
try {
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
} catch (Exception e) {
System.err.println("Caught IOException: " + e.getMessage());
}
}
}
var request = require("request");
var options = {
method: 'GET',
url: 'https://sandbox-api.postmen.com/v3/rates',
headers: {
'content-type': 'application/json',
'postmen-api-key': '8fc7966b-679b-4a57-911d-c5a663229c9e'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
<?php
$url = 'https://sandbox-api.postmen.com/v3/rates';
$method = 'GET';
$headers = array(
"content-type: application/json",
"postmen-api-key: 8fc7966b-679b-4a57-911d-c5a663229c9e"
);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => $url,
CURLOPT_CUSTOMREQUEST => $method,
CURLOPT_HTTPHEADER => $headers,
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
# Make sure to install requests: pip install requests
import requests
url = 'https://sandbox-api.postmen.com/v3/rates'
headers = {
'postmen-api-key': '8fc7966b-679b-4a57-911d-c5a663229c9e',
'content-type': 'application/json'
}
response = requests.request('GET', url, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI('https://sandbox-api.postmen.com/v3/rates')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request['postmen-api-key'] = '8fc7966b-679b-4a57-911d-c5a663229c9e'
request['content-type'] = 'application/json'
response = http.request(request)
puts response.read_body
Name | Type | Description |
---|---|---|
next_token | string or null | Any of string or null |
limit | number | Number of records per page |
rates | array of a rate record object | A rate record object |
Response example
{
"meta": {
"code": 200,
"message": "OK",
"details": []
},
"data": {
"next_token": "1",
"limit": 20,
"created_at_min": "2015-04-18T09:23:21+00:00",
"created_at_max": "2016-09-19T10:17:22+00:00",
"rates": [
{
"created_at": "2016-09-19T09:22:35+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T09:22:37+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "dhl",
"description": "dhl (Runscope)"
},
"service_type": null,
"service_name": null,
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": "No rate quotes returned from carrier.",
"charge_weight": null,
"total_charge": null,
"detailed_charges": []
}
]
},
{
"created_at": "2016-09-19T09:05:18+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T09:05:20+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canpar",
"description": "canpar (Runscope)"
},
"service_type": "canpar_usa",
"service_name": "USA",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 5,
"unit": "lb"
},
"total_charge": {
"amount": 32.35,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "Freight Charge",
"charge": {
"amount": 26.73,
"currency": "CAD"
}
},
{
"type": "Fuel Surcharge",
"charge": {
"amount": 2.82,
"currency": "CAD"
}
},
{
"type": "Residential Address Charge",
"charge": {
"amount": 2.8,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canpar",
"description": "canpar (Runscope)"
},
"service_type": "canpar_select_usa",
"service_name": "Select USA",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 5,
"unit": "lb"
},
"total_charge": {
"amount": 90.46,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "Freight Charge",
"charge": {
"amount": 79.77,
"currency": "CAD"
}
},
{
"type": "Fuel Surcharge",
"charge": {
"amount": 7.89,
"currency": "CAD"
}
},
{
"type": "Residential Address Charge",
"charge": {
"amount": 2.8,
"currency": "CAD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T09:04:14+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T09:04:17+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_ground_us",
"service_name": "purolator_ground_us",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-26",
"transit_time": 5,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 37.42,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 35.3,
"currency": "CAD"
}
},
{
"type": "fuel",
"charge": {
"amount": 2.12,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_express_us",
"service_name": "purolator_express_us",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 152.75,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 144.1,
"currency": "CAD"
}
},
{
"type": "fuel",
"charge": {
"amount": 8.65,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_express_us_1030am",
"service_name": "purolator_express_us_1030am",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 160.38,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 151.3,
"currency": "CAD"
}
},
{
"type": "fuel",
"charge": {
"amount": 9.08,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_express_us_9am",
"service_name": "purolator_express_us_9am",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 213.75,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 201.65,
"currency": "CAD"
}
},
{
"type": "fuel",
"charge": {
"amount": 12.1,
"currency": "CAD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T09:03:05+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T09:03:08+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "fedex",
"description": "fedex (Runscope)"
},
"service_type": "fedex_international_economy",
"service_name": "Fedex International Economy",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-22T20:00:00",
"transit_time": null,
"error_message": null,
"info_message": "WARNING: Service was validated at the country level, but might not be valid for the actual intended city for the origin.",
"charge_weight": {
"value": 36,
"unit": "lb"
},
"total_charge": {
"amount": 327.33,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 301,
"currency": "USD"
}
},
{
"type": "residential_delivery",
"charge": {
"amount": 3.49,
"currency": "USD"
}
},
{
"type": "fuel",
"charge": {
"amount": 22.84,
"currency": "USD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "fedex",
"description": "fedex (Runscope)"
},
"service_type": "fedex_international_first",
"service_name": "Fedex International First",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20T08:00:00",
"transit_time": null,
"error_message": null,
"info_message": "WARNING: Service was validated at the country level, but might not be valid for the actual intended city for the origin.",
"charge_weight": {
"value": 36,
"unit": "lb"
},
"total_charge": {
"amount": 420.18,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 387.19,
"currency": "USD"
}
},
{
"type": "residential_delivery",
"charge": {
"amount": 3.67,
"currency": "USD"
}
},
{
"type": "fuel",
"charge": {
"amount": 29.32,
"currency": "USD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "fedex",
"description": "fedex (Runscope)"
},
"service_type": "fedex_international_priority",
"service_name": "Fedex International Priority",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20T10:30:00",
"transit_time": null,
"error_message": null,
"info_message": "WARNING: Service was validated at the country level, but might not be valid for the actual intended city for the origin.",
"charge_weight": {
"value": 36,
"unit": "lb"
},
"total_charge": {
"amount": 430.74,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 397.2,
"currency": "USD"
}
},
{
"type": "residential_delivery",
"charge": {
"amount": 3.49,
"currency": "USD"
}
},
{
"type": "fuel",
"charge": {
"amount": 30.05,
"currency": "USD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T09:01:18+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T09:01:21+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canada-post",
"description": "canada-post (Runscope)"
},
"service_type": "DOM.EP",
"service_name": "Expedited Parcel",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.6,
"unit": "kg"
},
"total_charge": {
"amount": 9.99,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 9.21,
"currency": "CAD"
}
},
{
"type": "fuel_surcharge",
"charge": {
"amount": 0.3,
"currency": "CAD"
}
},
{
"type": "tax",
"charge": {
"amount": 0.48,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canada-post",
"description": "canada-post (Runscope)"
},
"service_type": "DOM.RP",
"service_name": "Regular Parcel",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-21",
"transit_time": 2,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.6,
"unit": "kg"
},
"total_charge": {
"amount": 9.99,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 9.21,
"currency": "CAD"
}
},
{
"type": "fuel_surcharge",
"charge": {
"amount": 0.3,
"currency": "CAD"
}
},
{
"type": "tax",
"charge": {
"amount": 0.48,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canada-post",
"description": "canada-post (Runscope)"
},
"service_type": "DOM.XP",
"service_name": "Xpresspost",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.6,
"unit": "kg"
},
"total_charge": {
"amount": 14,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 12.31,
"currency": "CAD"
}
},
{
"type": "fuel_surcharge",
"charge": {
"amount": 1.02,
"currency": "CAD"
}
},
{
"type": "tax",
"charge": {
"amount": 0.67,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canada-post",
"description": "canada-post (Runscope)"
},
"service_type": "DOM.PC",
"service_name": "Priority",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.6,
"unit": "kg"
},
"total_charge": {
"amount": 23.95,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 21.07,
"currency": "CAD"
}
},
{
"type": "fuel_surcharge",
"charge": {
"amount": 1.74,
"currency": "CAD"
}
},
{
"type": "tax",
"charge": {
"amount": 1.14,
"currency": "CAD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T09:00:12+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T09:00:15+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "ups",
"description": "ups (Runscope)"
},
"service_type": "ups_expedited",
"service_name": "UPS Expedited",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": "Your invoice may vary from the displayed reference rates.",
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 2207.38,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 2229.68,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "ups",
"description": "ups (Runscope)"
},
"service_type": "ups_saver",
"service_name": "UPS Saver",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": 1,
"error_message": null,
"info_message": "Your invoice may vary from the displayed reference rates.",
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 2398.58,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 2422.81,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "ups",
"description": "ups (Runscope)"
},
"service_type": "ups_express",
"service_name": "UPS Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "10:30",
"transit_time": 1,
"error_message": null,
"info_message": "Your invoice may vary from the displayed reference rates.",
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 2540.37,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 2566.03,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "ups",
"description": "ups (Runscope)"
},
"service_type": "ups_express_plus",
"service_name": "UPS Express Plus",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "08:30",
"transit_time": 1,
"error_message": null,
"info_message": "Your invoice may vary from the displayed reference rates.",
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 2884.1,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 2913.23,
"currency": "HKD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T08:54:42+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T08:54:44+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "endicia",
"description": "endicia (Runscope)"
},
"service_type": "endicia_priority_mail",
"service_name": "Endicia Priority Mail",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": 0,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 6.71,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 6.71,
"currency": "USD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "endicia",
"description": "endicia (Runscope)"
},
"service_type": "endicia_priority_mail_registered",
"service_name": "Endicia Priority Mail Registered",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": 0,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 18.41,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 6.71,
"currency": "USD"
}
},
{
"type": "Fees",
"charge": {
"amount": 11.7,
"currency": "USD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "endicia",
"description": "endicia (Runscope)"
},
"service_type": "endicia_priority_mail_express",
"service_name": "Endicia Priority Mail Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": 0,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 20.66,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 20.66,
"currency": "USD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "endicia",
"description": "endicia (Runscope)"
},
"service_type": "endicia_priority_mail_express_registered",
"service_name": "Endicia Priority Mail Express Registered",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": 0,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 32.36,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 20.66,
"currency": "USD"
}
},
{
"type": "Fees",
"charge": {
"amount": 11.7,
"currency": "USD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T08:53:18+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T08:53:24+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "aramex",
"description": "aramex (Runscope)"
},
"service_type": "aramex_priority_express",
"service_name": "Priority Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 9.54,
"unit": "kg"
},
"total_charge": {
"amount": 499.2,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 499.2,
"currency": "USD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T08:35:22+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T08:35:37+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "bring",
"description": "bring (Runscope)"
},
"service_type": "PICKUP_PARCEL",
"service_name": "yes",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 416.25,
"currency": "NOK"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 333,
"currency": "NOK"
}
},
{
"type": "VAT",
"charge": {
"amount": 83.25,
"currency": "NOK"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "bring",
"description": "bring (Runscope)"
},
"service_type": "BUSINESS_PARCEL",
"service_name": "yes",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 596.25,
"currency": "NOK"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 477,
"currency": "NOK"
}
},
{
"type": "VAT",
"charge": {
"amount": 119.25,
"currency": "NOK"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "bring",
"description": "bring (Runscope)"
},
"service_type": "EXPRESS_INTERNATIONAL",
"service_name": "yes",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 1200.37,
"currency": "NOK"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 960.3,
"currency": "NOK"
}
},
{
"type": "VAT",
"charge": {
"amount": 240.07,
"currency": "NOK"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "bring",
"description": "bring (Runscope)"
},
"service_type": "EXPRESS_INTERNATIONAL_1200",
"service_name": "yes",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 1605.37,
"currency": "NOK"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 1284.3,
"currency": "NOK"
}
},
{
"type": "VAT",
"charge": {
"amount": 321.07,
"currency": "NOK"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "bring",
"description": "bring (Runscope)"
},
"service_type": "EXPRESS_NORDIC_SAME_DAY",
"service_name": "yes",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 5429.38,
"currency": "NOK"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 4343.5,
"currency": "NOK"
}
},
{
"type": "VAT",
"charge": {
"amount": 1085.88,
"currency": "NOK"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "bring",
"description": "bring (Runscope)"
},
"service_type": "EXPRESS_INTERNATIONAL_0900",
"service_name": "yes",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 5712.88,
"currency": "NOK"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 4570.3,
"currency": "NOK"
}
},
{
"type": "VAT",
"charge": {
"amount": 1142.58,
"currency": "NOK"
}
}
]
}
]
},
{
"created_at": "2016-09-19T08:34:34+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T08:34:37+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "fedex-smartpost",
"description": "fedex-smartpost (Runscope)"
},
"service_type": "SMART_POST",
"service_name": "Smartpost",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": 2,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 3,
"unit": "lb"
},
"total_charge": {
"amount": 10.07,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 9.68,
"currency": "USD"
}
},
{
"type": "smartpost_fuel",
"charge": {
"amount": 0.39,
"currency": "USD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T08:00:09+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T08:00:14+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "hong-kong-post",
"description": "hong-kong-post (Runscope)"
},
"service_type": "hong-kong-post_e_express",
"service_name": "e-Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.5,
"unit": "kg"
},
"total_charge": {
"amount": 139,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 139,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "hong-kong-post",
"description": "hong-kong-post (Runscope)"
},
"service_type": "hong-kong-post_air_parcel",
"service_name": "Air Parcel",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.5,
"unit": "kg"
},
"total_charge": {
"amount": 224,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 224,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "hong-kong-post",
"description": "hong-kong-post (Runscope)"
},
"service_type": "hong-kong-post_air_registered_mail_packet",
"service_name": "Air Registered Mail - Packet",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.5,
"unit": "kg"
},
"total_charge": {
"amount": 257.5,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 257.5,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "hong-kong-post",
"description": "hong-kong-post (Runscope)"
},
"service_type": "hong-kong-post_speedpost",
"service_name": "Speedpost",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.5,
"unit": "kg"
},
"total_charge": {
"amount": 335,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 335,
"currency": "HKD"
}
}
]
}
]
},
{
"created_at": "2016-09-19T04:57:55+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T04:57:57+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "omniparcel",
"description": "omniparcel (Runscope)"
},
"service_type": "omniparcel_untracked",
"service_name": "Air Untracked",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 2.4,
"unit": "kg"
},
"total_charge": {
"amount": 54.99,
"currency": "HKD"
},
"detailed_charges": []
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "omniparcel",
"description": "omniparcel (Runscope)"
},
"service_type": "omniparcel_tracked",
"service_name": "Air Tracked",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 2.4,
"unit": "kg"
},
"total_charge": {
"amount": 96.34,
"currency": "HKD"
},
"detailed_charges": []
}
]
},
{
"created_at": "2016-09-19T04:44:28+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T04:44:29+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "dpex",
"description": "dpex (Runscope)"
},
"service_type": "dpex_express",
"service_name": "Express Parcel",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 0.513,
"unit": "kg"
},
"total_charge": {
"amount": 0,
"currency": "HKD"
},
"detailed_charges": []
}
]
},
{
"created_at": "2016-09-19T02:09:57+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-19T02:10:01+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "tnt",
"description": "Runscope"
},
"service_type": null,
"service_name": null,
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": null,
"detailed_charges": []
}
]
},
{
"created_at": "2016-09-18T09:22:35+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-18T09:22:36+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "dhl",
"description": "dhl (Runscope)"
},
"service_type": null,
"service_name": null,
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": "No rate quotes returned from carrier.",
"charge_weight": null,
"total_charge": null,
"detailed_charges": []
}
]
},
{
"created_at": "2016-09-18T09:05:15+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-18T09:05:18+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canpar",
"description": "canpar (Runscope)"
},
"service_type": "canpar_usa",
"service_name": "USA",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 5,
"unit": "lb"
},
"total_charge": {
"amount": 32.35,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "Freight Charge",
"charge": {
"amount": 26.73,
"currency": "CAD"
}
},
{
"type": "Fuel Surcharge",
"charge": {
"amount": 2.82,
"currency": "CAD"
}
},
{
"type": "Residential Address Charge",
"charge": {
"amount": 2.8,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canpar",
"description": "canpar (Runscope)"
},
"service_type": "canpar_select_usa",
"service_name": "Select USA",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 5,
"unit": "lb"
},
"total_charge": {
"amount": 90.46,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "Freight Charge",
"charge": {
"amount": 79.77,
"currency": "CAD"
}
},
{
"type": "Fuel Surcharge",
"charge": {
"amount": 7.89,
"currency": "CAD"
}
},
{
"type": "Residential Address Charge",
"charge": {
"amount": 2.8,
"currency": "CAD"
}
}
]
}
]
},
{
"created_at": "2016-09-18T09:04:15+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-18T09:04:16+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_ground_us",
"service_name": "purolator_ground_us",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-26",
"transit_time": 5,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 37.42,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 35.3,
"currency": "CAD"
}
},
{
"type": "fuel",
"charge": {
"amount": 2.12,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_express_us",
"service_name": "purolator_express_us",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 152.75,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 144.1,
"currency": "CAD"
}
},
{
"type": "fuel",
"charge": {
"amount": 8.65,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_express_us_1030am",
"service_name": "purolator_express_us_1030am",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 160.38,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 151.3,
"currency": "CAD"
}
},
{
"type": "fuel",
"charge": {
"amount": 9.08,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_express_us_9am",
"service_name": "purolator_express_us_9am",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": null,
"total_charge": {
"amount": 213.75,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 201.65,
"currency": "CAD"
}
},
{
"type": "fuel",
"charge": {
"amount": 12.1,
"currency": "CAD"
}
}
]
}
]
},
{
"created_at": "2016-09-18T09:03:04+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-18T09:03:07+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "fedex",
"description": "fedex (Runscope)"
},
"service_type": "fedex_international_economy",
"service_name": "Fedex International Economy",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-22T20:00:00",
"transit_time": null,
"error_message": null,
"info_message": "WARNING: Service was validated at the country level, but might not be valid for the actual intended city for the origin.",
"charge_weight": {
"value": 36,
"unit": "lb"
},
"total_charge": {
"amount": 327.33,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 301,
"currency": "USD"
}
},
{
"type": "residential_delivery",
"charge": {
"amount": 3.49,
"currency": "USD"
}
},
{
"type": "fuel",
"charge": {
"amount": 22.84,
"currency": "USD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "fedex",
"description": "fedex (Runscope)"
},
"service_type": "fedex_international_first",
"service_name": "Fedex International First",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20T08:00:00",
"transit_time": null,
"error_message": null,
"info_message": "WARNING: Service was validated at the country level, but might not be valid for the actual intended city for the origin.",
"charge_weight": {
"value": 36,
"unit": "lb"
},
"total_charge": {
"amount": 420.18,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 387.19,
"currency": "USD"
}
},
{
"type": "residential_delivery",
"charge": {
"amount": 3.67,
"currency": "USD"
}
},
{
"type": "fuel",
"charge": {
"amount": 29.32,
"currency": "USD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "fedex",
"description": "fedex (Runscope)"
},
"service_type": "fedex_international_priority",
"service_name": "Fedex International Priority",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20T10:30:00",
"transit_time": null,
"error_message": null,
"info_message": "WARNING: Service was validated at the country level, but might not be valid for the actual intended city for the origin.",
"charge_weight": {
"value": 36,
"unit": "lb"
},
"total_charge": {
"amount": 430.74,
"currency": "USD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 397.2,
"currency": "USD"
}
},
{
"type": "residential_delivery",
"charge": {
"amount": 3.49,
"currency": "USD"
}
},
{
"type": "fuel",
"charge": {
"amount": 30.05,
"currency": "USD"
}
}
]
}
]
},
{
"created_at": "2016-09-18T09:01:18+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-18T09:01:21+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canada-post",
"description": "canada-post (Runscope)"
},
"service_type": "DOM.EP",
"service_name": "Expedited Parcel",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.6,
"unit": "kg"
},
"total_charge": {
"amount": 9.99,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 9.21,
"currency": "CAD"
}
},
{
"type": "fuel_surcharge",
"charge": {
"amount": 0.3,
"currency": "CAD"
}
},
{
"type": "tax",
"charge": {
"amount": 0.48,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canada-post",
"description": "canada-post (Runscope)"
},
"service_type": "DOM.RP",
"service_name": "Regular Parcel",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-21",
"transit_time": 2,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.6,
"unit": "kg"
},
"total_charge": {
"amount": 9.99,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 9.21,
"currency": "CAD"
}
},
{
"type": "fuel_surcharge",
"charge": {
"amount": 0.3,
"currency": "CAD"
}
},
{
"type": "tax",
"charge": {
"amount": 0.48,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canada-post",
"description": "canada-post (Runscope)"
},
"service_type": "DOM.XP",
"service_name": "Xpresspost",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.6,
"unit": "kg"
},
"total_charge": {
"amount": 14,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 12.31,
"currency": "CAD"
}
},
{
"type": "fuel_surcharge",
"charge": {
"amount": 1.02,
"currency": "CAD"
}
},
{
"type": "tax",
"charge": {
"amount": 0.67,
"currency": "CAD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canada-post",
"description": "canada-post (Runscope)"
},
"service_type": "DOM.PC",
"service_name": "Priority",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2016-09-20",
"transit_time": 1,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.6,
"unit": "kg"
},
"total_charge": {
"amount": 23.95,
"currency": "CAD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 21.07,
"currency": "CAD"
}
},
{
"type": "fuel_surcharge",
"charge": {
"amount": 1.74,
"currency": "CAD"
}
},
{
"type": "tax",
"charge": {
"amount": 1.14,
"currency": "CAD"
}
}
]
}
]
},
{
"created_at": "2016-09-18T09:00:11+00:00",
"id": "00000000-0000-0000-0000-000000000000",
"updated_at": "2016-09-18T09:00:14+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "ups",
"description": "ups (Runscope)"
},
"service_type": "ups_expedited",
"service_name": "UPS Expedited",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": "Your invoice may vary from the displayed reference rates.",
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 2207.38,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 2229.68,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "ups",
"description": "ups (Runscope)"
},
"service_type": "ups_saver",
"service_name": "UPS Saver",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": 1,
"error_message": null,
"info_message": "Your invoice may vary from the displayed reference rates.",
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 2398.58,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 2422.81,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "ups",
"description": "ups (Runscope)"
},
"service_type": "ups_express",
"service_name": "UPS Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "10:30",
"transit_time": 1,
"error_message": null,
"info_message": "Your invoice may vary from the displayed reference rates.",
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 2540.37,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 2566.03,
"currency": "HKD"
}
}
]
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "ups",
"description": "ups (Runscope)"
},
"service_type": "ups_express_plus",
"service_name": "UPS Express Plus",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "08:30",
"transit_time": 1,
"error_message": null,
"info_message": "Your invoice may vary from the displayed reference rates.",
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 2884.1,
"currency": "HKD"
},
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 2913.23,
"currency": "HKD"
}
}
]
}
]
}
]
}
}
Retrieve rates
{}
curl --request GET \
--url https://sandbox-api.postmen.com/v3/rates/089301c7-4a45-4c4d-9a4f-75e992e4da40 \
--header 'content-type: application/json' \
--header 'postmen-api-key: 8fc7966b-679b-4a57-911d-c5a663229c9e' \
using System;
using System.Net;
using System.IO;
class ExamplePostmen
{
static void Main(string[] args)
{
WebRequest httpWebRequest = WebRequest.Create("https://sandbox-api.postmen.com/v3/rates/089301c7-4a45-4c4d-9a4f-75e992e4da40");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "GET";
httpWebRequest.Headers["postmen-api-key"] = "8fc7966b-679b-4a57-911d-c5a663229c9e";
HttpWebResponse httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
using (StreamReader streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
string result = streamReader.ReadToEnd();
Console.WriteLine(result);
}
}
}
import com.squareup.okhttp.*;
public class test {
public static void main(String[] args) {
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
Request request = new Request.Builder()
.url("https://sandbox-api.postmen.com/v3/rates/089301c7-4a45-4c4d-9a4f-75e992e4da40")
.get()
.addHeader("postmen-api-key", "8fc7966b-679b-4a57-911d-c5a663229c9e")
.addHeader("content-type", "application/json")
.build();
try {
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
} catch (Exception e) {
System.err.println("Caught IOException: " + e.getMessage());
}
}
}
var request = require("request");
var options = {
method: 'GET',
url: 'https://sandbox-api.postmen.com/v3/rates/089301c7-4a45-4c4d-9a4f-75e992e4da40',
headers: {
'content-type': 'application/json',
'postmen-api-key': '8fc7966b-679b-4a57-911d-c5a663229c9e'
}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
<?php
$url = 'https://sandbox-api.postmen.com/v3/rates/089301c7-4a45-4c4d-9a4f-75e992e4da40';
$method = 'GET';
$headers = array(
"content-type: application/json",
"postmen-api-key: 8fc7966b-679b-4a57-911d-c5a663229c9e"
);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => $url,
CURLOPT_CUSTOMREQUEST => $method,
CURLOPT_HTTPHEADER => $headers,
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
# Make sure to install requests: pip install requests
import requests
url = 'https://sandbox-api.postmen.com/v3/rates/089301c7-4a45-4c4d-9a4f-75e992e4da40'
headers = {
'postmen-api-key': '8fc7966b-679b-4a57-911d-c5a663229c9e',
'content-type': 'application/json'
}
response = requests.request('GET', url, headers=headers)
print(response.text)
require 'uri'
require 'net/http'
url = URI('https://sandbox-api.postmen.com/v3/rates/089301c7-4a45-4c4d-9a4f-75e992e4da40')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request['postmen-api-key'] = '8fc7966b-679b-4a57-911d-c5a663229c9e'
request['content-type'] = 'application/json'
response = http.request(request)
puts response.read_body
Name | Type | Description |
---|---|---|
id | string | Calculate Rate ID |
status | string | Accepts: calculating ,calculated ,failed . |
rates | array of rate type | The amount of a charge or payment with reference to some basis of calculation. |
created_at | string | A formatted date. |
updated_at | string | A formatted date. |
Response example
{
"meta": {
"code": 200,
"message": "OK",
"details": []
},
"data": {
"created_at": "2015-12-23T04:14:51+00:00",
"id": "e6ff8a69-54ab-492e-85ad-22a4b5c4bf2e",
"updated_at": "2015-12-23T04:14:53+00:00",
"status": "calculated",
"rates": [
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "tnt",
"description": "tnt"
},
"service_type": "tnt_express",
"service_name": "TNT Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 0.1,
"unit": "kg"
},
"total_charge": {
"amount": 252.45,
"currency": "HKD"
},
"detailed_charges": []
},
{
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "tnt",
"description": "tnt"
},
"service_type": "tnt_economy_express",
"service_name": "TNT Economy Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 0.1,
"unit": "kg"
},
"total_charge": {
"amount": 252.45,
"currency": "HKD"
},
"detailed_charges": []
}
]
}
}