Create an Amazon Shipping Label
When fulfilling a non-Amazon order, you can use Amazon Shipping just like any other ShipEngine carrier. See our public documentation for more info. No additional fields are required.
When fulfilling an Amazon order, you will need to provide some additional data. Namely, you'll need to specify
order_source_code: "amazon"
, as well as set the external_order_id
and the asin
of each item in the shipment.
Example
Here's an example of how to create an Amazon Shipping label for an Amazon order.
POST /v1/labels
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
POST /v1/labels HTTP/1.1Host: api.shipengine.comAPI-Key: __YOUR_API_KEY_HERE__Content-Type: application/json{"shipment": {"carrier_id": "se-123456","service_code": "amazon_shipping_standard","order_source_code": "amazon","external_order_id": "103-4795772-1364518","items": [{"quantity": 1,"name": "Monopoly","asin": "B00005N5PF","external_order_id" : "114-2825781-8037847","external_order_item_id" : "16902221730370"},{"quantity": 1,"name": "Chromecast","asin": "B015UKRNGS","external_order_id" : "114-2825781-8037847","external_order_item_id" : "16902221730370"}],"ship_date": "2019-04-04T05:00:00.000Z","ship_from": {"name": "Stamps.com","address_line1": "1990 E. Grand Ave.","city_locality": "El Segundo","state_province": "CA","postal_code": "90245-5013","country_code": "US","phone": "1-800-608-2677"},"ship_to": {"name": "Jeff Bezos","address_line1": "701 5th Ave","city_locality": "Seattle","state_province": "WA","postal_code": "98104","country_code": "US","phone": "206-266-1000"},"packages": [{"weight": {"value": 2.5,"unit": "pound"},"dimensions": {"length": 24,"width": 10,"height": 3,"unit": "inch"}}]}}
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
{"label_id": "se-123456","status": "completed","shipment_id": "se-202887313","ship_date": "2019-04-04T05:00:00.000Z","created_at": "2019-04-04T20:20:01.979Z","shipment_cost": {"currency": "USD","amount": 6.86},"insurance_cost": {"currency": "USD","amount": 0.0},"tracking_number": "9405511899560441854156","is_return_label": false,"is_international": false,"batch_id": "","carrier_id": "se-123456","service_code": "amazon_shipping_ground","package_code": "package","voided": false,"label_format": "pdf","label_layout": "4x6","trackable": false,"carrier_code": "amazon_shipping_us","tracking_status": "unknown","label_download": {"href": "https://api.shipengine.com/v1/downloads/aFbxNUVCZ0SDHHp-BmcKjA/testlabel-202887313.pdf"},"form_download": null,"insurance_claim": null,"packages": [{"package_code": "package","weight": {"value": 2.5,"unit": "pound"},"dimensions": {"unit": "inch","length": 24,"width": 10,"height": 3},"insured_value": {"currency": "usd","amount": 0.00},"tracking_number": null,"label_messages": {"reference1": null,"reference2": null,"reference3": null}}],"items": [{"quantity": 1,"name": "Monopoly","asin": "B00005N5PF","order_source_code": "amazon","external_order_id": "103-4795772-1364518"},{"quantity": 1,"name": "Chromecast","asin": "B015UKRNGS","order_source_code": "amazon","external_order_id": "103-4795772-1364518"}]}