label_download_typestring (label_download_type)
Enum: "url" "inline"
Example: label_download_type=url
There are two different ways to download a label :
@@ -838,7 +838,7 @@
This error will automatically be reported to our engineers.
-get /v1/labels/external_shipment_id/{external_shipment_id}
https://api.shipengine.com /v1/labels/external_shipment_id/{external_shipment_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment" :
{ "carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "comparison_rate_type" : "retail"
} , "is_return_label" : true ,
"rma_number" : "string" ,
"charge_event" : "carrier_default" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK"
}
Purchase Label with Rate ID When retrieving rates for shipments using the /rates
endpoint, the returned information contains a rate_id
property that can be used
+
get /v1/labels/external_shipment_id/{external_shipment_id}
https://api.shipengine.com /v1/labels/external_shipment_id/{external_shipment_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "label_id" : "se-28529731" ,
"status" : "processing" ,
"shipment_id" : "se-28529731" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "tracking_number" : "782758401696" ,
"is_return_label" : true ,
"rma_number" : "string" ,
"is_international" : true ,
"batch_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"charge_event" : "carrier_default" ,
"service_code" : "usps_first_class_mail" ,
"package_code" : "small_flat_rate_box" ,
"voided" : true ,
"voided_at" : "2018-09-23T15:00:00.000Z" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"trackable" : true ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK" ,
"carrier_code" : "dhl_express" ,
"tracking_status" : "unknown" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "packages" :
[
{ "package_id" : 0 ,
"package_code" : "small_flat_rate_box" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "tracking_number" : "1Z932R800392060079" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"content_description" : "Hand knitted wool socks" ,
"sequence" : 0 ,
"has_label_documents" : true ,
"has_form_documents" : true ,
"has_qr_code_documents" : true ,
"has_paperless_label_documents" : true ,
"alternative_identifiers" :
[ ] } ] , "alternative_identifiers" :
[ ] , }
Purchase Label with Rate ID When retrieving rates for shipments using the /rates
endpoint, the returned information contains a rate_id
property that can be used
to generate a label without having to refill in the shipment information repeatedly.
path Parameters rate_id required
string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$
Example: se-28529731
Request Body schema: application/json
validate_addressstring
Enum: "no_validation" "validate_only" "validate_and_clean"
The possible validate address values
@@ -889,7 +889,7 @@
This error will automatically be reported to our engineers.
-
post /v1/labels/rates/{rate_id}
https://api.shipengine.com /v1/labels/rates/{rate_id}
Request samples Content type application/json
Copy
Expand all Collapse all
{ "validate_address" : "no_validation" ,
"label_layout" : "4x6" ,
"label_format" : "pdf" ,
"label_download_type" : "url" ,
"display_scheme" : "label"
}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment" :
{ "carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "comparison_rate_type" : "retail"
} , "is_return_label" : true ,
"rma_number" : "string" ,
"charge_event" : "carrier_default" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK"
}
Purchase Label with Shipment ID Purchase a label using a shipment ID that has already been created with the desired address and
+
post /v1/labels/rates/{rate_id}
https://api.shipengine.com /v1/labels/rates/{rate_id}
Request samples Content type application/json
Copy
Expand all Collapse all
{ "validate_address" : "no_validation" ,
"label_layout" : "4x6" ,
"label_format" : "pdf" ,
"label_download_type" : "url" ,
"display_scheme" : "label"
}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "label_id" : "se-28529731" ,
"status" : "processing" ,
"shipment_id" : "se-28529731" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "tracking_number" : "782758401696" ,
"is_return_label" : true ,
"rma_number" : "string" ,
"is_international" : true ,
"batch_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"charge_event" : "carrier_default" ,
"service_code" : "usps_first_class_mail" ,
"package_code" : "small_flat_rate_box" ,
"voided" : true ,
"voided_at" : "2018-09-23T15:00:00.000Z" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"trackable" : true ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK" ,
"carrier_code" : "dhl_express" ,
"tracking_status" : "unknown" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "packages" :
[
{ "package_id" : 0 ,
"package_code" : "small_flat_rate_box" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "tracking_number" : "1Z932R800392060079" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"content_description" : "Hand knitted wool socks" ,
"sequence" : 0 ,
"has_label_documents" : true ,
"has_form_documents" : true ,
"has_qr_code_documents" : true ,
"has_paperless_label_documents" : true ,
"alternative_identifiers" :
[ ] } ] , "alternative_identifiers" :
[ ] , }
Purchase Label with Shipment ID Purchase a label using a shipment ID that has already been created with the desired address and
package info.
path Parameters shipment_id required
string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$
Example: se-28529731
Request Body schema: application/json
validate_addressstring
Enum: "no_validation" "validate_only" "validate_and_clean"
The possible validate address values
@@ -940,7 +940,7 @@
This error will automatically be reported to our engineers.
-
post /v1/labels/shipment/{shipment_id}
https://api.shipengine.com /v1/labels/shipment/{shipment_id}
Request samples Content type application/json
Copy
Expand all Collapse all
{ "validate_address" : "no_validation" ,
"label_layout" : "4x6" ,
"label_format" : "pdf" ,
"label_download_type" : "url" ,
"display_scheme" : "label"
}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment" :
{ "carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "comparison_rate_type" : "retail"
} , "is_return_label" : true ,
"rma_number" : "string" ,
"charge_event" : "carrier_default" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK"
}
Get Label By ID Retrieve information for individual labels.
+
post /v1/labels/shipment/{shipment_id}
https://api.shipengine.com /v1/labels/shipment/{shipment_id}
Request samples Content type application/json
Copy
Expand all Collapse all
{ "validate_address" : "no_validation" ,
"label_layout" : "4x6" ,
"label_format" : "pdf" ,
"label_download_type" : "url" ,
"display_scheme" : "label"
}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "label_id" : "se-28529731" ,
"status" : "processing" ,
"shipment_id" : "se-28529731" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "tracking_number" : "782758401696" ,
"is_return_label" : true ,
"rma_number" : "string" ,
"is_international" : true ,
"batch_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"charge_event" : "carrier_default" ,
"service_code" : "usps_first_class_mail" ,
"package_code" : "small_flat_rate_box" ,
"voided" : true ,
"voided_at" : "2018-09-23T15:00:00.000Z" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"trackable" : true ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK" ,
"carrier_code" : "dhl_express" ,
"tracking_status" : "unknown" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "packages" :
[
{ "package_id" : 0 ,
"package_code" : "small_flat_rate_box" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "tracking_number" : "1Z932R800392060079" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"content_description" : "Hand knitted wool socks" ,
"sequence" : 0 ,
"has_label_documents" : true ,
"has_form_documents" : true ,
"has_qr_code_documents" : true ,
"has_paperless_label_documents" : true ,
"alternative_identifiers" :
[ ] } ] , "alternative_identifiers" :
[ ] , }
Get Label By ID Retrieve information for individual labels.
path Parameters label_id required
string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$
Example: se-28529731
query Parameters label_download_typestring (label_download_type)
Enum: "url" "inline"
Example: label_download_type=url
There are two different ways to download a label :
@@ -966,7 +966,7 @@
This error will automatically be reported to our engineers.
-
https://api.shipengine.com /v1/labels/{label_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment" :
{ "carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "comparison_rate_type" : "retail"
} , "is_return_label" : true ,
"rma_number" : "string" ,
"charge_event" : "carrier_default" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK"
}
https://api.shipengine.com /v1/labels/{label_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "label_id" : "se-28529731" ,
"status" : "processing" ,
"shipment_id" : "se-28529731" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "tracking_number" : "782758401696" ,
"is_return_label" : true ,
"rma_number" : "string" ,
"is_international" : true ,
"batch_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"charge_event" : "carrier_default" ,
"service_code" : "usps_first_class_mail" ,
"package_code" : "small_flat_rate_box" ,
"voided" : true ,
"voided_at" : "2018-09-23T15:00:00.000Z" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"trackable" : true ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK" ,
"carrier_code" : "dhl_express" ,
"tracking_status" : "unknown" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "packages" :
[
{ "package_id" : 0 ,
"package_code" : "small_flat_rate_box" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "tracking_number" : "1Z932R800392060079" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"content_description" : "Hand knitted wool socks" ,
"sequence" : 0 ,
"has_label_documents" : true ,
"has_form_documents" : true ,
"has_qr_code_documents" : true ,
"has_paperless_label_documents" : true ,
"alternative_identifiers" :
[ ] } ] , "alternative_identifiers" :
[ ] , }
Create a return label path Parameters label_id required
string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$
Example: se-28529731
Request Body schema: application/json
charge_eventstring
Enum: "carrier_default" "on_creation" "on_carrier_acceptance"
label_layoutstring
Default: "4x6"
Enum: "4x6" "letter"
The layout (size) that you want the label to be in. The label_format
determines which sizes are allowed. 4x6
is supported for all label formats, whereas letter
(8.5" x 11") is only supported for pdf
format.
@@ -997,7 +997,7 @@
This error will automatically be reported to our engineers.
-
post /v1/labels/{label_id}/return
https://api.shipengine.com /v1/labels/{label_id}/return
Request samples Content type application/json
Copy
Expand all Collapse all
{ "charge_event" : "carrier_default" ,
"label_layout" : "4x6" ,
"label_format" : "pdf" ,
"label_download_type" : "url" ,
"display_scheme" : "label" ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK"
}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment" :
{ "carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "comparison_rate_type" : "retail"
} , "is_return_label" : true ,
"rma_number" : "string" ,
"charge_event" : "carrier_default" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK"
}
Get Label Tracking Information Retrieve the label's tracking information
+
post /v1/labels/{label_id}/return
https://api.shipengine.com /v1/labels/{label_id}/return
Request samples Content type application/json
Copy
Expand all Collapse all
{ "charge_event" : "carrier_default" ,
"label_layout" : "4x6" ,
"label_format" : "pdf" ,
"label_download_type" : "url" ,
"display_scheme" : "label" ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK"
}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "label_id" : "se-28529731" ,
"status" : "processing" ,
"shipment_id" : "se-28529731" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_cost" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "tracking_number" : "782758401696" ,
"is_return_label" : true ,
"rma_number" : "string" ,
"is_international" : true ,
"batch_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"charge_event" : "carrier_default" ,
"service_code" : "usps_first_class_mail" ,
"package_code" : "small_flat_rate_box" ,
"voided" : true ,
"voided_at" : "2018-09-23T15:00:00.000Z" ,
"label_format" : "pdf" ,
"display_scheme" : "label" ,
"label_layout" : "4x6" ,
"trackable" : true ,
"label_image_id" : "img_DtBXupDBxREpHnwEXhTfgK" ,
"carrier_code" : "dhl_express" ,
"tracking_status" : "unknown" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "packages" :
[
{ "package_id" : 0 ,
"package_code" : "small_flat_rate_box" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "tracking_number" : "1Z932R800392060079" ,
"paperless_download" :
{ "instructions" : null ,
"handoff_code" : null
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"content_description" : "Hand knitted wool socks" ,
"sequence" : 0 ,
"has_label_documents" : true ,
"has_form_documents" : true ,
"has_qr_code_documents" : true ,
"has_paperless_label_documents" : true ,
"alternative_identifiers" :
[ ] } ] , "alternative_identifiers" :
[ ] , }
Get Label Tracking Information Retrieve the label's tracking information
path Parameters label_id required
string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$
Example: se-28529731
Responses 200 The request was a success.
400 The request contained errors.
@@ -1171,7 +1171,7 @@
This error will automatically be reported to our engineers.
-
https://api.shipengine.com /v1/rates
Request samples Content type application/json
Copy
Expand all Collapse all Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"modified_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_status" : "pending" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"tags" : [ ] ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "total_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "comparison_rate_type" : "retail" ,
"rate_response" :
{ "rates" :
[
{ "rate_id" : "se-28529731" ,
"rate_type" : "check" ,
"carrier_id" : "se-28529731" ,
"shipping_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "confirmation_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "other_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "tax_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "zone" : 6 ,
"package_type" : "package" ,
"delivery_days" : 5 ,
"guaranteed_service" : true ,
"estimated_delivery_date" : "2018-09-23T00:00:00.000Z" ,
"carrier_delivery_days" : "string" ,
"ship_date" : "2024-10-09T14:21:27Z" ,
"negotiated_rate" : true ,
"service_type" : "string" ,
"service_code" : "string" ,
"trackable" : true ,
"carrier_code" : "string" ,
"carrier_nickname" : "string" ,
"carrier_friendly_name" : "string" ,
"validation_status" : "valid" ,
} ] , "invalid_rates" : [ ] ,
"rate_request_id" : "se-28529731" ,
"shipment_id" : "se-28529731" ,
"created_at" : "se-28529731" ,
"status" : "working" ,
"errors" :
[
{ "error_source" : "carrier" ,
"error_type" : "account_status" ,
"error_code" : "auto_fund_not_supported" ,
"message" : "Body of request cannot be null." ,
"carrier_id" : "se-28529731" ,
"carrier_code" : "dhl_express" ,
"field_name" : "shipment.ship_to.phone_number"
} ] } }
Get Bulk Rates Get Bulk Shipment Rates
+
https://api.shipengine.com /v1/rates
Request samples Content type application/json
Copy
Expand all Collapse all Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"modified_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_status" : "pending" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"tags" : [ ] ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "total_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "comparison_rate_type" : "retail" ,
"rate_response" :
{ "rates" :
[
{ "rate_id" : "se-28529731" ,
"rate_type" : "check" ,
"carrier_id" : "se-28529731" ,
"shipping_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "confirmation_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "other_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "tax_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "zone" : 6 ,
"package_type" : "package" ,
"delivery_days" : 5 ,
"guaranteed_service" : true ,
"estimated_delivery_date" : "2018-09-23T00:00:00.000Z" ,
"carrier_delivery_days" : "string" ,
"ship_date" : "2024-10-09T21:50:26Z" ,
"negotiated_rate" : true ,
"service_type" : "string" ,
"service_code" : "string" ,
"trackable" : true ,
"carrier_code" : "string" ,
"carrier_nickname" : "string" ,
"carrier_friendly_name" : "string" ,
"validation_status" : "valid" ,
} ] , "invalid_rates" : [ ] ,
"rate_request_id" : "se-28529731" ,
"shipment_id" : "se-28529731" ,
"created_at" : "se-28529731" ,
"status" : "working" ,
"errors" :
[
{ "error_source" : "carrier" ,
"error_type" : "account_status" ,
"error_code" : "auto_fund_not_supported" ,
"message" : "Body of request cannot be null." ,
"carrier_id" : "se-28529731" ,
"carrier_code" : "dhl_express" ,
"field_name" : "shipment.ship_to.phone_number"
} ] } }
Get Bulk Rates Request Body schema: application/json
One of rate_request_by_shipment_ids rate_request_by_shipments shipment_ids required
Array of strings
The array of shipment IDs
rate_options required
Responses 200 The request was a success.
@@ -1201,7 +1201,7 @@
This error will automatically be reported to our engineers.
-
https://api.shipengine.com /v1/rates/estimate
Request samples Content type application/json
Example rate_estimate_by_carrier_id
Copy
Expand all Collapse all
{ "carrier_id" : "se-28529731" ,
"from_country_code" : "CA" ,
"from_postal_code" : "78756-3717" ,
"from_city_locality" : "Austin" ,
"from_state_province" : "Austin" ,
"to_country_code" : "CA" ,
"to_postal_code" : "78756-3717" ,
"to_city_locality" : "Austin" ,
"to_state_province" : "Houston" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "confirmation" : "none" ,
"address_residential_indicator" : "unknown" ,
"ship_date" : "2018-09-23T15:00:00.000Z"
}
Response samples Content type application/json
Copy
Expand all Collapse all
[
{ "rate_type" : "check" ,
"carrier_id" : "se-28529731" ,
"shipping_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "confirmation_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "other_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "tax_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "zone" : 6 ,
"package_type" : "package" ,
"delivery_days" : 5 ,
"guaranteed_service" : true ,
"estimated_delivery_date" : "2018-09-23T00:00:00.000Z" ,
"carrier_delivery_days" : "string" ,
"ship_date" : "2024-10-09T14:21:27Z" ,
"negotiated_rate" : true ,
"service_type" : "string" ,
"service_code" : "string" ,
"trackable" : true ,
"carrier_code" : "string" ,
"carrier_nickname" : "string" ,
"carrier_friendly_name" : "string" ,
"validation_status" : "valid" ,
} ]
Get Rate By ID Retrieve a previously queried rate by its ID
+
https://api.shipengine.com /v1/rates/estimate
Request samples Content type application/json
Example rate_estimate_by_carrier_id
Copy
Expand all Collapse all
{ "carrier_id" : "se-28529731" ,
"from_country_code" : "CA" ,
"from_postal_code" : "78756-3717" ,
"from_city_locality" : "Austin" ,
"from_state_province" : "Austin" ,
"to_country_code" : "CA" ,
"to_postal_code" : "78756-3717" ,
"to_city_locality" : "Austin" ,
"to_state_province" : "Houston" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "confirmation" : "none" ,
"address_residential_indicator" : "unknown" ,
"ship_date" : "2018-09-23T15:00:00.000Z"
}
Response samples Content type application/json
Copy
Expand all Collapse all
[
{ "rate_type" : "check" ,
"carrier_id" : "se-28529731" ,
"shipping_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "confirmation_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "other_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "tax_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "zone" : 6 ,
"package_type" : "package" ,
"delivery_days" : 5 ,
"guaranteed_service" : true ,
"estimated_delivery_date" : "2018-09-23T00:00:00.000Z" ,
"carrier_delivery_days" : "string" ,
"ship_date" : "2024-10-09T21:50:27Z" ,
"negotiated_rate" : true ,
"service_type" : "string" ,
"service_code" : "string" ,
"trackable" : true ,
"carrier_code" : "string" ,
"carrier_nickname" : "string" ,
"carrier_friendly_name" : "string" ,
"validation_status" : "valid" ,
} ]
Get Rate By ID Retrieve a previously queried rate by its ID
path Parameters rate_id required
string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$
Example: se-28529731
Responses 200 The request was a success.
400 The request contained errors.
@@ -1210,7 +1210,7 @@
This error will automatically be reported to our engineers.
-
https://api.shipengine.com /v1/rates/{rate_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "rate_id" : "se-28529731" ,
"rate_type" : "check" ,
"carrier_id" : "se-28529731" ,
"shipping_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "confirmation_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "other_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "tax_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "zone" : 6 ,
"package_type" : "package" ,
"delivery_days" : 5 ,
"guaranteed_service" : true ,
"estimated_delivery_date" : "2018-09-23T00:00:00.000Z" ,
"carrier_delivery_days" : "string" ,
"ship_date" : "2024-10-09T14:21:27Z" ,
"negotiated_rate" : true ,
"service_type" : "string" ,
"service_code" : "string" ,
"trackable" : true ,
"carrier_code" : "string" ,
"carrier_nickname" : "string" ,
"carrier_friendly_name" : "string" ,
"validation_status" : "valid" ,
}
List Service Points List carrier service points by location
+
https://api.shipengine.com /v1/rates/{rate_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "rate_id" : "se-28529731" ,
"rate_type" : "check" ,
"carrier_id" : "se-28529731" ,
"shipping_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "confirmation_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "other_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "tax_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "zone" : 6 ,
"package_type" : "package" ,
"delivery_days" : 5 ,
"guaranteed_service" : true ,
"estimated_delivery_date" : "2018-09-23T00:00:00.000Z" ,
"carrier_delivery_days" : "string" ,
"ship_date" : "2024-10-09T21:50:27Z" ,
"negotiated_rate" : true ,
"service_type" : "string" ,
"service_code" : "string" ,
"trackable" : true ,
"carrier_code" : "string" ,
"carrier_nickname" : "string" ,
"carrier_friendly_name" : "string" ,
"validation_status" : "valid" ,
}
List Service Points List carrier service points by location
Request Body schema: application/json
One of get_service_points_request_body address_querystring
Unstructured text to search for service points by.
addressobject
Structured address to search by.
providers required
Array of objects
An array of shipping service providers and service codes
@@ -1258,7 +1258,7 @@
This error will automatically be reported to our engineers.
-
https://api.shipengine.com /v1/shipments
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipments" :
[
{ "carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "comparison_rate_type" : "retail"
} ] , "total" : 1990 ,
"page" : "????" ,
"pages" : 1 ,
}
Create Shipments Create one or multiple shipments.
+
https://api.shipengine.com /v1/shipments
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipments" :
[
{ "shipment_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"modified_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_status" : "pending" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"tags" : [ ] ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "total_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "comparison_rate_type" : "retail"
} ] , "total" : 1990 ,
"page" : "????" ,
"pages" : 1 ,
}
Create Shipments Create one or multiple shipments.
Request Body schema: application/json
shipments required
Array of objects non-empty
An array of shipments to be created.
Responses 200 The requested object creation was a success.
400 The request contained errors.
@@ -1274,7 +1274,7 @@
This error will automatically be reported to our engineers.
-get /v1/shipments/external_shipment_id/{external_shipment_id}
https://api.shipengine.com /v1/shipments/external_shipment_id/{external_shipment_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "comparison_rate_type" : "retail"
}
Parse shipping info The shipment-recognition API makes it easy for you to extract shipping data from unstructured text, including people's names, addresses, package weights and dimensions, insurance and delivery requirements, and more.
+
get /v1/shipments/external_shipment_id/{external_shipment_id}
https://api.shipengine.com /v1/shipments/external_shipment_id/{external_shipment_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"modified_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_status" : "pending" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"tags" : [ ] ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "total_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "comparison_rate_type" : "retail"
}
Parse shipping info The shipment-recognition API makes it easy for you to extract shipping data from unstructured text, including people's names, addresses, package weights and dimensions, insurance and delivery requirements, and more.
Data often enters your system as unstructured text (for example: emails, SMS messages, support tickets, or other documents). ShipEngine's shipment-recognition API helps you extract meaningful, structured data from this unstructured text. The parsed shipment data is returned in the same structure that's used for other ShipEngine APIs, so you can easily use the parsed data to create a shipping label.
Note: Shipment recognition is currently supported for the United States, Canada, Australia, New Zealand, the United Kingdom, and Ireland.
@@ -1299,7 +1299,7 @@
This error will automatically be reported to our engineers.
- get /v1/shipments/{shipment_id}
https://api.shipengine.com /v1/shipments/{shipment_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "comparison_rate_type" : "retail"
}
Update Shipment By ID Update a shipment object based on its ID
+
get /v1/shipments/{shipment_id}
https://api.shipengine.com /v1/shipments/{shipment_id}
Response samples Content type application/json
Copy
Expand all Collapse all
{ "shipment_id" : "se-28529731" ,
"carrier_id" : "se-28529731" ,
"service_code" : "usps_first_class_mail" ,
"shipping_rule_id" : "se-28529731" ,
"external_order_id" : "string" ,
"items" : [ ] ,
"tax_identifiers" :
[
{ "taxable_entity_type" : "shipper" ,
"identifier_type" : "vat" ,
"issuing_authority" : "string" ,
"value" : "string"
} ] , "external_shipment_id" : "string" ,
"shipment_number" : "string" ,
"ship_date" : "2018-09-23T00:00:00.000Z" ,
"created_at" : "2018-09-23T15:00:00.000Z" ,
"modified_at" : "2018-09-23T15:00:00.000Z" ,
"shipment_status" : "pending" ,
"ship_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string" ,
} , "ship_from" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "warehouse_id" : "se-28529731" ,
"return_to" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA" ,
"address_residential_indicator" : "no" ,
"instructions" : "string"
} , "is_return" : false ,
"confirmation" : "none" ,
"customs" :
{ "contents" : "merchandise" ,
"contents_explanation" : "string" ,
"non_delivery" : "return_to_sender" ,
"terms_of_trade_code" : "exw" ,
"declaration" : "string" ,
"invoice_additional_details" :
{ } , "importer_of_record" :
{ "name" : "John Doe" ,
"phone" : "+1 204-253-9411 ext. 123" ,
"email" : "example@example.com" ,
"company_name" : "The Home Depot" ,
"address_line1" : "1999 Bishop Grandin Blvd." ,
"address_line2" : "Unit 408" ,
"address_line3" : "Building #7" ,
"city_locality" : "Winnipeg" ,
"state_province" : "Manitoba" ,
"postal_code" : "78756-3717" ,
"country_code" : "CA"
} , "customs_items" : [ ]
} , "advanced_options" :
{ "bill_to_account" : null ,
"bill_to_country_code" : "CA" ,
"bill_to_party" : "recipient" ,
"bill_to_postal_code" : null ,
"contains_alcohol" : false ,
"delivered_duty_paid" : false ,
"dry_ice" : false ,
"dry_ice_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "non_machinable" : false ,
"saturday_delivery" : false ,
"use_ups_ground_freight_pricing" : null ,
"freight_class" : 77.5 ,
"custom_field1" : null ,
"custom_field2" : null ,
"custom_field3" : null ,
"origin_type" : "pickup" ,
"additional_handling" : null ,
"shipper_release" : null ,
"collect_on_delivery" :
{ "payment_type" : "any" ,
"payment_amount" :
{ "currency" : "string" ,
"amount" : 0
} } , "third_party_consignee" : false ,
"dangerous_goods" : false ,
"dangerous_goods_contact" :
{ "name" : "string" ,
"phone" : "string"
} , "windsor_framework_details" :
{ } , "license_number" : 514785 ,
"invoice_number" : "IOC56888" ,
"certificate_number" : 784515
} , "insurance_provider" : "none" ,
"tags" : [ ] ,
"order_source_code" : "amazon_ca" ,
"packages" :
[
{ "shipment_package_id" : "se-28529731" ,
"package_id" : "se-28529731" ,
"package_code" : "small_flat_rate_box" ,
"package_name" : "string" ,
"weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "dimensions" :
{ "unit" : "inch" ,
"length" : 0 ,
"width" : 0 ,
"height" : 0
} , "insured_value" :
{ "0" :
{ "currency" : "usd" ,
"amount" : 0
} , "currency" : "string" ,
"amount" : 0
} , "label_messages" :
{ "reference1" : null ,
"reference2" : null ,
"reference3" : null
} , "external_package_id" : "string" ,
"tracking_number" : "1Z932R800392060079" ,
"content_description" : "Hand knitted wool socks" ,
"products" : [ ]
} ] , "total_weight" :
{ "value" : 0 ,
"unit" : "pound"
} , "comparison_rate_type" : "retail"
}
Update Shipment By ID Update a shipment object based on its ID
path Parameters shipment_id required
string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$
Example: se-28529731
Request Body schema: application/json
carrier_idstring [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$
The carrier account that is billed for the shipping charges
service_codestring ^[a-z0-9]+(_[a-z0-9-]+)* ?$
The carrier service used to ship the package, such as fedex_ground
, usps_first_class_mail
, flat_rate_envelope
, etc.
@@ -1360,7 +1360,7 @@
This error will automatically be reported to our engineers.
-
get /v1/shipments/{shipment_id}/rates
https://api.shipengine.com /v1/shipments/{shipment_id}/rates
Response samples Content type application/json
Copy
Expand all Collapse all
{ "rates" :
[
{ "rate_id" : "se-28529731" ,
"rate_type" : "check" ,
"carrier_id" : "se-28529731" ,
"shipping_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "insurance_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "confirmation_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "other_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "requested_comparison_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "tax_amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_details" :
[
{ "rate_detail_type" : "uncategorized" ,
"carrier_description" : "string" ,
"carrier_billing_code" : "string" ,
"carrier_memo" : "string" ,
"amount" :
{ "currency" : "string" ,
"amount" : 0
} , "rate_detail_attributes" :
{ "tax_type" : "vat" ,
"tax_code" : "string" ,
"tax_percentage" : 0
} , "billing_source" : "string"
} ] , "zone" : 6 ,
"package_type" : "package" ,
"delivery_days" : 5 ,
"guaranteed_service" : true ,
"estimated_delivery_date" : "2018-09-23T00:00:00.000Z" ,
"carrier_delivery_days" : "string" ,
"ship_date" : "2024-10-09T14:21:27Z" ,
"negotiated_rate" : true ,
"service_type" : "string" ,
"service_code" : "string" ,
"trackable" : true ,
"carrier_code" : "string" ,
"carrier_nickname" : "string" ,
"carrier_friendly_name" : "string" ,
"validation_status" : "valid" ,
} ] , "invalid_rates" : [ ] ,
"rate_request_id" : "se-28529731" ,
"shipment_id" : "se-28529731" ,
"created_at" : "se-28529731" ,
"status" : "working" ,
"errors" :
[
{ "error_source" : "carrier" ,
"error_type" : "account_status" ,
"error_code" : "auto_fund_not_supported" ,
"message" : "Body of request cannot be null." ,
"carrier_id" : "se-28529731" ,
"carrier_code" : "dhl_express" ,
"field_name" : "shipment.ship_to.phone_number"
} ] }