Create a label
Name | Type | Description |
---|---|---|
service_type * | string | Service Types Accepts: sf-express-ibs_abroad_local_order ,sf-express-ibs_bd5_53x32x23 ,sf-express-ibs_bde_33_24.5 ,sf-express-ibs_box_direct_2 ,sf-express-ibs_box_direct_3 ,sf-express-ibs_box_direct_4 ,sf-express-ibs_box_direct_6 ,sf-express-ibs_cross_border_direct_ship_ecommerce_import ,sf-express-ibs_cross_border_direct_ship_personal_parcel ,sf-express-ibs_econ_express ,sf-express-ibs_econ_express_d ,sf-express-ibs_ee_pilot_agent ,sf-express-ibs_global_express_document ,sf-express-ibs_global_express_type_b_parcel ,sf-express-ibs_global_express_type_d_parcel ,sf-express-ibs_global_reach ,sf-express-ibs_icc_chilled ,sf-express-ibs_icc_frozen ,sf-express-ibs_icc_room_temperature_ac ,sf-express-ibs_intl_ecommerce_express ,sf-express-ibs_intl_econ_bonded ,sf-express-ibs_intl_econ_express_doc ,sf-express-ibs_intl_econ_express_parcel ,sf-express-ibs_intl_econ_express_pilot ,sf-express-ibs_intl_heavy_freight_air_deliver ,sf-express-ibs_intl_heavy_freight_air_port_to_port ,sf-express-ibs_intl_heavy_freight_sea_fast_deliver ,sf-express-ibs_intl_heavy_freight_sea_normal_deliver ,sf-express-ibs_intl_parcel_econ_box_direct_2 ,sf-express-ibs_intl_parcel_econ_box_direct_3 ,sf-express-ibs_intl_parcel_econ_box_direct_4 ,sf-express-ibs_intl_parcel_econ_box_direct_5 ,sf-express-ibs_intl_parcel_econ_box_direct_6 ,sf-express-ibs_intl_parcel_econ_box_direct_envelope ,sf-express-ibs_intl_parcel_econ_fba ,sf-express-ibs_intl_parcel_econ_type_d ,sf-express-ibs_intl_parcel_heavy_freight_fba ,sf-express-ibs_intl_parcel_standard_fba ,sf-express-ibs_intl_parcel_standard_type_d ,sf-express-ibs_intl_standard_express_doc ,sf-express-ibs_intl_standard_express_parcel ,sf-express-ibs_logistics_cargo_service ,sf-express-ibs_next_morning_delivery ,sf-express-ibs_shipmax ,sf-express-ibs_standard_express ,sf-express-ibs_standard_express_d ,sf-express-ibs_us_pack1 ,sf-express-ibs_us_pack3 . |
shipper_account * | reference | Object reference |
shipment * | shipment | An instance of shipping freight or cargo |
async | boolean | enable async mode or not (set to false if not provided) |
return_shipment | boolean | (set to false if not provided) |
paper_size | string | Label Paper Size Accepts: 4x6 ,4x8 ,default . (set to "default" if not provided) |
ship_date | string | Ship Date in YYYY-MM-DD, if not provided, will be today of the shipper account timezone |
service_options | array of service option - cod or service option - insurance or service option - pickup | Service options |
is_document | boolean | If the shipment is document type. (set to false if not provided) |
invoice | invoice | Invoice object, use to describe invoice |
references | array of strings | Reference numbers for a label |
billing | billing | Billing Object |
customs | customs | Customs Object |
{
"async": false,
"return_shipment": false,
"paper_size": "4x8",
"service_type": "sf-express-ibs_intl_standard_express_doc",
"is_document": false,
"service_options": [
{
"type": "cod",
"cod_value": {
"currency": "CNY",
"amount": 50
}
},
{
"type": "insurance",
"insured_value": {
"amount": 10,
"currency": "CNY"
}
},
{
"type": "pickup",
"start_time": "19:30:12"
}
],
"ship_date": "2018-12-20",
"invoice": {
"date": "2018-12-23"
},
"references": [
"a8222-1348-12"
],
"shipper_account": {
"id": "38738dfc-9a0f-411e-a947-89a49e481c21"
},
"customs": {
"billing": {
"paid_by": "shipper"
},
"terms_of_trade": "ddp",
"purpose": "merchandise"
},
"billing": {
"paid_by": "shipper",
"method": {
"type": "account",
"account_number": "0010002117"
}
},
"shipment": {
"ship_from": {
"contact_name": "Panda",
"phone": "13800138000",
"company_name": "Panda(深圳)",
"street1": "广东省深圳市南山区粤海10道18号AAA大楼1号区",
"street2": "A区19幢39单元",
"city": "深圳市",
"state": "南山区",
"postal_code": "518000",
"country": "CHN",
"type": "business"
},
"ship_to": {
"contact_name": "Jack Panda",
"company_name": "Panda(SGP)",
"phone": "65-68823000",
"email": "support@panda.com",
"street1": "620A, Lor 1 Toa Payoh Singapore 319762, Singapore",
"city": "Singapore",
"postal_code": "319762",
"country": "SGP",
"type": "residential"
},
"parcels": [
{
"description": "Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)",
"box_type": "custom",
"weight": {
"value": 0.6,
"unit": "kg"
},
"dimension": {
"width": 20,
"height": 3,
"depth": 40,
"unit": "cm"
},
"items": [
{
"description": "Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)",
"origin_country": "CHN",
"quantity": 2,
"price": {
"amount": 5.7,
"currency": "CNY"
},
"weight": {
"value": 0.1,
"unit": "kg"
},
"sku": "sku1234",
"hs_code": "6301.40.00"
}
]
},
{
"box_type": "custom",
"weight": {
"unit": "kg",
"value": 1.2
},
"dimension": {
"depth": 15,
"width": 10,
"height": 1,
"unit": "in"
},
"items": [
{
"description": "Samsung Galaxy Tab wifi 3G 64GB black",
"origin_country": "USA",
"quantity": 2,
"price": {
"amount": 50,
"currency": "CNY"
},
"weight": {
"value": 0.6,
"unit": "kg"
},
"sku": "Epic_Food_Bar",
"hs_code": "6301.40.00"
}
]
},
{
"box_type": "custom",
"weight": {
"unit": "kg",
"value": 1.6
},
"dimension": {
"depth": 5,
"width": 4,
"height": 3,
"unit": "cm"
},
"items": [
{
"description": "Samsung Galaxy Tab wifi 3G 64GB white",
"origin_country": "HKG",
"quantity": 2,
"price": {
"amount": 40,
"currency": "CNY"
},
"weight": {
"value": 0.4,
"unit": "kg"
},
"hs_code": "6301.40.00"
},
{
"description": "Inches Quad-Core 3G Tablet PC With 1GB RAM, 16GB ROM Silver",
"origin_country": "HKG",
"quantity": 2,
"price": {
"amount": 40,
"currency": "CNY"
},
"weight": {
"value": 0.4,
"unit": "kg"
},
"hs_code": "6301.40.00"
}
]
}
]
}
}
curl --request POST \
--url https://sandbox-api.postmen.com/v3/labels \
--header 'content-type: application/json' \
--header 'postmen-api-key: 8fc7966b-679b-4a57-911d-c5a663229c9e' \
--data '{"async":false,"return_shipment":false,"paper_size":"4x8","service_type":"sf-express-ibs_intl_standard_express_doc","is_document":false,"service_options":[{"type":"cod","cod_value":{"currency":"CNY","amount":50}},{"type":"insurance","insured_value":{"amount":10,"currency":"CNY"}},{"type":"pickup","start_time":"19:30:12"}],"ship_date":"2018-12-20","invoice":{"date":"2018-12-23"},"references":["a8222-1348-12"],"shipper_account":{"id":"38738dfc-9a0f-411e-a947-89a49e481c21"},"customs":{"billing":{"paid_by":"shipper"},"terms_of_trade":"ddp","purpose":"merchandise"},"billing":{"paid_by":"shipper","method":{"type":"account","account_number":"0010002117"}},"shipment":{"ship_from":{"contact_name":"Panda","phone":"13800138000","company_name":"Panda(深圳)","street1":"广东省深圳市南山区粤海10道18号AAA大楼1号区","street2":"A区19幢39单元","city":"深圳市","state":"南山区","postal_code":"518000","country":"CHN","type":"business"},"ship_to":{"contact_name":"Jack Panda","company_name":"Panda(SGP)","phone":"65-68823000","email":"support@panda.com","street1":"620A, Lor 1 Toa Payoh Singapore 319762, Singapore","city":"Singapore","postal_code":"319762","country":"SGP","type":"residential"},"parcels":[{"description":"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)","box_type":"custom","weight":{"value":0.6,"unit":"kg"},"dimension":{"width":20,"height":3,"depth":40,"unit":"cm"},"items":[{"description":"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)","origin_country":"CHN","quantity":2,"price":{"amount":5.7,"currency":"CNY"},"weight":{"value":0.1,"unit":"kg"},"sku":"sku1234","hs_code":"6301.40.00"}]},{"box_type":"custom","weight":{"unit":"kg","value":1.2},"dimension":{"depth":15,"width":10,"height":1,"unit":"in"},"items":[{"description":"Samsung Galaxy Tab wifi 3G 64GB black","origin_country":"USA","quantity":2,"price":{"amount":50,"currency":"CNY"},"weight":{"value":0.6,"unit":"kg"},"sku":"Epic_Food_Bar","hs_code":"6301.40.00"}]},{"box_type":"custom","weight":{"unit":"kg","value":1.6},"dimension":{"depth":5,"width":4,"height":3,"unit":"cm"},"items":[{"description":"Samsung Galaxy Tab wifi 3G 64GB white","origin_country":"HKG","quantity":2,"price":{"amount":40,"currency":"CNY"},"weight":{"value":0.4,"unit":"kg"},"hs_code":"6301.40.00"},{"description":"Inches Quad-Core 3G Tablet PC With 1GB RAM, 16GB ROM Silver","origin_country":"HKG","quantity":2,"price":{"amount":40,"currency":"CNY"},"weight":{"value":0.4,"unit":"kg"},"hs_code":"6301.40.00"}]}]}}'
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/labels");
string json = "{\"async\":false,\"return_shipment\":false,\"paper_size\":\"4x8\",\"service_type\":\"sf-express-ibs_intl_standard_express_doc\",\"is_document\":false,\"service_options\":[{\"type\":\"cod\",\"cod_value\":{\"currency\":\"CNY\",\"amount\":50}},{\"type\":\"insurance\",\"insured_value\":{\"amount\":10,\"currency\":\"CNY\"}},{\"type\":\"pickup\",\"start_time\":\"19:30:12\"}],\"ship_date\":\"2018-12-20\",\"invoice\":{\"date\":\"2018-12-23\"},\"references\":[\"a8222-1348-12\"],\"shipper_account\":{\"id\":\"38738dfc-9a0f-411e-a947-89a49e481c21\"},\"customs\":{\"billing\":{\"paid_by\":\"shipper\"},\"terms_of_trade\":\"ddp\",\"purpose\":\"merchandise\"},\"billing\":{\"paid_by\":\"shipper\",\"method\":{\"type\":\"account\",\"account_number\":\"0010002117\"}},\"shipment\":{\"ship_from\":{\"contact_name\":\"Panda\",\"phone\":\"13800138000\",\"company_name\":\"Panda(深圳)\",\"street1\":\"广东省深圳市南山区粤海10道18号AAA大楼1号区\",\"street2\":\"A区19幢39单元\",\"city\":\"深圳市\",\"state\":\"南山区\",\"postal_code\":\"518000\",\"country\":\"CHN\",\"type\":\"business\"},\"ship_to\":{\"contact_name\":\"Jack Panda\",\"company_name\":\"Panda(SGP)\",\"phone\":\"65-68823000\",\"email\":\"support@panda.com\",\"street1\":\"620A, Lor 1 Toa Payoh Singapore 319762, Singapore\",\"city\":\"Singapore\",\"postal_code\":\"319762\",\"country\":\"SGP\",\"type\":\"residential\"},\"parcels\":[{\"description\":\"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)\",\"box_type\":\"custom\",\"weight\":{\"value\":0.6,\"unit\":\"kg\"},\"dimension\":{\"width\":20,\"height\":3,\"depth\":40,\"unit\":\"cm\"},\"items\":[{\"description\":\"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)\",\"origin_country\":\"CHN\",\"quantity\":2,\"price\":{\"amount\":5.7,\"currency\":\"CNY\"},\"weight\":{\"value\":0.1,\"unit\":\"kg\"},\"sku\":\"sku1234\",\"hs_code\":\"6301.40.00\"}]},{\"box_type\":\"custom\",\"weight\":{\"unit\":\"kg\",\"value\":1.2},\"dimension\":{\"depth\":15,\"width\":10,\"height\":1,\"unit\":\"in\"},\"items\":[{\"description\":\"Samsung Galaxy Tab wifi 3G 64GB black\",\"origin_country\":\"USA\",\"quantity\":2,\"price\":{\"amount\":50,\"currency\":\"CNY\"},\"weight\":{\"value\":0.6,\"unit\":\"kg\"},\"sku\":\"Epic_Food_Bar\",\"hs_code\":\"6301.40.00\"}]},{\"box_type\":\"custom\",\"weight\":{\"unit\":\"kg\",\"value\":1.6},\"dimension\":{\"depth\":5,\"width\":4,\"height\":3,\"unit\":\"cm\"},\"items\":[{\"description\":\"Samsung Galaxy Tab wifi 3G 64GB white\",\"origin_country\":\"HKG\",\"quantity\":2,\"price\":{\"amount\":40,\"currency\":\"CNY\"},\"weight\":{\"value\":0.4,\"unit\":\"kg\"},\"hs_code\":\"6301.40.00\"},{\"description\":\"Inches Quad-Core 3G Tablet PC With 1GB RAM, 16GB ROM Silver\",\"origin_country\":\"HKG\",\"quantity\":2,\"price\":{\"amount\":40,\"currency\":\"CNY\"},\"weight\":{\"value\":0.4,\"unit\":\"kg\"},\"hs_code\":\"6301.40.00\"}]}]}}";
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, "{\"async\":false,\"return_shipment\":false,\"paper_size\":\"4x8\",\"service_type\":\"sf-express-ibs_intl_standard_express_doc\",\"is_document\":false,\"service_options\":[{\"type\":\"cod\",\"cod_value\":{\"currency\":\"CNY\",\"amount\":50}},{\"type\":\"insurance\",\"insured_value\":{\"amount\":10,\"currency\":\"CNY\"}},{\"type\":\"pickup\",\"start_time\":\"19:30:12\"}],\"ship_date\":\"2018-12-20\",\"invoice\":{\"date\":\"2018-12-23\"},\"references\":[\"a8222-1348-12\"],\"shipper_account\":{\"id\":\"38738dfc-9a0f-411e-a947-89a49e481c21\"},\"customs\":{\"billing\":{\"paid_by\":\"shipper\"},\"terms_of_trade\":\"ddp\",\"purpose\":\"merchandise\"},\"billing\":{\"paid_by\":\"shipper\",\"method\":{\"type\":\"account\",\"account_number\":\"0010002117\"}},\"shipment\":{\"ship_from\":{\"contact_name\":\"Panda\",\"phone\":\"13800138000\",\"company_name\":\"Panda(深圳)\",\"street1\":\"广东省深圳市南山区粤海10道18号AAA大楼1号区\",\"street2\":\"A区19幢39单元\",\"city\":\"深圳市\",\"state\":\"南山区\",\"postal_code\":\"518000\",\"country\":\"CHN\",\"type\":\"business\"},\"ship_to\":{\"contact_name\":\"Jack Panda\",\"company_name\":\"Panda(SGP)\",\"phone\":\"65-68823000\",\"email\":\"support@panda.com\",\"street1\":\"620A, Lor 1 Toa Payoh Singapore 319762, Singapore\",\"city\":\"Singapore\",\"postal_code\":\"319762\",\"country\":\"SGP\",\"type\":\"residential\"},\"parcels\":[{\"description\":\"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)\",\"box_type\":\"custom\",\"weight\":{\"value\":0.6,\"unit\":\"kg\"},\"dimension\":{\"width\":20,\"height\":3,\"depth\":40,\"unit\":\"cm\"},\"items\":[{\"description\":\"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)\",\"origin_country\":\"CHN\",\"quantity\":2,\"price\":{\"amount\":5.7,\"currency\":\"CNY\"},\"weight\":{\"value\":0.1,\"unit\":\"kg\"},\"sku\":\"sku1234\",\"hs_code\":\"6301.40.00\"}]},{\"box_type\":\"custom\",\"weight\":{\"unit\":\"kg\",\"value\":1.2},\"dimension\":{\"depth\":15,\"width\":10,\"height\":1,\"unit\":\"in\"},\"items\":[{\"description\":\"Samsung Galaxy Tab wifi 3G 64GB black\",\"origin_country\":\"USA\",\"quantity\":2,\"price\":{\"amount\":50,\"currency\":\"CNY\"},\"weight\":{\"value\":0.6,\"unit\":\"kg\"},\"sku\":\"Epic_Food_Bar\",\"hs_code\":\"6301.40.00\"}]},{\"box_type\":\"custom\",\"weight\":{\"unit\":\"kg\",\"value\":1.6},\"dimension\":{\"depth\":5,\"width\":4,\"height\":3,\"unit\":\"cm\"},\"items\":[{\"description\":\"Samsung Galaxy Tab wifi 3G 64GB white\",\"origin_country\":\"HKG\",\"quantity\":2,\"price\":{\"amount\":40,\"currency\":\"CNY\"},\"weight\":{\"value\":0.4,\"unit\":\"kg\"},\"hs_code\":\"6301.40.00\"},{\"description\":\"Inches Quad-Core 3G Tablet PC With 1GB RAM, 16GB ROM Silver\",\"origin_country\":\"HKG\",\"quantity\":2,\"price\":{\"amount\":40,\"currency\":\"CNY\"},\"weight\":{\"value\":0.4,\"unit\":\"kg\"},\"hs_code\":\"6301.40.00\"}]}]}}");
Request request = new Request.Builder()
.url("https://sandbox-api.postmen.com/v3/labels")
.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/labels',
headers: {
'content-type': 'application/json',
'postmen-api-key': '8fc7966b-679b-4a57-911d-c5a663229c9e'
},
body: '{"async":false,"return_shipment":false,"paper_size":"4x8","service_type":"sf-express-ibs_intl_standard_express_doc","is_document":false,"service_options":[{"type":"cod","cod_value":{"currency":"CNY","amount":50}},{"type":"insurance","insured_value":{"amount":10,"currency":"CNY"}},{"type":"pickup","start_time":"19:30:12"}],"ship_date":"2018-12-20","invoice":{"date":"2018-12-23"},"references":["a8222-1348-12"],"shipper_account":{"id":"38738dfc-9a0f-411e-a947-89a49e481c21"},"customs":{"billing":{"paid_by":"shipper"},"terms_of_trade":"ddp","purpose":"merchandise"},"billing":{"paid_by":"shipper","method":{"type":"account","account_number":"0010002117"}},"shipment":{"ship_from":{"contact_name":"Panda","phone":"13800138000","company_name":"Panda(深圳)","street1":"广东省深圳市南山区粤海10道18号AAA大楼1号区","street2":"A区19幢39单元","city":"深圳市","state":"南山区","postal_code":"518000","country":"CHN","type":"business"},"ship_to":{"contact_name":"Jack Panda","company_name":"Panda(SGP)","phone":"65-68823000","email":"support@panda.com","street1":"620A, Lor 1 Toa Payoh Singapore 319762, Singapore","city":"Singapore","postal_code":"319762","country":"SGP","type":"residential"},"parcels":[{"description":"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)","box_type":"custom","weight":{"value":0.6,"unit":"kg"},"dimension":{"width":20,"height":3,"depth":40,"unit":"cm"},"items":[{"description":"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)","origin_country":"CHN","quantity":2,"price":{"amount":5.7,"currency":"CNY"},"weight":{"value":0.1,"unit":"kg"},"sku":"sku1234","hs_code":"6301.40.00"}]},{"box_type":"custom","weight":{"unit":"kg","value":1.2},"dimension":{"depth":15,"width":10,"height":1,"unit":"in"},"items":[{"description":"Samsung Galaxy Tab wifi 3G 64GB black","origin_country":"USA","quantity":2,"price":{"amount":50,"currency":"CNY"},"weight":{"value":0.6,"unit":"kg"},"sku":"Epic_Food_Bar","hs_code":"6301.40.00"}]},{"box_type":"custom","weight":{"unit":"kg","value":1.6},"dimension":{"depth":5,"width":4,"height":3,"unit":"cm"},"items":[{"description":"Samsung Galaxy Tab wifi 3G 64GB white","origin_country":"HKG","quantity":2,"price":{"amount":40,"currency":"CNY"},"weight":{"value":0.4,"unit":"kg"},"hs_code":"6301.40.00"},{"description":"Inches Quad-Core 3G Tablet PC With 1GB RAM, 16GB ROM Silver","origin_country":"HKG","quantity":2,"price":{"amount":40,"currency":"CNY"},"weight":{"value":0.4,"unit":"kg"},"hs_code":"6301.40.00"}]}]}}'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
<?php
$url = 'https://sandbox-api.postmen.com/v3/labels';
$method = 'POST';
$headers = array(
"content-type: application/json",
"postmen-api-key: 8fc7966b-679b-4a57-911d-c5a663229c9e"
);
$body = '{"async":false,"return_shipment":false,"paper_size":"4x8","service_type":"sf-express-ibs_intl_standard_express_doc","is_document":false,"service_options":[{"type":"cod","cod_value":{"currency":"CNY","amount":50}},{"type":"insurance","insured_value":{"amount":10,"currency":"CNY"}},{"type":"pickup","start_time":"19:30:12"}],"ship_date":"2018-12-20","invoice":{"date":"2018-12-23"},"references":["a8222-1348-12"],"shipper_account":{"id":"38738dfc-9a0f-411e-a947-89a49e481c21"},"customs":{"billing":{"paid_by":"shipper"},"terms_of_trade":"ddp","purpose":"merchandise"},"billing":{"paid_by":"shipper","method":{"type":"account","account_number":"0010002117"}},"shipment":{"ship_from":{"contact_name":"Panda","phone":"13800138000","company_name":"Panda(深圳)","street1":"广东省深圳市南山区粤海10道18号AAA大楼1号区","street2":"A区19幢39单元","city":"深圳市","state":"南山区","postal_code":"518000","country":"CHN","type":"business"},"ship_to":{"contact_name":"Jack Panda","company_name":"Panda(SGP)","phone":"65-68823000","email":"support@panda.com","street1":"620A, Lor 1 Toa Payoh Singapore 319762, Singapore","city":"Singapore","postal_code":"319762","country":"SGP","type":"residential"},"parcels":[{"description":"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)","box_type":"custom","weight":{"value":0.6,"unit":"kg"},"dimension":{"width":20,"height":3,"depth":40,"unit":"cm"},"items":[{"description":"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)","origin_country":"CHN","quantity":2,"price":{"amount":5.7,"currency":"CNY"},"weight":{"value":0.1,"unit":"kg"},"sku":"sku1234","hs_code":"6301.40.00"}]},{"box_type":"custom","weight":{"unit":"kg","value":1.2},"dimension":{"depth":15,"width":10,"height":1,"unit":"in"},"items":[{"description":"Samsung Galaxy Tab wifi 3G 64GB black","origin_country":"USA","quantity":2,"price":{"amount":50,"currency":"CNY"},"weight":{"value":0.6,"unit":"kg"},"sku":"Epic_Food_Bar","hs_code":"6301.40.00"}]},{"box_type":"custom","weight":{"unit":"kg","value":1.6},"dimension":{"depth":5,"width":4,"height":3,"unit":"cm"},"items":[{"description":"Samsung Galaxy Tab wifi 3G 64GB white","origin_country":"HKG","quantity":2,"price":{"amount":40,"currency":"CNY"},"weight":{"value":0.4,"unit":"kg"},"hs_code":"6301.40.00"},{"description":"Inches Quad-Core 3G Tablet PC With 1GB RAM, 16GB ROM Silver","origin_country":"HKG","quantity":2,"price":{"amount":40,"currency":"CNY"},"weight":{"value":0.4,"unit":"kg"},"hs_code":"6301.40.00"}]}]}}';
$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/labels'
payload = '''
{
"async": false,
"return_shipment": false,
"paper_size": "4x8",
"service_type": "sf-express-ibs_intl_standard_express_doc",
"is_document": false,
"service_options": [
{
"type": "cod",
"cod_value": {
"currency": "CNY",
"amount": 50
}
},
{
"type": "insurance",
"insured_value": {
"amount": 10,
"currency": "CNY"
}
},
{
"type": "pickup",
"start_time": "19:30:12"
}
],
"ship_date": "2018-12-20",
"invoice": {
"date": "2018-12-23"
},
"references": [
"a8222-1348-12"
],
"shipper_account": {
"id": "38738dfc-9a0f-411e-a947-89a49e481c21"
},
"customs": {
"billing": {
"paid_by": "shipper"
},
"terms_of_trade": "ddp",
"purpose": "merchandise"
},
"billing": {
"paid_by": "shipper",
"method": {
"type": "account",
"account_number": "0010002117"
}
},
"shipment": {
"ship_from": {
"contact_name": "Panda",
"phone": "13800138000",
"company_name": "Panda(深圳)",
"street1": "广东省深圳市南山区粤海10道18号AAA大楼1号区",
"street2": "A区19幢39单元",
"city": "深圳市",
"state": "南山区",
"postal_code": "518000",
"country": "CHN",
"type": "business"
},
"ship_to": {
"contact_name": "Jack Panda",
"company_name": "Panda(SGP)",
"phone": "65-68823000",
"email": "support@panda.com",
"street1": "620A, Lor 1 Toa Payoh Singapore 319762, Singapore",
"city": "Singapore",
"postal_code": "319762",
"country": "SGP",
"type": "residential"
},
"parcels": [
{
"description": "Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)",
"box_type": "custom",
"weight": {
"value": 0.6,
"unit": "kg"
},
"dimension": {
"width": 20,
"height": 3,
"depth": 40,
"unit": "cm"
},
"items": [
{
"description": "Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)",
"origin_country": "CHN",
"quantity": 2,
"price": {
"amount": 5.7,
"currency": "CNY"
},
"weight": {
"value": 0.1,
"unit": "kg"
},
"sku": "sku1234",
"hs_code": "6301.40.00"
}
]
},
{
"box_type": "custom",
"weight": {
"unit": "kg",
"value": 1.2
},
"dimension": {
"depth": 15,
"width": 10,
"height": 1,
"unit": "in"
},
"items": [
{
"description": "Samsung Galaxy Tab wifi 3G 64GB black",
"origin_country": "USA",
"quantity": 2,
"price": {
"amount": 50,
"currency": "CNY"
},
"weight": {
"value": 0.6,
"unit": "kg"
},
"sku": "Epic_Food_Bar",
"hs_code": "6301.40.00"
}
]
},
{
"box_type": "custom",
"weight": {
"unit": "kg",
"value": 1.6
},
"dimension": {
"depth": 5,
"width": 4,
"height": 3,
"unit": "cm"
},
"items": [
{
"description": "Samsung Galaxy Tab wifi 3G 64GB white",
"origin_country": "HKG",
"quantity": 2,
"price": {
"amount": 40,
"currency": "CNY"
},
"weight": {
"value": 0.4,
"unit": "kg"
},
"hs_code": "6301.40.00"
},
{
"description": "Inches Quad-Core 3G Tablet PC With 1GB RAM, 16GB ROM Silver",
"origin_country": "HKG",
"quantity": 2,
"price": {
"amount": 40,
"currency": "CNY"
},
"weight": {
"value": 0.4,
"unit": "kg"
},
"hs_code": "6301.40.00"
}
]
}
]
}
}
'''
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/labels')
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 = '{"async":false,"return_shipment":false,"paper_size":"4x8","service_type":"sf-express-ibs_intl_standard_express_doc","is_document":false,"service_options":[{"type":"cod","cod_value":{"currency":"CNY","amount":50}},{"type":"insurance","insured_value":{"amount":10,"currency":"CNY"}},{"type":"pickup","start_time":"19:30:12"}],"ship_date":"2018-12-20","invoice":{"date":"2018-12-23"},"references":["a8222-1348-12"],"shipper_account":{"id":"38738dfc-9a0f-411e-a947-89a49e481c21"},"customs":{"billing":{"paid_by":"shipper"},"terms_of_trade":"ddp","purpose":"merchandise"},"billing":{"paid_by":"shipper","method":{"type":"account","account_number":"0010002117"}},"shipment":{"ship_from":{"contact_name":"Panda","phone":"13800138000","company_name":"Panda(深圳)","street1":"广东省深圳市南山区粤海10道18号AAA大楼1号区","street2":"A区19幢39单元","city":"深圳市","state":"南山区","postal_code":"518000","country":"CHN","type":"business"},"ship_to":{"contact_name":"Jack Panda","company_name":"Panda(SGP)","phone":"65-68823000","email":"support@panda.com","street1":"620A, Lor 1 Toa Payoh Singapore 319762, Singapore","city":"Singapore","postal_code":"319762","country":"SGP","type":"residential"},"parcels":[{"description":"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)","box_type":"custom","weight":{"value":0.6,"unit":"kg"},"dimension":{"width":20,"height":3,"depth":40,"unit":"cm"},"items":[{"description":"Just a Leaf Organic Tea; 有机草本茶,芙蓉生姜2 oz (56 g)","origin_country":"CHN","quantity":2,"price":{"amount":5.7,"currency":"CNY"},"weight":{"value":0.1,"unit":"kg"},"sku":"sku1234","hs_code":"6301.40.00"}]},{"box_type":"custom","weight":{"unit":"kg","value":1.2},"dimension":{"depth":15,"width":10,"height":1,"unit":"in"},"items":[{"description":"Samsung Galaxy Tab wifi 3G 64GB black","origin_country":"USA","quantity":2,"price":{"amount":50,"currency":"CNY"},"weight":{"value":0.6,"unit":"kg"},"sku":"Epic_Food_Bar","hs_code":"6301.40.00"}]},{"box_type":"custom","weight":{"unit":"kg","value":1.6},"dimension":{"depth":5,"width":4,"height":3,"unit":"cm"},"items":[{"description":"Samsung Galaxy Tab wifi 3G 64GB white","origin_country":"HKG","quantity":2,"price":{"amount":40,"currency":"CNY"},"weight":{"value":0.4,"unit":"kg"},"hs_code":"6301.40.00"},{"description":"Inches Quad-Core 3G Tablet PC With 1GB RAM, 16GB ROM Silver","origin_country":"HKG","quantity":2,"price":{"amount":40,"currency":"CNY"},"weight":{"value":0.4,"unit":"kg"},"hs_code":"6301.40.00"}]}]}}'
response = http.request(request)
puts response.read_body
Name | Type | Description |
---|---|---|
id | string | Label ID |
status | string | Accepts: creating ,created ,cancelling ,cancelled ,manifesting ,manifested ,failed . |
ship_date | string | Ship Date in YYYY-MM-DD |
tracking_numbers | array of strings | |
files | a files object | A files object |
rate | 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. |
references | array of strings | Reference numbers for a label |
shipper_account | object | account of shipper |
service_type | string | Service Types Accepts: sf-express-ibs_abroad_local_order ,sf-express-ibs_bd5_53x32x23 ,sf-express-ibs_bde_33_24.5 ,sf-express-ibs_box_direct_2 ,sf-express-ibs_box_direct_3 ,sf-express-ibs_box_direct_4 ,sf-express-ibs_box_direct_6 ,sf-express-ibs_cross_border_direct_ship_ecommerce_import ,sf-express-ibs_cross_border_direct_ship_personal_parcel ,sf-express-ibs_econ_express ,sf-express-ibs_econ_express_d ,sf-express-ibs_ee_pilot_agent ,sf-express-ibs_global_express_document ,sf-express-ibs_global_express_type_b_parcel ,sf-express-ibs_global_express_type_d_parcel ,sf-express-ibs_global_reach ,sf-express-ibs_icc_chilled ,sf-express-ibs_icc_frozen ,sf-express-ibs_icc_room_temperature_ac ,sf-express-ibs_intl_ecommerce_express ,sf-express-ibs_intl_econ_bonded ,sf-express-ibs_intl_econ_express_doc ,sf-express-ibs_intl_econ_express_parcel ,sf-express-ibs_intl_econ_express_pilot ,sf-express-ibs_intl_heavy_freight_air_deliver ,sf-express-ibs_intl_heavy_freight_air_port_to_port ,sf-express-ibs_intl_heavy_freight_sea_fast_deliver ,sf-express-ibs_intl_heavy_freight_sea_normal_deliver ,sf-express-ibs_intl_parcel_econ_box_direct_2 ,sf-express-ibs_intl_parcel_econ_box_direct_3 ,sf-express-ibs_intl_parcel_econ_box_direct_4 ,sf-express-ibs_intl_parcel_econ_box_direct_5 ,sf-express-ibs_intl_parcel_econ_box_direct_6 ,sf-express-ibs_intl_parcel_econ_box_direct_envelope ,sf-express-ibs_intl_parcel_econ_fba ,sf-express-ibs_intl_parcel_econ_type_d ,sf-express-ibs_intl_parcel_heavy_freight_fba ,sf-express-ibs_intl_parcel_standard_fba ,sf-express-ibs_intl_parcel_standard_type_d ,sf-express-ibs_intl_standard_express_doc ,sf-express-ibs_intl_standard_express_parcel ,sf-express-ibs_logistics_cargo_service ,sf-express-ibs_next_morning_delivery ,sf-express-ibs_shipmax ,sf-express-ibs_standard_express ,sf-express-ibs_standard_express_d ,sf-express-ibs_us_pack1 ,sf-express-ibs_us_pack3 . |
Response example
{
"meta": {
"code": 200,
"message": "OK",
"details": []
},
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"status": "created",
"ship_date": "2016-01-01",
"created_at": "2016-01-01T00:00:00+00:00",
"updated_at": "2016-01-01T00:00:00+00:00",
"tracking_numbers": [
"235235235235"
],
"files": {
"label": {
"paper_size": "4x6",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "sf-express-ibs",
"description": "SF Express IBS"
},
"service_type": "sf-express-ibs_intl_standard_express_doc",
"service_name": "International Standard Express-Doc",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"error_message": null,
"info_message": null,
"charge_weight": {
"value": 1.54,
"unit": "kg"
},
"total_charge": {
"amount": 78,
"currency": "HKD"
},
"detailed_charges": []
}
}
}
Retrieve a label
{}
curl --request GET \
--url https://sandbox-api.postmen.com/v3/labels/ \
--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/labels/");
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/labels/")
.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/labels/',
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/labels/';
$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/labels/'
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/labels/')
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 | Label ID |
status | string | Accepts: creating ,created ,cancelling ,cancelled ,manifesting ,manifested ,failed . |
ship_date | string | Ship Date in YYYY-MM-DD |
tracking_numbers | array of strings | |
files | a files object | A files object |
rate | 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
No example available
List all labels
Optional parameters
Name | Type | Description |
---|---|---|
shipper_account_id | string | Shipper account ID |
status | string | Label status Accepts: creating ,created ,cancelling ,cancelled ,manifesting ,manifested ,failed . |
limit | string | Number of records per page |
created_at_min | string | Start date and time of the record created (default: 24hrs ago) |
created_at_max | string | End date and time of the record created (default: NOW()) |
tracking_numbers | string | Tracking numbers (separated by comma) |
s | string | Partial search of tracking_number or reference |
next_token | string | Next token |
{}
curl --request GET \
--url https://sandbox-api.postmen.com/v3/labels \
--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/labels");
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/labels")
.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/labels',
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/labels';
$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/labels'
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/labels')
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 |
labels | array of a label object | A label object |
Response example
{
"meta": {
"code": 200,
"message": "OK",
"details": []
},
"data": {
"next_token": "eyJjcmVhdGVkX2F0IjoiMjAxNS0xMS0y0000000000oyMC4wNjRaIiwiaWQiOiJlMGU1NGQ3My1iN2Qz0000000000kzZi1lMjgwNzc1ZDdlMDUiLCJ1c2VyX2lkIjoiN0000000000tNjIyNS00ZTBiLTg5ZTQtZTM3N2M3YWM5ZDk4In0=",
"limit": 20,
"created_at_min": "2015-11-26T08:49:15+00:00",
"created_at_max": "2015-11-27T08:49:15+00:00",
"labels": [
{
"id": "ca62aa0d-e8b2-4ea7-b3b1-ee6711d8d7c3",
"status": "created",
"tracking_numbers": [
"1ZV8E0536793432874"
],
"files": {
"label": {
"paper_size": "4x6",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 14.5,
"unit": "kg"
},
"total_charge": {
"amount": 1168.06,
"currency": "HKD"
},
"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,
"detailed_charges": [],
"error_message": null,
"info_message": null
},
"created_at": "2015-11-27T08:48:31+00:00",
"updated_at": "2015-11-27T08:48:35+00:00"
},
{
"id": "de57ca7e-0ca2-4bd9-8e25-cd9502dc66ed",
"status": "created",
"tracking_numbers": [
"8149526918288889"
],
"files": {
"label": {
"paper_size": "4x6",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 2,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "hermes",
"description": "hermes (Runscope)"
},
"service_type": "hermes_standard",
"service_name": "Standard",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:47:20+00:00",
"updated_at": "2015-11-27T08:47:22+00:00"
},
{
"id": "72393fe3-be8e-4a7a-8434-1f0b5b56c09e",
"status": "cancelled",
"tracking_numbers": [
"0470110200793101997414"
],
"files": {
"label": {
"paper_size": "4x6",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": null,
"total_charge": {
"amount": 16.3,
"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": 1,
"detailed_charges": [],
"error_message": null,
"info_message": null
},
"created_at": "2015-11-27T08:46:56+00:00",
"updated_at": "2015-11-27T08:47:02+00:00"
},
{
"id": "b69a27fc-a025-4d9b-a122-e009024d7a0c",
"status": "created",
"tracking_numbers": [
"0020165036"
],
"files": {
"label": {
"paper_size": "4x8",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 3.307,
"unit": "lb"
},
"total_charge": {
"amount": 0,
"currency": "USD"
},
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "dhl",
"description": "dhl (Runscope)"
},
"service_type": "dhl_express_0900",
"service_name": "DHL Express 0900",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": null
},
"created_at": "2015-11-27T08:46:39+00:00",
"updated_at": "2015-11-27T08:46:43+00:00"
},
{
"id": "b8463988-114a-43ff-86f8-66451a20688c",
"status": "created",
"tracking_numbers": [],
"files": {
"label": {
"paper_size": "default",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 9,
"unit": "lb"
},
"total_charge": {
"amount": 34.82,
"currency": "CAD"
},
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canpar",
"description": "canpar (Runscope)"
},
"service_type": "canpar_ground",
"service_name": "GROUND",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2015-12-02T05:00:00+00:00",
"transit_time": 3,
"detailed_charges": [
{
"type": "Freight Charge",
"charge": {
"amount": 30.41,
"currency": "CAD"
}
},
{
"type": "Residential Address Charge",
"charge": {
"amount": 2.75,
"currency": "CAD"
}
},
{
"type": "GST",
"charge": {
"amount": 1.66,
"currency": "CAD"
}
}
],
"error_message": null,
"info_message": null
},
"created_at": "2015-11-27T08:44:54+00:00",
"updated_at": "2015-11-27T08:44:57+00:00"
},
{
"id": "97c1ce96-1a07-49d4-a4f6-5f5aa0fd2511",
"status": "created",
"tracking_numbers": [
"984190007700204439"
],
"files": {
"label": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 1.3,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "asendia-hk",
"description": "asendia-hk (Runscope)"
},
"service_type": "asendia-hk_reg",
"service_name": "Registered Mail",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:44:22+00:00",
"updated_at": "2015-11-27T08:44:23+00:00"
},
{
"id": "d2875fe7-b559-47ff-ae27-c0836aacc586",
"status": "created",
"tracking_numbers": [
"794666490930"
],
"files": {
"label": {
"paper_size": "4x6",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 30,
"unit": "lb"
},
"total_charge": {
"amount": 13.56,
"currency": "USD"
},
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "fedex",
"description": "fedex (Runscope)"
},
"service_type": "fedex_ground",
"service_name": "Fedex Ground",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [
{
"type": "base",
"charge": {
"amount": 13.01,
"currency": "USD"
}
},
{
"type": "fedex_ground_fuel",
"charge": {
"amount": 0.55,
"currency": "USD"
}
}
],
"error_message": null,
"info_message": null
},
"created_at": "2015-11-27T08:42:06+00:00",
"updated_at": "2015-11-27T08:42:10+00:00"
},
{
"id": "e6c8b70c-f367-4fd6-a6f1-5308aa8fd8a0",
"status": "created",
"tracking_numbers": [
"PREF10000000000148"
],
"files": {
"label": {
"paper_size": "default",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 9.54,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "spsr",
"description": "spsr (Runscope)"
},
"service_type": "spsr_gepintl",
"service_name": "GEPINTL",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:42:06+00:00",
"updated_at": "2015-11-27T08:42:06+00:00"
},
{
"id": "cc96267e-95aa-4594-a9db-92c51e499f70",
"status": "cancelled",
"tracking_numbers": [
"PREF10000000000147"
],
"files": {
"label": {
"paper_size": "6x4",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 9.54,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "spsr",
"description": "spsr (Runscope)"
},
"service_type": "spsr_gepintl",
"service_name": "GEPINTL",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:41:02+00:00",
"updated_at": "2015-11-27T08:41:05+00:00"
},
{
"id": "478d1ae0-9a26-4f97-8da2-9b946f711f6c",
"status": "created",
"tracking_numbers": [
"PREF10000000000146"
],
"files": {
"label": {
"paper_size": "6x4",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 9.54,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "spsr",
"description": "spsr (Runscope)"
},
"service_type": "spsr_gepintl",
"service_name": "GEPINTL",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:40:40+00:00",
"updated_at": "2015-11-27T08:40:47+00:00"
},
{
"id": "c11a5651-7683-4eb7-be6e-daef215f24fd",
"status": "created",
"tracking_numbers": [
"GE874105291HK"
],
"files": {
"label": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": null,
"total_charge": {
"amount": 227.75,
"currency": "USD"
},
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "tnt",
"description": "tnt (Runscope)"
},
"service_type": "tnt_economy_express",
"service_name": "TNT Economy Express",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "P13:RATEID: POSTMEN-REF - STANDARD RATES."
},
"created_at": "2015-11-27T08:30:51+00:00",
"updated_at": "2015-11-27T08:30:57+00:00"
},
{
"id": "1306e565-fc50-4a65-946f-663a9ffcf80a",
"status": "manifested",
"tracking_numbers": [
"RP200381450SG"
],
"files": {
"label": {
"paper_size": "default",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 1.2,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "quantium",
"description": "quantium (Runscope)"
},
"service_type": "quantium_registered",
"service_name": "ezyparcels Registered",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:29:59+00:00",
"updated_at": "2015-11-27T08:30:22+00:00"
},
{
"id": "bfda1bc6-4e9b-4703-a3ce-dd5f8189a76b",
"status": "created",
"tracking_numbers": [
"USERREF3629F4C04BEDEEA229"
],
"files": {
"label": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 9.54,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "dhl-global-mail-asia",
"description": "dhl-global-mail-asia (Runscope)"
},
"service_type": "dhl-global-mail-asia_plt",
"service_name": "Parcel Direct",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:29:38+00:00",
"updated_at": "2015-11-27T08:29:38+00:00"
},
{
"id": "821183a2-92df-49ab-bb7c-4770b7aceb05",
"status": "created",
"tracking_numbers": [],
"files": {
"label": {
"paper_size": "4x4",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": null,
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "dpd-uk",
"description": "dpd-uk (Runscope)"
},
"service_type": "dpd-uk_parcel_2d",
"service_name": "Parcel - Two Day",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:29:35+00:00",
"updated_at": "2015-11-27T08:29:41+00:00"
},
{
"id": "2eec8347-8518-45ce-88af-03f4054341b9",
"status": "created",
"tracking_numbers": [
"BLVS1300010000121750"
],
"files": {
"label": {
"paper_size": "4x4",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 2,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "bpost-international",
"description": "bpost-international (Runscope)"
},
"service_type": "bpost-international_minipakeu",
"service_name": "MinipakEU",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:29:29+00:00",
"updated_at": "2015-11-27T08:29:36+00:00"
},
{
"id": "b3d75a21-9d27-4b1b-9592-485667f59e3f",
"status": "cancelled",
"tracking_numbers": [],
"files": {
"label": {
"paper_size": "default",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 9,
"unit": "lb"
},
"total_charge": {
"amount": 34.82,
"currency": "CAD"
},
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "canpar",
"description": "canpar (Runscope)"
},
"service_type": "canpar_ground",
"service_name": "GROUND",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": "2015-12-02T05:00:00+00:00",
"transit_time": 3,
"detailed_charges": [
{
"type": "Freight Charge",
"charge": {
"amount": 30.41,
"currency": "CAD"
}
},
{
"type": "Residential Address Charge",
"charge": {
"amount": 2.75,
"currency": "CAD"
}
},
{
"type": "GST",
"charge": {
"amount": 1.66,
"currency": "CAD"
}
}
],
"error_message": null,
"info_message": null
},
"created_at": "2015-11-27T08:25:07+00:00",
"updated_at": "2015-11-27T08:25:13+00:00"
},
{
"id": "c841654b-5a2a-4888-a369-56bac91d09d5",
"status": "manifested",
"tracking_numbers": [
"RP200381432SG"
],
"files": {
"label": {
"paper_size": "default",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": null,
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": {
"value": 1.2,
"unit": "kg"
},
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "quantium",
"description": "quantium (Runscope)"
},
"service_type": "quantium_registered",
"service_name": "ezyparcels Registered",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:25:04+00:00",
"updated_at": "2015-11-27T08:30:22+00:00"
},
{
"id": "22e406f5-e4d2-4a1d-9b65-a98557fca6eb",
"status": "created",
"tracking_numbers": [
"BN58705188"
],
"files": {
"label": null,
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": null,
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "parcelled-in",
"description": "parcelled-in (Runscope)"
},
"service_type": "parcelled-in_rush",
"service_name": "Rush",
"pickup_deadline": "2015-11-27T02:30:00",
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:24:42+00:00",
"updated_at": "2015-11-27T08:24:42+00:00"
},
{
"id": "9b4b8c9c-41d2-467b-b4b2-97834046b7c7",
"status": "manifested",
"tracking_numbers": [
"0470110200882101123951"
],
"files": {
"label": {
"paper_size": "4x6",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": null,
"total_charge": {
"amount": 16.3,
"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": 1,
"detailed_charges": [],
"error_message": null,
"info_message": null
},
"created_at": "2015-11-27T08:24:39+00:00",
"updated_at": "2015-11-27T08:24:52+00:00"
},
{
"id": "e0e54d73-b7d3-4972-893f-e280775d7e05",
"status": "created",
"tracking_numbers": [
"49950452315"
],
"files": {
"label": {
"paper_size": "4x6",
"url": "https://sandbox-download.postmen.com/label/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"invoice": {
"paper_size": "a4",
"url": "https://sandbox-download.postmen.com/invoice/2015-11-27/00000000-0000-0000-0000-000000000000-1441785264309885.pdf",
"file_type": "pdf"
},
"customs_declaration": null,
"manifest": null
},
"rate": {
"charge_weight": null,
"total_charge": null,
"shipper_account": {
"id": "00000000-0000-0000-0000-000000000000",
"slug": "purolator",
"description": "purolator (Runscope)"
},
"service_type": "purolator_ground_us",
"service_name": "Ground US",
"pickup_deadline": null,
"booking_cut_off": null,
"delivery_date": null,
"transit_time": null,
"detailed_charges": [],
"error_message": null,
"info_message": "No rate quotes returned from carrier."
},
"created_at": "2015-11-27T08:24:20+00:00",
"updated_at": "2015-11-27T08:24:23+00:00"
}
]
}
}