Download OpenAPI specification:Download
ShipEngine's easy-to-use REST API lets you manage all of your shipping needs without worrying about the complexities of different carrier APIs and protocols. We handle all the heavy lifting so you can focus on providing a first-class shipping experience for your customers at the best possible prices.
Each of ShipEngine's features can be used by itself or in conjunction with each other to build powerful shipping functionality into your application or service.
If you're new to REST APIs then be sure to read our introduction to REST to understand the basics. Learn how to authenticate yourself to ShipEngine, and then use our sandbox environment to kick the tires and get familiar with our API. If you run into any problems, then be sure to check the error handling guide for tips.
Here are some step-by-step tutorials to get you started:
ShipEngine makes it easy to create shipping labels for any carrier and download them in a variety of file formats. You can even customize labels with your own messages and images.
With ShipEngine you can get the current status of a package or subscribe to real-time tracking updates via webhooks. You can also create custimized tracking pages with your own branding so your customers will always know where their package is.
Make sure you ship as cost-effectively as possible by comparing rates across carriers using the ShipEngine Rates API. Or if you don't know the full shipment details yet, then you can get rate estimates with limited address info.
ShipEngine supports address validation for virtually every country on Earth, including the United States, Canada, Great Britain, Australia, Germany, France, Norway, Spain, Sweden, Israel, Italy, and over 160 others.
To authenticate yourself to ShipEngine, you need to include an API-Key
header in each API call. If you don't include a key when making an API request, or if you use an incorrect or expired key, then ShipEngine will respond with a 401 Unauthorized
error.
Learn more about API keys in our authentication guide.
Security Scheme Type | API Key |
---|---|
Header parameter name: | API-Key |
List all account settings for the ShipEngine account
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "default_label_layout": "4x6"
}
List all account images for the ShipEngine account
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "images": [
- {
- "label_image_id": "img_DtBXupDBxREpHnwEXhTfgK",
- "name": "My logo",
- "is_default": false,
- "image_content_type": "image/png",
- "image_data": "iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAiVJREFUSEu91j3IeVEcB/CvSTIoBrFSikEZMdjsjExeUspgUEp5SUpeshrIgEFJJmWwMZHJQGHDhJSXTPfpnH/8ebzd56HnN93u7ZzP/f1+55x7Ob1ejxEKheByufh0HI9HrFYrcKbTKUMu5HI5BALBx5zNZoPxeAySAGc2mzF8Pp/e+BR0Ash8u93uHyKVSnH54J2Mvs8zn8//I6RO70L3xt8g70CPXvAu8hvoWQUeIj+BXpX4KcIGegWQOV4izyA2AGvkHsQW+BFyCUkkEiwWC9Ybl1W5Ls8ZMoAABCIbmE3cINFoFMFgEEajEeVyGSKRCJ1OB3q9ns5nMpmQTCaxXq9/l8loNEKj0YDX66UACYvFQq9brRYcDgdUKhU9RD/SEwLm83lEIhGUSiX0+33E4/GrU5otRMs1mUyYbDYLu90OhUJBMzhlZbPZ4Pf7odFo4HQ6b1rABqJIvV5nttstLc0pSIn2+z0tTy6XQ6FQoI/a7TZ0Ot0V9gqiiMFgYKrVKm0yieVyCZ/PB6vVSpF0Ok2zJHEqIY/HYw1RxOfzMYlE4jwoEAhAJpPBbDZf9eBwOCCVSsHtdp9f6FJ6egorlUqmVqvRfjSbTXS7XXg8nptP8Svk0RF01ROtVguSUTgchlgsPpeOZBaLxTAcDlEsFpHJZPC9XM8yoshgMGBCoRBdQWTCU7hcLjohWb5kM6rValQqlfMKfLbbb77xf/K38hf/XV9ilOpnLqvnogAAAABJRU5ErkJggg==",
- "created_at": "2018-09-23T15:00:00.000Z",
- "modified_at": "2018-09-23T15:00:00.000Z"
}
], - "total": 2750,
- "page": 1,
- "pages": 4,
- "links": {
}
}
Create an Account Image
name required | string [ 1 .. 50 ] characters A human readable name for the image. |
is_default | boolean Indicates whether this image is set as default. |
image_content_type required | string Enum: "image/png" "image/jpeg" The file type of the image. |
image_data required | string A base64 encoded string representation of the image. |
The requested object creation was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "name": "My logo",
- "is_default": false,
- "image_content_type": "image/png",
- "image_data": "iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAiVJREFUSEu91j3IeVEcB/CvSTIoBrFSikEZMdjsjExeUspgUEp5SUpeshrIgEFJJmWwMZHJQGHDhJSXTPfpnH/8ebzd56HnN93u7ZzP/f1+55x7Ob1ejxEKheByufh0HI9HrFYrcKbTKUMu5HI5BALBx5zNZoPxeAySAGc2mzF8Pp/e+BR0Ash8u93uHyKVSnH54J2Mvs8zn8//I6RO70L3xt8g70CPXvAu8hvoWQUeIj+BXpX4KcIGegWQOV4izyA2AGvkHsQW+BFyCUkkEiwWC9Ybl1W5Ls8ZMoAABCIbmE3cINFoFMFgEEajEeVyGSKRCJ1OB3q9ns5nMpmQTCaxXq9/l8loNEKj0YDX66UACYvFQq9brRYcDgdUKhU9RD/SEwLm83lEIhGUSiX0+33E4/GrU5otRMs1mUyYbDYLu90OhUJBMzhlZbPZ4Pf7odFo4HQ6b1rABqJIvV5nttstLc0pSIn2+z0tTy6XQ6FQoI/a7TZ0Ot0V9gqiiMFgYKrVKm0yieVyCZ/PB6vVSpF0Ok2zJHEqIY/HYw1RxOfzMYlE4jwoEAhAJpPBbDZf9eBwOCCVSsHtdp9f6FJ6egorlUqmVqvRfjSbTXS7XXg8nptP8Svk0RF01ROtVguSUTgchlgsPpeOZBaLxTAcDlEsFpHJZPC9XM8yoshgMGBCoRBdQWTCU7hcLjohWb5kM6rValQqlfMKfLbbb77xf/K38hf/XV9ilOpnLqvnogAAAABJRU5ErkJggg=="
}
{- "label_image_id": "img_DtBXupDBxREpHnwEXhTfgK",
- "name": "My logo",
- "is_default": false,
- "image_content_type": "image/png",
- "image_data": "iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAiVJREFUSEu91j3IeVEcB/CvSTIoBrFSikEZMdjsjExeUspgUEp5SUpeshrIgEFJJmWwMZHJQGHDhJSXTPfpnH/8ebzd56HnN93u7ZzP/f1+55x7Ob1ejxEKheByufh0HI9HrFYrcKbTKUMu5HI5BALBx5zNZoPxeAySAGc2mzF8Pp/e+BR0Ash8u93uHyKVSnH54J2Mvs8zn8//I6RO70L3xt8g70CPXvAu8hvoWQUeIj+BXpX4KcIGegWQOV4izyA2AGvkHsQW+BFyCUkkEiwWC9Ybl1W5Ls8ZMoAABCIbmE3cINFoFMFgEEajEeVyGSKRCJ1OB3q9ns5nMpmQTCaxXq9/l8loNEKj0YDX66UACYvFQq9brRYcDgdUKhU9RD/SEwLm83lEIhGUSiX0+33E4/GrU5otRMs1mUyYbDYLu90OhUJBMzhlZbPZ4Pf7odFo4HQ6b1rABqJIvV5nttstLc0pSIn2+z0tTy6XQ6FQoI/a7TZ0Ot0V9gqiiMFgYKrVKm0yieVyCZ/PB6vVSpF0Ok2zJHEqIY/HYw1RxOfzMYlE4jwoEAhAJpPBbDZf9eBwOCCVSsHtdp9f6FJ6egorlUqmVqvRfjSbTXS7XXg8nptP8Svk0RF01ROtVguSUTgchlgsPpeOZBaLxTAcDlEsFpHJZPC9XM8yoshgMGBCoRBdQWTCU7hcLjohWb5kM6rValQqlfMKfLbbb77xf/K38hf/XV9ilOpnLqvnogAAAABJRU5ErkJggg==",
- "created_at": "2018-09-23T15:00:00.000Z",
- "modified_at": "2018-09-23T15:00:00.000Z"
}
Retrieve information for an account image.
label_image_id required | string (image_id) >= 4 characters Example: img_DtBXupDBxREpHnwEXhTfgK Label Image Id |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "label_image_id": "img_DtBXupDBxREpHnwEXhTfgK",
- "name": "My logo",
- "is_default": false,
- "image_content_type": "image/png",
- "image_data": "iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAiVJREFUSEu91j3IeVEcB/CvSTIoBrFSikEZMdjsjExeUspgUEp5SUpeshrIgEFJJmWwMZHJQGHDhJSXTPfpnH/8ebzd56HnN93u7ZzP/f1+55x7Ob1ejxEKheByufh0HI9HrFYrcKbTKUMu5HI5BALBx5zNZoPxeAySAGc2mzF8Pp/e+BR0Ash8u93uHyKVSnH54J2Mvs8zn8//I6RO70L3xt8g70CPXvAu8hvoWQUeIj+BXpX4KcIGegWQOV4izyA2AGvkHsQW+BFyCUkkEiwWC9Ybl1W5Ls8ZMoAABCIbmE3cINFoFMFgEEajEeVyGSKRCJ1OB3q9ns5nMpmQTCaxXq9/l8loNEKj0YDX66UACYvFQq9brRYcDgdUKhU9RD/SEwLm83lEIhGUSiX0+33E4/GrU5otRMs1mUyYbDYLu90OhUJBMzhlZbPZ4Pf7odFo4HQ6b1rABqJIvV5nttstLc0pSIn2+z0tTy6XQ6FQoI/a7TZ0Ot0V9gqiiMFgYKrVKm0yieVyCZ/PB6vVSpF0Ok2zJHEqIY/HYw1RxOfzMYlE4jwoEAhAJpPBbDZf9eBwOCCVSsHtdp9f6FJ6egorlUqmVqvRfjSbTXS7XXg8nptP8Svk0RF01ROtVguSUTgchlgsPpeOZBaLxTAcDlEsFpHJZPC9XM8yoshgMGBCoRBdQWTCU7hcLjohWb5kM6rValQqlfMKfLbbb77xf/K38hf/XV9ilOpnLqvnogAAAABJRU5ErkJggg==",
- "created_at": "2018-09-23T15:00:00.000Z",
- "modified_at": "2018-09-23T15:00:00.000Z"
}
Update information for an account image.
label_image_id required | string (image_id) >= 4 characters Example: img_DtBXupDBxREpHnwEXhTfgK Label Image Id |
name | string [ 1 .. 50 ] characters A human readable name for the image. |
is_default required | boolean Indicates whether this image is set as default. |
image_content_type | string Enum: "image/png" "image/jpeg" The file type of the image. |
image_data | string A base64 encoded string representation of the image. |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "name": "My logo",
- "is_default": false,
- "image_content_type": "image/png",
- "image_data": "iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAAAXNSR0IArs4c6QAAAiVJREFUSEu91j3IeVEcB/CvSTIoBrFSikEZMdjsjExeUspgUEp5SUpeshrIgEFJJmWwMZHJQGHDhJSXTPfpnH/8ebzd56HnN93u7ZzP/f1+55x7Ob1ejxEKheByufh0HI9HrFYrcKbTKUMu5HI5BALBx5zNZoPxeAySAGc2mzF8Pp/e+BR0Ash8u93uHyKVSnH54J2Mvs8zn8//I6RO70L3xt8g70CPXvAu8hvoWQUeIj+BXpX4KcIGegWQOV4izyA2AGvkHsQW+BFyCUkkEiwWC9Ybl1W5Ls8ZMoAABCIbmE3cINFoFMFgEEajEeVyGSKRCJ1OB3q9ns5nMpmQTCaxXq9/l8loNEKj0YDX66UACYvFQq9brRYcDgdUKhU9RD/SEwLm83lEIhGUSiX0+33E4/GrU5otRMs1mUyYbDYLu90OhUJBMzhlZbPZ4Pf7odFo4HQ6b1rABqJIvV5nttstLc0pSIn2+z0tTy6XQ6FQoI/a7TZ0Ot0V9gqiiMFgYKrVKm0yieVyCZ/PB6vVSpF0Ok2zJHEqIY/HYw1RxOfzMYlE4jwoEAhAJpPBbDZf9eBwOCCVSsHtdp9f6FJ6egorlUqmVqvRfjSbTXS7XXg8nptP8Svk0RF01ROtVguSUTgchlgsPpeOZBaLxTAcDlEsFpHJZPC9XM8yoshgMGBCoRBdQWTCU7hcLjohWb5kM6rValQqlfMKfLbbb77xf/K38hf/XV9ilOpnLqvnogAAAABJRU5ErkJggg=="
}
Delete Account Image By Id
label_image_id required | string (image_id) >= 4 characters Example: img_DtBXupDBxREpHnwEXhTfgK Label Image Id |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
No matter your shipping volume, failed deliveries and address change surcharges cut into your bottom line and damage perception with customers. Our address validation services ensure your packages make it to the right place the first time. Learn how to leverage our address validation services here.
ShipEngine supports address validation for virtually every country on Earth, including the United States, Canada, Great Britain, Australia, Germany, France, Norway, Spain, Sweden, Israel, Italy, and over 160 others.
The address-recognition API makes it easy for you to extract address data from unstructured text, including the recipient name, line 1, line 2, city, postal code, and more.
Data often enters your system as unstructured text (for example: emails, SMS messages, support tickets, or other documents). ShipEngine's address-recognition API helps you extract meaningful, structured data from this unstructured text. The parsed address data is returned in the same structure that's used for other ShipEngine APIs, such as address validation, rate quotes, and shipping labels.
Note: Address recognition is currently supported for the United States, Canada, Australia, New Zealand, the United Kingdom, and Ireland.
The only required field is text
, which is the text to be parsed. You can optionally also provide an address
containing already-known values. For example, you may already know the recipient's name, city, and country, and only want to parse the street address into separate lines.
text required | string non-empty The unstructured text that contains address-related entities |
address | object You can optionally provide any already-known address values. For example, you may already know the recipient's name, city, and country, and only want to parse the street address into separate lines. |
Returns the parsed address, as well as a confidence score and a list of all the entities that were recognized in the text.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
This is the simplest way to call the address-recognition API. Just pass the text to be parsed and nothing else.
{- "text": "Margie McMiller at 3800 North Lamar suite 200 in austin, tx. The zip code there is 78652."
}
This response shows that the address-recognition API was able to recognize all the address entities in the text. Notice that the country_code
is not populated and the address_residential_indicator
is "unknown", since neither of these fields was included in the text.
{- "score": 0.9122137426845613,
- "address": {
- "name": "Margie McMiller",
- "address_line1": "3800 North Lamar",
- "address_line2": "Suite 200",
- "city_locality": "Austin",
- "state_province": "TX",
- "postal_code": 78652,
- "address_residential_indicator": "unknown"
}, - "entities": [
- {
- "type": "person",
- "score": 0.9519646137063122,
- "text": "Margie McMiller",
- "start_index": 0,
- "end_index": 14,
- "result": {
- "value": "Margie McMiller"
}
}, - {
- "type": "address_line",
- "score": 0.9805313966503588,
- "text": "3800 North Lamar",
- "start_index": 19,
- "end_index": 34,
- "result": {
- "line": 1,
- "value": "3800 North Lamar"
}
}, - {
- "type": "number",
- "score": 0.9805313966503588,
- "text": 3800,
- "start_index": 19,
- "end_index": 22,
- "result": {
- "type": "cardinal",
- "value": 3800
}
}, - {
- "type": "address_line",
- "score": 1,
- "text": "suite 200",
- "start_index": 36,
- "end_index": 44,
- "result": {
- "line": 2,
- "value": "Suite 200"
}
}, - {
- "type": "number",
- "score": 0.9805313966503588,
- "text": 200,
- "start_index": 42,
- "end_index": 44,
- "result": {
- "type": "cardinal",
- "value": 200
}
}, - {
- "type": "city_locality",
- "score": 0.9805313966503588,
- "text": "austin",
- "start_index": 49,
- "end_index": 54,
- "result": {
- "value": "Austin"
}
}, - {
- "type": "state_province",
- "score": 0.6082904353940255,
- "text": "tx",
- "start_index": 57,
- "end_index": 58,
- "result": {
- "name": "Texas",
- "value": "TX"
}
}, - {
- "type": "postal_code",
- "score": 0.9519646137063122,
- "text": 78652,
- "start_index": 84,
- "end_index": 88,
- "result": {
- "value": 78652
}
}
]
}
Address validation ensures accurate addresses and can lead to reduced shipping costs by preventing address correction surcharges. ShipEngine cross references multiple databases to validate addresses and identify potential deliverability issues.
name | string non-empty The name of a contact person at this address. This field may be set instead of - or in addition to - the |
phone | string non-empty The phone number of a contact person at this address. The format of this phone number varies depending on the country. |
string Nullable Email for the address owner. | |
company_name | string non-empty Nullable If this is a business address, then the company name should be specified here. |
address_line1 required | string non-empty The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines. |
address_line2 | string non-empty Nullable The second line of the street address. For some addresses, this line may not be needed. |
address_line3 | string non-empty Nullable The third line of the street address. For some addresses, this line may not be needed. |
city_locality required | string non-empty The name of the city or locality |
state_province required | string non-empty The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation. |
postal_code | string non-empty postal code |
country_code required | string 2 characters The two-letter ISO 3166-1 country code |
address_residential_indicator | string Default: "unknown" Enum: "unknown" "yes" "no" Indicates whether this is a residential address. |
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
A call that returns a status of verified
.
[- {
- "name": "Mickey and Minnie Mouse",
- "phone": "714-781-4565",
- "company_name": "The Walt Disney Company",
- "address_line1": "500 South Buena Vista Street",
- "city_locality": "Burbank",
- "state_province": "CA",
- "postal_code": 91521,
- "country_code": "US"
}
]
A response for a verified
status call.
[- {
- "status": "verified",
- "original_address": {
- "name": "Mickey and Minnie Mouse",
- "phone": "714-781-4565",
- "company_name": "The Walt Disney Company",
- "address_line1": "500 South Buena Vista Street",
- "address_line2": null,
- "address_line3": null,
- "city_locality": "Burbank",
- "state_province": "CA",
- "postal_code": 91521,
- "country_code": "US",
- "address_residential_indicator": "unknown"
}, - "matched_address": {
- "name": "MICKEY AND MINNIE MOUSE",
- "phone": "714-781-4565",
- "company_name": "THE WALT DISNEY COMPANY",
- "address_line1": "500 S BUENA VISTA ST",
- "address_line2": null,
- "address_line3": null,
- "city_locality": "BURBANK",
- "state_province": "CA",
- "postal_code": "91521-0007",
- "country_code": "US",
- "address_residential_indicator": "no"
}, - "messages": [ ]
}
]
List Batches associated with your Shipengine account
status | string (batch_status) Enum: "open" "queued" "processing" "completed" "completed_with_errors" "archived" "notifying" "invalid" The possible batch status values |
page | integer <int32> >= 1 Default: 1 Example: page=2 Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. |
page_size | integer <int32> >= 1 Default: 25 Example: page_size=50 The number of results to return per response. |
sort_dir | string Default: "desc" Enum: "asc" "desc" Controls the sort order of the query. |
batch_number | string Batch Number |
sort_by | string (batches_sort_by) Enum: "ship_date" "processed_at" "created_at" The possible batches sort by values |
The request was a success.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "batches": [
- {
- "label_layout": "4x6",
- "label_format": "pdf",
- "batch_id": "se-28529731",
- "batch_number": "string",
- "external_batch_id": "string",
- "batch_notes": "Batch for morning shipment",
- "created_at": "2018-09-23T15:00:00.000Z",
- "processed_at": "2018-09-23T15:00:00.000Z",
- "errors": 2,
- "process_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"
}
], - "warnings": 1,
- "completed": 1,
- "forms": 3,
- "count": 2,
- "batch_shipments_url": {
- "type": "string"
}, - "label_download": {
}, - "paperless_download": {
- "instructions": null,
- "handoff_code": null
}, - "status": "open"
}
], - "total": 10,
- "page": 1,
- "pages": 10,
- "links": {
}
}
Create a Batch
external_batch_id | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ A string that uniquely identifies the external batch |
batch_notes | string non-empty Add custom messages for a particular batch |
shipment_ids | Array of strings Array of shipment IDs used in the batch |
rate_ids | Array of strings Array of rate IDs used in the batch |
The requested object creation was a success.
The request was a partial success. It contains results, as well as processing errors.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "external_batch_id": "se-28529731",
- "batch_notes": "This is my batch",
- "shipment_ids": [
- "se-28529731"
], - "rate_ids": [
- "se-28529731"
]
}
{- "label_layout": "4x6",
- "label_format": "pdf",
- "batch_id": "se-28529731",
- "batch_number": "string",
- "external_batch_id": "string",
- "batch_notes": "Batch for morning shipment",
- "created_at": "2018-09-23T15:00:00.000Z",
- "processed_at": "2018-09-23T15:00:00.000Z",
- "errors": 2,
- "process_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"
}
], - "warnings": 1,
- "completed": 1,
- "forms": 3,
- "count": 2,
- "batch_shipments_url": {
- "type": "string"
}, - "label_download": {
}, - "paperless_download": {
- "instructions": null,
- "handoff_code": null
}, - "status": "open"
}
Get Batch By External ID
external_batch_id required | string Example: 13553d7f-3c87-4771-bae1-c49bacef11cb |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "label_layout": "4x6",
- "label_format": "pdf",
- "batch_id": "se-28529731",
- "batch_number": "string",
- "external_batch_id": "string",
- "batch_notes": "Batch for morning shipment",
- "created_at": "2018-09-23T15:00:00.000Z",
- "processed_at": "2018-09-23T15:00:00.000Z",
- "errors": 2,
- "process_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"
}
], - "warnings": 1,
- "completed": 1,
- "forms": 3,
- "count": 2,
- "batch_shipments_url": {
- "type": "string"
}, - "label_download": {
}, - "paperless_download": {
- "instructions": null,
- "handoff_code": null
}, - "status": "open"
}
Delete Batch By Id
batch_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Batch ID |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Get Batch By ID
batch_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Batch ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "label_layout": "4x6",
- "label_format": "pdf",
- "batch_id": "se-28529731",
- "batch_number": "string",
- "external_batch_id": "string",
- "batch_notes": "Batch for morning shipment",
- "created_at": "2018-09-23T15:00:00.000Z",
- "processed_at": "2018-09-23T15:00:00.000Z",
- "errors": 2,
- "process_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"
}
], - "warnings": 1,
- "completed": 1,
- "forms": 3,
- "count": 2,
- "batch_shipments_url": {
- "type": "string"
}, - "label_download": {
}, - "paperless_download": {
- "instructions": null,
- "handoff_code": null
}, - "status": "open"
}
Update Batch By Id
batch_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Batch ID |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Add a Shipment or Rate to a Batch
batch_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Batch ID |
shipment_ids | Array of strings The Shipment Ids to be modified on the batch |
rate_ids | Array of strings Array of Rate IDs to be modifed on the batch |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "shipment_ids": [
- "se-28529731"
], - "rate_ids": [
- "se-28529731"
]
}
Error handling in batches are handled differently than in a single synchronous request. You must retrieve the status of your batch by getting a batch and getting an overview of the statuses or you can list errors directly here below to get detailed information about the errors.
batch_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Batch ID |
page | integer <int32> >= 1 Default: 1 Example: page=2 Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. |
pagesize | integer <int32> >= 1 |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "errors": [ ],
- "links": {
}
}
Process Batch ID Labels
batch_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Batch ID |
ship_date | string <date-time> ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]\d{2}:\d{2})$ The Ship date the batch is being processed for | ||||||||
label_layout | string Default: "4x6" Enum: "4x6" "letter" "A4" "A6" The available layouts (sizes) in which shipping labels can be downloaded. The label format determines which sizes are supported. | ||||||||
label_format | string Default: "pdf" Enum: "pdf" "png" "zpl" The possible file formats in which shipping labels can be downloaded. We recommend
| ||||||||
display_scheme | string Default: "label" Enum: "label" "qr_code" "label_and_qr_code" "paperless" "label_and_paperless" The display format that the label should be shown in. |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "ship_date": "2018-09-23T15:00:00.000Z",
- "label_layout": "4x6",
- "label_format": "pdf",
- "display_scheme": "label"
}
Remove a shipment or rate from a batch
batch_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Batch ID |
shipment_ids | Array of strings The Shipment Ids to be modified on the batch |
rate_ids | Array of strings Array of Rate IDs to be modifed on the batch |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "shipment_ids": [
- "se-28529731"
], - "rate_ids": [
- "se-28529731"
]
}
A carrier account is a connection to a shipping carrier that allows you to create labels, track packages, and more. You can connect your own carrier accounts to ShipEngine, or use one of our built-in carrier accounts. Learn more about carrier accounts here.
Connect a carrier account
carrier_name required | string (carrier_name) Enum: "access_worldwide" "amazon_buy_shipping" "amazon_shipping_uk" "apc" "asendia" "australia_post" "canada_post" "dhl_ecommerce" "dhl_express" "dhl_express_au" "dhl_express_ca" "dhl_express_uk" "dpd" "endicia" "fedex" "fedex_uk" "firstmile" "imex" "newgistics" "ontrac" "purolator_canada" "royal_mail" "rr_donnelley" "seko" "sendle" "stamps_com" "ups" "lasership" Example: dhl_express The carrier name, such as |
nickname required | string non-empty The nickname associated with the carrier connection |
username required | string non-empty Access Worldwide Username |
password required | string non-empty Access Worldwide Password |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "nickname": "Stamps.com",
- "username": "string",
- "password": "string"
}
{- "carrier_id": "se-28529731"
}
Disconnect a carrier
carrier_name required | string (carrier_name) Enum: "access_worldwide" "amazon_buy_shipping" "amazon_shipping_uk" "apc" "asendia" "australia_post" "canada_post" "dhl_ecommerce" "dhl_express" "dhl_express_au" "dhl_express_ca" "dhl_express_uk" "dpd" "endicia" "fedex" "fedex_uk" "firstmile" "imex" "newgistics" "ontrac" "purolator_canada" "royal_mail" "rr_donnelley" "seko" "sendle" "stamps_com" "ups" "lasership" Example: dhl_express The carrier name, such as |
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
The request was successful.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Get carrier settings
carrier_name required | string (carrier_name_with_settings) Enum: "dhl_express" "fedex" "newgistics" "ups" Example: dhl_express The carrier name, such as |
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
The request was a success.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "nickname": "string",
- "should_hide_account_number_on_archive_doc": true,
- "is_primary_account": true
}
Update carrier settings
carrier_name required | string (carrier_name_with_settings) Enum: "dhl_express" "fedex" "newgistics" "ups" Example: dhl_express The carrier name, such as |
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
nickname | string non-empty Account nickname |
should_hide_account_number_on_archive_doc | boolean Indicates if the account number should be hidden on the archive documentation |
is_primary_account | boolean Indicates if this is primary account |
The request was successful.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "nickname": "string",
- "should_hide_account_number_on_archive_doc": true,
- "is_primary_account": true
}
List all carriers that have been added to this account
The request was a success.
The request was a partial success. It contains results, as well as errors.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "carriers": [
- {
- "carrier_id": "se-28529731",
- "carrier_code": "dhl_express",
- "account_number": "account_570827",
- "requires_funded_amount": true,
- "balance": 3799.52,
- "nickname": "ShipEngine Account - Stamps.com",
- "friendly_name": "Stamps.com",
- "funding_source_id": "se-28529731",
- "primary": true,
- "has_multi_package_supporting_services": true,
- "supports_label_messages": true,
- "disabled_by_billing_plan": true,
- "services": [
- {
- "carrier_id": "se-28529731",
- "carrier_code": "se-28529731",
- "service_code": "usps_media_mail",
- "name": "USPS First Class Mail",
- "domestic": true,
- "international": true,
- "is_multi_package_supported": true
}
], - "packages": [
- {
- "package_id": "se-28529731",
- "package_code": "small_flat_rate_box",
- "name": "laptop_box",
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "description": "Packaging for laptops"
}
], - "options": [
- {
- "name": "contains_alcohol",
- "default_value": false,
- "description": "string"
}
]
}
], - "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009",
- "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"
}
]
}
Retrive carrier info by ID
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "carrier_id": "se-28529731",
- "carrier_code": "dhl_express",
- "account_number": "account_570827",
- "requires_funded_amount": true,
- "balance": 3799.52,
- "nickname": "ShipEngine Account - Stamps.com",
- "friendly_name": "Stamps.com",
- "funding_source_id": "se-28529731",
- "primary": true,
- "has_multi_package_supporting_services": true,
- "supports_label_messages": true,
- "disabled_by_billing_plan": true,
- "services": [
- {
- "carrier_id": "se-28529731",
- "carrier_code": "se-28529731",
- "service_code": "usps_media_mail",
- "name": "USPS First Class Mail",
- "domestic": true,
- "international": true,
- "is_multi_package_supported": true
}
], - "packages": [
- {
- "package_id": "se-28529731",
- "package_code": "small_flat_rate_box",
- "name": "laptop_box",
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "description": "Packaging for laptops"
}
], - "options": [
- {
- "name": "contains_alcohol",
- "default_value": false,
- "description": "string"
}
]
}
Disconnect a Carrier of the given ID from the account
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Add Funds To A Carrier
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
currency required | string The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html |
amount required | number >= 0 The monetary amount, in the specified currency. |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "currency": "string",
- "amount": 0
}
{- "balance": {
- "currency": "string",
- "amount": 0
}
}
Get a list of the options available for the carrier
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "options": [
- {
- "name": "contains_alcohol",
- "default_value": false,
- "description": "string"
}
]
}
List the package types associated with the carrier
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "packages": [
- {
- "package_id": "se-28529731",
- "package_code": "small_flat_rate_box",
- "name": "laptop_box",
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "description": "Packaging for laptops"
}
]
}
List the services associated with the carrier ID
carrier_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Carrier ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "services": [
- {
- "carrier_id": "se-28529731",
- "carrier_code": "se-28529731",
- "service_code": "usps_media_mail",
- "name": "USPS First Class Mail",
- "domestic": true,
- "international": true,
- "is_multi_package_supported": true
}
]
}
Get File
subdir required | string |
filename required | string |
dir required | string |
download | string |
rotation | integer <int32> |
The request was a success
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009",
- "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"
}
]
}
Disconnect a Shipsurance Account
The request was a success
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{ }
Connect a Shipsurance Account
email required | string <email> non-empty An email address. |
policy_id required | string non-empty |
The request was a success
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "email": "john.doe@example.com",
- "policy_id": "string"
}
{ }
You may need to auto fund your account from time to time. For example, if you don't normally ship items over $100, and may want to add funds to insurance rather than keeping the account funded.
currency required | string The currencies that are supported by ShipEngine are the ones that specified by ISO 4217: https://www.iso.org/iso-4217-currency-codes.html |
amount required | number >= 0 The monetary amount, in the specified currency. |
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "currency": "string",
- "amount": 0
}
{- "currency": "string",
- "amount": 0
}
Retrieve the balance of your Shipsurance account.
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "currency": "string",
- "amount": 0
}
Print shipping labels for any of the top global carriers in minutes—instead of weeks. Simply connect your existing carrier accounts in the API dashboard, and then begin creating labels.
This endpoint returns a list of labels that you've created. You can optionally filter the results as well as control their sort order and the number of results returned at a time.
By default, all labels are returned, 25 at a time, starting with the most recently created ones. You can combine multiple filter options to narrow-down the results. For example, if you only want to get your UPS labels for your east coast warehouse you could query by both warehouse_id
and carrier_id
label_status | string (label_status) Enum: "processing" "completed" "error" "voided" Only return labels that are currently in the specified status |
service_code | string (service_code) ^[a-z0-9]+(_[a-z0-9-]+)* ?$ Example: service_code=usps_first_class_mail Only return labels for a specific carrier service |
carrier_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: carrier_id=se-28529731 Only return labels for a specific carrier account |
tracking_number | string non-empty Example: tracking_number=9405511899223197428490 Only return labels with a specific tracking number |
batch_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: batch_id=se-28529731 Only return labels that were created in a specific batch |
rate_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: rate_id=se-28529731 Rate ID |
shipment_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: shipment_id=se-28529731 Shipment ID |
warehouse_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: warehouse_id=se-28529731 Only return labels that originate from a specific warehouse |
created_at_start | string <date-time> Example: created_at_start=2019-03-12T19:24:13.657Z Only return labels that were created on or after a specific date/time |
created_at_end | string <date-time> Example: created_at_end=2019-03-12T19:24:13.657Z Only return labels that were created on or before a specific date/time |
page | integer <int32> >= 1 Default: 1 Example: page=2 Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. |
page_size | integer <int32> >= 1 Default: 25 Example: page_size=50 The number of results to return per response. |
sort_dir | string Default: "desc" Enum: "asc" "desc" Controls the sort order of the query. |
sort_by | string Default: "created_at" Enum: "modified_at" "created_at" Controls which field the query is sorted by. |
The response includes a labels
array containing a page of results (as determined by the page_size
query parameter). It also includes other useful information, such as the total number of labels that match the query criteria, the number of pages of results, and the URLs of the first, last, next, and previous pages of results.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "labels": [
- {
- "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",
- "label_download": {
}, - "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",
- "label_download": {
}, - "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": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
]
}
], - "alternative_identifiers": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
],
}
], - "total": 2750,
- "page": 1,
- "pages": 4,
- "links": {
}
}
Purchase and print a label for shipment
ship_to_service_point_id | string Nullable A unique identifier for a carrier service point where the shipment will be delivered by the carrier. This will take precedence over a shipment's ship to address. | ||||||
ship_from_service_point_id | string Nullable A unique identifier for a carrier drop off point where a merchant plans to deliver packages. This will take precedence over a shipment's ship from address. | ||||||
shipment required | object The shipment information used to generate the label | ||||||
is_return_label | boolean Indicates whether this is a return label. You may also want to set the | ||||||
rma_number | string Nullable An optional Return Merchandise Authorization number. This field is useful for return labels. You can set it to any string value. | ||||||
charge_event | string Enum: "carrier_default" "on_creation" "on_carrier_acceptance" The label charge event. | ||||||
outbound_label_id | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ The | ||||||
test_label | boolean Deprecated Default: false Indicate if this label is being used only for testing purposes. If true, then no charge will be added to your account. | ||||||
validate_address | string Default: "validate_and_clean" Enum: "no_validation" "validate_only" "validate_and_clean" The possible validate address values | ||||||
label_download_type | string Default: "url" Enum: "url" "inline" There are two different ways to download a label:
| ||||||
label_format | string Default: "pdf" Enum: "pdf" "png" "zpl" The file format that you want the label to be in. We recommend | ||||||
display_scheme | string Default: "label" Enum: "label" "qr_code" "label_and_qr_code" "paperless" "label_and_paperless" The display format that the label should be shown in. | ||||||
label_layout | string Default: "4x6" Enum: "4x6" "letter" "A4" "A6" The layout (size) that you want the label to be in. The | ||||||
label_image_id | string >= 4 characters Nullable The label image resource that was used to create a custom label image. |
The requested object creation was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "ship_to_service_point_id": "614940",
- "ship_from_service_point_id": "614940",
- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "license_number": 514785,
- "invoice_number": "IOC56888",
- "certificate_number": 784515
}, - "insurance_provider": "none",
- "order_source_code": "amazon_ca",
- "packages": [
- {
- "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",
- "content_description": "Hand knitted wool socks",
- "products": [ ]
}
], - "comparison_rate_type": "retail"
}, - "is_return_label": true,
- "rma_number": "string",
- "charge_event": "carrier_default",
- "outbound_label_id": "se-28529731",
- "test_label": false,
- "validate_address": "no_validation",
- "label_download_type": "url",
- "label_format": "pdf",
- "display_scheme": "label",
- "label_layout": "4x6",
- "label_image_id": "img_DtBXupDBxREpHnwEXhTfgK"
}
{- "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",
- "label_download": {
}, - "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",
- "label_download": {
}, - "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": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
]
}
], - "alternative_identifiers": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
],
}
Find a label by using the external shipment id that was used during label creation
external_shipment_id required | string Example: 0bcb569d-1727-4ff9-ab49-b2fec0cee5ae |
label_download_type | string (label_download_type) Enum: "url" "inline" Example: label_download_type=url There are two different ways to download a label:
|
The requested object creation was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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",
- "label_download": {
}, - "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",
- "label_download": {
}, - "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": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
]
}
], - "alternative_identifiers": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
],
}
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.
rate_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Rate ID |
custom_field1 | string Optional - Value will be saved in the shipment's advanced_options > custom_field1 | ||||||||
custom_field2 | string Optional - Value will be saved in the shipment's advanced_options > custom_field2 | ||||||||
custom_field3 | string Optional - Value will be saved in the shipment's advanced_options > custom_field3 | ||||||||
validate_address | string Enum: "no_validation" "validate_only" "validate_and_clean" The possible validate address values | ||||||||
label_layout | string Default: "4x6" Enum: "4x6" "letter" "A4" "A6" The available layouts (sizes) in which shipping labels can be downloaded. The label format determines which sizes are supported. | ||||||||
label_format | string Default: "pdf" Enum: "pdf" "png" "zpl" The possible file formats in which shipping labels can be downloaded. We recommend
| ||||||||
label_download_type | string Enum: "url" "inline" There are two different ways to download a label:
| ||||||||
display_scheme | string Default: "label" Enum: "label" "qr_code" "label_and_qr_code" "paperless" "label_and_paperless" The display format that the label should be shown in. |
The requested object creation was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "custom_field1": "string",
- "custom_field2": "string",
- "custom_field3": "string",
- "validate_address": "no_validation",
- "label_layout": "4x6",
- "label_format": "pdf",
- "label_download_type": "url",
- "display_scheme": "label"
}
{- "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",
- "label_download": {
}, - "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",
- "label_download": {
}, - "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": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
]
}
], - "alternative_identifiers": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
],
}
Purchase a label using a shipment ID that has already been created with the desired address and package info.
shipment_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Shipment ID |
validate_address | string Enum: "no_validation" "validate_only" "validate_and_clean" The possible validate address values | ||||||||
label_layout | string Default: "4x6" Enum: "4x6" "letter" "A4" "A6" The available layouts (sizes) in which shipping labels can be downloaded. The label format determines which sizes are supported. | ||||||||
label_format | string Default: "pdf" Enum: "pdf" "png" "zpl" The possible file formats in which shipping labels can be downloaded. We recommend
| ||||||||
label_download_type | string Enum: "url" "inline" There are two different ways to download a label:
| ||||||||
display_scheme | string Default: "label" Enum: "label" "qr_code" "label_and_qr_code" "paperless" "label_and_paperless" The display format that the label should be shown in. |
The requested object creation was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "validate_address": "no_validation",
- "label_layout": "4x6",
- "label_format": "pdf",
- "label_download_type": "url",
- "display_scheme": "label"
}
{- "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",
- "label_download": {
}, - "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",
- "label_download": {
}, - "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": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
]
}
], - "alternative_identifiers": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
],
}
Retrieve information for individual labels.
label_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Label ID |
label_download_type | string (label_download_type) Enum: "url" "inline" Example: label_download_type=url There are two different ways to download a label:
|
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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",
- "label_download": {
}, - "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",
- "label_download": {
}, - "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": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
]
}
], - "alternative_identifiers": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
],
}
Create a return label
label_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Label ID |
charge_event | string Enum: "carrier_default" "on_creation" "on_carrier_acceptance" The label charge event. | ||||||
label_layout | string Default: "4x6" Enum: "4x6" "letter" "A4" "A6" The layout (size) that you want the label to be in. The | ||||||
label_format | string Default: "pdf" Enum: "pdf" "png" "zpl" The file format that you want the label to be in. We recommend | ||||||
label_download_type | string Default: "url" Enum: "url" "inline" There are two different ways to download a label:
| ||||||
display_scheme | string Default: "label" Enum: "label" "qr_code" "label_and_qr_code" "paperless" "label_and_paperless" The display format that the label should be shown in. | ||||||
label_image_id | string >= 4 characters Nullable The label image resource that was used to create a custom label image. |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "charge_event": "carrier_default",
- "label_layout": "4x6",
- "label_format": "pdf",
- "label_download_type": "url",
- "display_scheme": "label",
- "label_image_id": "img_DtBXupDBxREpHnwEXhTfgK"
}
{- "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",
- "label_download": {
}, - "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",
- "label_download": {
}, - "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": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
]
}
], - "alternative_identifiers": [
- {
- "type": "last_mile_tracking_number",
- "value": "12345678912345678912"
}
],
}
Retrieve the label's tracking information
label_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Label ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "tracking_number": "1Z932R800392060079",
- "status_code": "DE",
- "status_detail_code": "DELIVERED",
- "carrier_code": "dhl_express",
- "carrier_id": 0,
- "status_description": "Delivered",
- "status_detail_description": "Your shipment has been delivered.",
- "carrier_status_code": 1,
- "carrier_detail_code": "OT",
- "carrier_status_description": "Your item was delivered in or at the mailbox at 9:10 am on March",
- "ship_date": "2018-09-23T15:00:00.000Z",
- "estimated_delivery_date": "2018-09-23T15:00:00.000Z",
- "actual_delivery_date": "2018-09-23T15:00:00.000Z",
- "exception_description": "string",
- "events": [
- {
- "occurred_at": "2018-09-23T15:00:00.000Z",
- "carrier_occurred_at": "2018-09-23T15:00:00.000Z",
- "description": "Delivered, In/At Mailbox",
- "city_locality": "AUSTIN",
- "state_province": "TX",
- "postal_code": 78756,
- "country_code": "CA",
- "company_name": "Stamps.com",
- "signer": "string",
- "event_code": "string",
- "carrier_detail_code": "OT",
- "status_code": "IT",
- "status_detail_code": "IN_TRANSIT",
- "status_description": "In Transit",
- "status_detail_description": "Your shipment is on its way between depots.",
- "carrier_status_code": 1,
- "carrier_status_description": "Your item was delivered in or at the mailbox at 9:10 am on March",
- "latitude": -90,
- "longitude": -180
}
]
}
Void a label by ID to get a refund.
label_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Label ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "approved": false,
- "message": "Unable to delete FedEx shipment. Unable to retrieve record from database.",
- "reason_code": "label_not_found_within_void_period"
}
Similar to querying shipments, we allow you to query manifests since there will likely be a large number over a long period of time.
warehouse_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: warehouse_id=se-28529731 Warehouse ID |
ship_date_start | string <date-time> Example: ship_date_start=2018-09-23T15:00:00.000Z ship date start range |
ship_date_end | string <date-time> Example: ship_date_end=2018-09-23T15:00:00.000Z ship date end range |
created_at_start | string <date-time> Example: created_at_start=2019-03-12T19:24:13.657Z Used to create a filter for when a resource was created (ex. A shipment that was created after a certain time) |
created_at_end | string <date-time> Example: created_at_end=2019-03-12T19:24:13.657Z Used to create a filter for when a resource was created, (ex. A shipment that was created before a certain time) |
carrier_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: carrier_id=se-28529731 Carrier ID |
page | integer <int32> >= 1 Default: 1 Example: page=2 Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. |
page_size | integer <int32> >= 1 Default: 25 Example: page_size=50 The number of results to return per response. |
label_ids | Array of strings (se_id) Example: label_ids=se-28529731 Array of label ids |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "manifests": [ ],
- "total": 3,
- "page": 3,
- "pages": 4,
- "links": {
}
}
Each ShipEngine manifest is created for a specific warehouse, so you'll need to provide the warehouse_id rather than the ship_from address. You can create a warehouse for each location that you want to create manifests for.
carrier_id required | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ A string that uniquely identifies the carrier |
excluded_label_ids | Array of strings The list of label ids to exclude from the manifest |
label_ids | Array of strings The list of label ids to include for the manifest |
warehouse_id required | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ A string that uniquely identifies the warehouse |
ship_date required | string <date-time> non-empty The ship date that the shipment will be sent out on |
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "carrier_id": "se-28529731",
- "excluded_label_ids": [
- "se-28529731"
], - "label_ids": [
- "se-28529731"
], - "warehouse_id": "se-28529731",
- "ship_date": "2018-09-23T15:00:00.000Z"
}
{- "manifests": [
- {
- "manifest_id": "se-28529731",
- "form_id": "se-28529731",
- "created_at": "2019-07-12T13:37:39.050Z",
- "ship_date": "2019-07-12T13:37:39.050Z",
- "shipments": 100,
- "label_ids": [
- "se-28529731"
], - "warehouse_id": "se-28529731",
- "submission_id": "9475711899564878915476",
- "carrier_id": "se-28529731",
}
], - "manifest_requests": [
- {
- "manifest_request_id": "se-28529731",
- "status": "in_progress"
}
], - "manifest_id": "se-28529731",
- "form_id": "se-28529731",
- "created_at": "2019-07-12T13:37:39.050Z",
- "ship_date": "2019-07-12T13:37:39.050Z",
- "shipments": 100,
- "warehouse_id": "se-28529731",
- "submission_id": "9475711899564878915476",
- "carrier_id": "se-28529731",
- "label_ids": [
- "se-28529731"
], - "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009",
- "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 Manifest By Id
manifest_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 The Manifest Id |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "manifest_id": "se-28529731",
- "form_id": "se-28529731",
- "created_at": "2019-07-12T13:37:39.050Z",
- "ship_date": "2019-07-12T13:37:39.050Z",
- "shipments": 100,
- "label_ids": [
- "se-28529731"
], - "warehouse_id": "se-28529731",
- "submission_id": "9475711899564878915476",
- "carrier_id": "se-28529731",
}
Get Manifest Request By Id
manifest_request_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 The Manifest Request Id |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "manifests": [
- {
- "manifest_id": "se-28529731",
- "form_id": "se-28529731",
- "created_at": "2019-07-12T13:37:39.050Z",
- "ship_date": "2019-07-12T13:37:39.050Z",
- "shipments": 100,
- "label_ids": [
- "se-28529731"
], - "warehouse_id": "se-28529731",
- "submission_id": "9475711899564878915476",
- "carrier_id": "se-28529731",
}
], - "manifest_requests": [
- {
- "manifest_request_id": "se-28529731",
- "status": "in_progress"
}
], - "manifest_id": "se-28529731",
- "form_id": "se-28529731",
- "created_at": "2019-07-12T13:37:39.050Z",
- "ship_date": "2019-07-12T13:37:39.050Z",
- "shipments": 100,
- "warehouse_id": "se-28529731",
- "submission_id": "9475711899564878915476",
- "carrier_id": "se-28529731",
- "label_ids": [
- "se-28529731"
], - "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009",
- "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"
}
]
}
List all pickups that have been scheduled for this carrier
carrier_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: carrier_id=se-28529731 Carrier ID |
warehouse_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: warehouse_id=se-28529731 Warehouse ID |
created_at_start | string <date-time> Example: created_at_start=2019-03-12T19:24:13.657Z Only return scheduled pickups that were created on or after a specific date/time |
created_at_end | string <date-time> Example: created_at_end=2019-03-12T19:24:13.657Z Only return scheduled pickups that were created on or before a specific date/time |
page | integer <int32> >= 1 Default: 1 Example: page=2 Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. |
page_size | integer <int32> >= 1 Default: 25 Example: page_size=50 The number of results to return per response. |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "pickups": [
- {
- "pickup_id": "pik_3YcKU5zdtJuCqoeNwyqqbW",
- "label_ids": [
- "se-28529731"
], - "created_at": "2018-09-23T15:00:00.000Z",
- "cancelled_at": "2018-09-23T15:00:00.000Z",
- "carrier_id": "se-28529731",
- "confirmation_number": "292513CL4A3",
- "warehouse_id": "se-28529731",
- "pickup_address": {
- "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"
}, - "contact_details": {
- "name": "string",
- "email": "john.doe@example.com",
- "phone": "strings"
}, - "pickup_notes": "string",
- "pickup_windows": [
- {
- "start_at": "2018-09-23T15:00:00.000Z",
- "end_at": "2018-09-23T15:00:00.000Z"
}
]
}
], - "total": 3,
- "page": 3,
- "pages": 4,
- "links": {
}, - "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009",
- "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"
}
]
}
Schedule a package pickup with a carrier
label_ids required | Array of strings Label IDs that will be included in the pickup request |
contact_details required | object (contact_details) |
pickup_notes | string >= 0 characters Used by some carriers to give special instructions for a package pickup |
pickup_window required | object (pickup_window) The desired time range for the package pickup. |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "label_ids": [
- "se-28529731"
], - "contact_details": {
- "name": "string",
- "email": "john.doe@example.com",
- "phone": "strings"
}, - "pickup_notes": "string",
- "pickup_window": {
- "start_at": "2018-09-23T15:00:00.000Z",
- "end_at": "2018-09-23T15:00:00.000Z"
}
}
{- "pickup_id": "pik_3YcKU5zdtJuCqoeNwyqqbW",
- "label_ids": [
- "se-28529731"
], - "created_at": "2018-09-23T15:00:00.000Z",
- "cancelled_at": "2018-09-23T15:00:00.000Z",
- "carrier_id": "se-28529731",
- "confirmation_number": "292513CL4A3",
- "warehouse_id": "se-28529731",
- "pickup_address": {
- "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"
}, - "contact_details": {
- "name": "string",
- "email": "john.doe@example.com",
- "phone": "strings"
}, - "pickup_notes": "string",
- "pickup_windows": [
- {
- "start_at": "2018-09-23T15:00:00.000Z",
- "end_at": "2018-09-23T15:00:00.000Z"
}
], - "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009",
- "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 Pickup By ID
pickup_id required | string (pickup_resource_id) >= 4 characters Example: pik_3YcKU5zdtJuCqoeNwyqqbW Pickup Resource ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "pickup_id": "pik_3YcKU5zdtJuCqoeNwyqqbW",
- "label_ids": [
- "se-28529731"
], - "created_at": "2018-09-23T15:00:00.000Z",
- "cancelled_at": "2018-09-23T15:00:00.000Z",
- "carrier_id": "se-28529731",
- "confirmation_number": "292513CL4A3",
- "warehouse_id": "se-28529731",
- "pickup_address": {
- "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"
}, - "contact_details": {
- "name": "string",
- "email": "john.doe@example.com",
- "phone": "strings"
}, - "pickup_notes": "string",
- "pickup_windows": [
- {
- "start_at": "2018-09-23T15:00:00.000Z",
- "end_at": "2018-09-23T15:00:00.000Z"
}
], - "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009",
- "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"
}
]
}
Delete a previously-scheduled pickup by ID
pickup_id required | string (pickup_resource_id) >= 4 characters Example: pik_3YcKU5zdtJuCqoeNwyqqbW Pickup Resource ID |
Return the pickup_id
of the scheduled pickup that was successfully deleted
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "request_id": "aa3d8e8e-462b-4476-9618-72db7f7b7009",
- "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"
}
], - "pickup_id": "pik_3YcKU5zdtJuCqoeNwyqqbW"
}
List the custom package types associated with the account
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "packages": [
- {
- "package_id": "se-28529731",
- "package_code": "small_flat_rate_box",
- "name": "laptop_box",
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "description": "Packaging for laptops"
}
]
}
Create a custom package type to better assist in getting accurate rate estimates
package_id | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ A string that uniquely identifies the package. |
package_code required | string [ 1 .. 50 ] characters ^[a-z0-9]+(_[a-z0-9]+)*$ A package type, such as |
name required | string [ 1 .. 50 ] characters |
dimensions | object The custom dimensions for the package. |
description | string <= 500 characters Nullable Provides a helpful description for the custom package. |
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "package_id": "se-28529731",
- "package_code": "small_flat_rate_box",
- "name": "laptop_box",
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "description": "Packaging for laptops"
}
{- "package_id": "se-28529731",
- "package_code": "small_flat_rate_box",
- "name": "laptop_box",
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "description": "Packaging for laptops"
}
Get Custom Package Type by ID
package_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Package ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "package_id": "se-28529731",
- "package_code": "small_flat_rate_box",
- "name": "laptop_box",
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "description": "Packaging for laptops"
}
Update the custom package type object by ID
package_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Package ID |
package_id | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ A string that uniquely identifies the package. |
package_code required | string [ 1 .. 50 ] characters ^[a-z0-9]+(_[a-z0-9]+)*$ A package type, such as |
name required | string [ 1 .. 50 ] characters |
dimensions | object The custom dimensions for the package. |
description | string <= 500 characters Nullable Provides a helpful description for the custom package. |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "package_id": "se-28529731",
- "package_code": "small_flat_rate_box",
- "name": "laptop_box",
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}, - "description": "Packaging for laptops"
}
Delete a custom package using the ID
package_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Package ID |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Make sure you ship as cost-effectively as possible by quickly comparing rates using the ShipEngine Rates API. As long as you have the carrier connected to your account, you'll be able to see and compare different rates and services.
It's not uncommon that you want to give your customer the choice between whether they want to ship the fastest, cheapest, or the most trusted route. Most companies don't solely ship things using a single shipping option; so we provide functionality to show you all your options!
shipment_id required | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ A string that uniquely identifies the shipment |
rate_options | object The rate options |
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "shipment_id": "se-28529731",
- "rate_options": {
- "carrier_ids": [
- "se-28529731"
], - "package_types": [
- "string"
], - "service_codes": [
- "string"
], - "calculate_tax_amount": true,
- "preferred_currency": "string",
- "is_return": true
}
}
{- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "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-11-13T16:05:35Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
], - "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 Shipment Rates
shipment_ids required | Array of strings The array of shipment IDs |
rate_options required | object The rate options |
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "shipment_ids": [
- "se-28529731"
], - "rate_options": {
- "carrier_ids": [
- "se-28529731"
], - "package_types": [
- "string"
], - "service_codes": [
- "string"
], - "calculate_tax_amount": true,
- "preferred_currency": "string",
- "is_return": true
}
}
[- {
- "rate_request_id": "se-28529731",
- "shipment_id": "se-28529731",
- "created_at": "2018-09-23T15:00:00.000Z",
- "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 Rate Estimates
carrier_id | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Deprecated A string that uniquely identifies the carrier |
from_country_code required | string 2 characters A two-letter ISO 3166-1 country code |
from_postal_code required | string non-empty postal code |
from_city_locality required | string non-empty from postal code |
from_state_province required | string non-empty From state province |
to_country_code required | string 2 characters A two-letter ISO 3166-1 country code |
to_postal_code required | string non-empty postal code |
to_city_locality required | string non-empty The city locality the package is being shipped to |
to_state_province required | string non-empty To state province |
weight required | object The weight of the package |
dimensions | object The dimensions of the package |
confirmation | string Enum: "none" "delivery" "signature" "adult_signature" "direct_signature" "delivery_mailed" "verbal_confirmation" The possible delivery confirmation values |
address_residential_indicator | string Enum: "unknown" "yes" "no" Indicates whether an address is residential. |
ship_date required | string <date-time> ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]\d{2}:\d{2})$ ship date |
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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"
}
[- {
- "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-11-13T16:05:35Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
]
Retrieve a previously queried rate by its ID
rate_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Rate ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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-11-13T16:05:35Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
List carrier service points by location
address_query | string Unstructured text to search for service points by. |
address | object Structured address to search by. |
providers required | Array of objects An array of shipping service providers and service codes |
lat | number <double> The latitude of the point. Represented as signed degrees. Required if long is provided. http://www.geomidpoint.com/latlon.html |
long | number <double> The longitude of the point. Represented as signed degrees. Required if lat is provided. http://www.geomidpoint.com/latlon.html |
radius | integer <int32> Search radius in kilometers |
max_results | integer <int32> The maximum number of service points to return |
shipment | object Shipment information to be used for service point selection |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "address_query": "177A Bleecker Street New York",
- "address": {
- "address_line1": "1999 Bishop Grandin Blvd.",
- "address_line2": "string",
- "address_line3": "string",
- "city_locality": "string",
- "state_province": "string",
- "postal_code": "78756-3717",
- "country_code": "CA"
}, - "providers": [
- {
- "carrier_id": "se-123456",
- "service_code": [
- "chronoclassic"
]
}
], - "lat": 48.874518928233094,
- "long": 2.3591775711639404,
- "radius": 500,
- "max_results": 25,
- "shipment": {
- "total_weight": {
- "value": 0,
- "unit": "pound"
}, - "packages": [
- {
- "dimensions": {
- "unit": "inch",
- "length": 0,
- "width": 0,
- "height": 0
}
}
]
}
}
{- "lat": 48.842608,
- "long": 0.032875,
- "service_points": [
- {
- "carrier_code": "dhl_express",
- "service_codes": [
- "chronoclassic"
], - "service_point_id": "614940",
- "company_name": "My fancy company name",
- "address_line1": "PLACE DU CANADA",
- "city_locality": "TRUN",
- "state_province": "TRUN",
- "postal_code": "78756-3717",
- "country_code": "CA",
- "phone_number": "555-555-5555",
- "lat": 48.842608,
- "long": 0.032875,
- "distance_in_meters": 728.9959308847579,
- "hours_of_operation": {
- "monday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "tuesday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "wednesday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "thursday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "friday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "saturday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "sunday": [
- {
- "open": "09:15",
- "close": "12:00"
}
]
}, - "features": [
- "drop_off_point"
], - "type": "pudo"
}
], - "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"
}
]
}
Returns a carrier service point by using the service_point_id
carrier_code required | string non-empty Example: stamps_com Carrier code |
country_code required | |
service_point_id required | string Example: 614940 |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "service_point": {
- "carrier_code": "dhl_express",
- "service_codes": [
- "string"
], - "service_point_id": "614940",
- "company_name": "My fancy company name",
- "address_line1": "PLACE DU CANADA",
- "city_locality": "TRUN",
- "state_province": "TRUN",
- "postal_code": "78756-3717",
- "country_code": "CA",
- "phone_number": "555-555-5555",
- "lat": 48.842608,
- "long": 0.032875,
- "hours_of_operation": {
- "monday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "tuesday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "wednesday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "thursday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "friday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "saturday": [
- {
- "open": "09:15",
- "close": "12:00"
}
], - "sunday": [
- {
- "open": "09:15",
- "close": "12:00"
}
]
}, - "features": [
- "drop_off_point"
], - "type": "pudo"
}
}
Shipments are at the center of the ShipEngine API. A shipment is the first step in creating a shipping label, or creating a manifest. It's also essential for getting shipping rates.
Get list of Shipments
shipment_status | string (shipment_status) Enum: "pending" "processing" "label_purchased" "cancelled" The possible shipment status values |
batch_id | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: batch_id=se-28529731 Batch ID |
tag | string non-empty Example: tag=Letters_to_santa Search for shipments based on the custom tag added to the shipment object |
created_at_start | string <date-time> Example: created_at_start=2019-03-12T19:24:13.657Z Used to create a filter for when a resource was created (ex. A shipment that was created after a certain time) |
created_at_end | string <date-time> Example: created_at_end=2019-03-12T19:24:13.657Z Used to create a filter for when a resource was created, (ex. A shipment that was created before a certain time) |
modified_at_start | string <date-time> Example: modified_at_start=2019-03-12T19:24:13.657Z Used to create a filter for when a resource was modified (ex. A shipment that was modified after a certain time) |
modified_at_end | string <date-time> Example: modified_at_end=2019-03-12T19:24:13.657Z Used to create a filter for when a resource was modified (ex. A shipment that was modified before a certain time) |
page | integer <int32> >= 1 Default: 1 Example: page=2 Return a specific page of results. Defaults to the first page. If set to a number that's greater than the number of pages of results, an empty page is returned. |
page_size | integer <int32> >= 1 Default: 25 Example: page_size=50 The number of results to return per response. |
sales_order_id | string Sales Order ID |
sort_dir | string Default: "desc" Enum: "asc" "desc" Controls the sort order of the query. |
sort_by | string (shipments_sort_by) Enum: "modified_at" "created_at" Example: sort_by=modified_at The possible shipments sort by values |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "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,
- "links": {
}
}
Create one or multiple shipments.
shipments required | Array of objects non-empty An array of shipments to be created. |
The requested object creation was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "shipments": [
- {
- "validate_address": "no_validation",
- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "license_number": 514785,
- "invoice_number": "IOC56888",
- "certificate_number": 784515
}, - "insurance_provider": "none",
- "order_source_code": "amazon_ca",
- "packages": [
- {
- "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",
- "content_description": "Hand knitted wool socks",
- "products": [ ]
}
], - "comparison_rate_type": "retail"
}
]
}
{- "has_errors": false,
- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "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",
- "errors": [
- "Parameter value '100000000.00' is out of range."
], - "address_validation": {
- "status": "unverified",
- "original_address": {
- "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"
}, - "matched_address": {
- "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"
}, - "messages": [ ]
}
}
]
}
Query Shipments created using your own custom ID convention using this endpint
external_shipment_id required | string Example: 0bcb569d-1727-4ff9-ab49-b2fec0cee5ae |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "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"
}
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.
The only required field is text
, which is the text to be parsed. You can optionally also provide a shipment
containing any already-known values. For example, you probably already know the ship_from
address, and you may also already know what carrier and service you want to use.
text required | string non-empty The unstructured text that contains shipping-related entities |
shipment | object You can optionally provide a |
Returns the parsed shipment, as well as a confidence score and a list of all the shipping entities that were recognized in the text.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
This is the simplest way to call the shipment-recognition API. Just pass the text to be parsed and nothing else.
{- "text": "I have a 4oz package that's 5x10x14in, and I need to ship it to Margie McMiller at 3800 North Lamar suite 200 in austin, tx 78652. Please send it via USPS first class and require an adult signature. It also needs to be insured for $400.\n"
}
This response shows that the shipment-recognition API was able to recognize all the shipping entities in the text. Notice that the ship_from
field is not populated, since it wasn't included in the request or in the parsed text.
{- "score": 0.9031369611169101,
- "shipment": {
- "carrier_id": "se-118608",
- "service_code": "usps_first_class_mail",
- "confirmation": "adult_signature",
- "ship_to": {
- "name": "Margie McMiller",
- "company_name": "Adult Signature",
- "address_line1": "3800 North Lamar",
- "address_line2": "Suite 200",
- "city_locality": "Austin",
- "state_province": "TX",
- "postal_code": 78652,
- "address_residential_indicator": "unknown"
}, - "packages": [
- {
- "weight": {
- "value": 4,
- "unit": "ounce"
}, - "dimensions": {
- "length": 5,
- "width": 10,
- "height": 14,
- "unit": "inch"
}, - "insured_value": {
- "amount": 400,
- "currency": "USD"
}
}
]
}, - "entities": [
- {
- "type": "weight",
- "score": 0.9805313966503588,
- "text": "4oz",
- "start_index": 9,
- "end_index": 11,
- "result": {
- "value": 4,
- "unit": "ounce"
}
}, - {
- "type": "dimensions",
- "score": 1,
- "text": "5x10x14in",
- "start_index": 28,
- "end_index": 36,
- "result": {
- "length": 5,
- "width": 10,
- "height": 14,
- "unit": "inch"
}
}, - {
- "type": "dimension",
- "score": 0.9805313966503588,
- "text": "14in",
- "start_index": 33,
- "end_index": 36,
- "result": {
- "unit": "inch",
- "value": 14
}
}, - {
- "type": "address",
- "score": 0.9281558837267101,
- "text": "to Margie McMiller at 3800 North Lamar suite 200 in austin, tx 78652. Please send it via USPS first class and require an adult signature",
- "start_index": 61,
- "end_index": 196,
- "result": {
- "direction": "to",
- "name": "Margie McMiller",
- "company_name": "Adult Signature",
- "address_line1": "3800 North Lamar",
- "address_line2": "Suite 200",
- "city_locality": "Austin",
- "state_province": "TX",
- "postal_code": 78652
}
}, - {
- "type": "person",
- "score": 0.9519646137063122,
- "text": "Margie McMiller",
- "start_index": 64,
- "end_index": 78,
- "result": {
- "value": "Margie McMiller"
}
}, - {
- "type": "address_line",
- "score": 0.9805313966503588,
- "text": "3800 North Lamar",
- "start_index": 83,
- "end_index": 98,
- "result": {
- "line": 1,
- "value": "3800 North Lamar"
}
}, - {
- "type": "number",
- "score": 0.9805313966503588,
- "text": 3800,
- "start_index": 83,
- "end_index": 86,
- "result": {
- "type": "cardinal",
- "value": 3800
}
}, - {
- "type": "address_line",
- "score": 1,
- "text": "suite 200",
- "start_index": 100,
- "end_index": 108,
- "result": {
- "line": 2,
- "value": "Suite 200"
}
}, - {
- "type": "dimension",
- "score": 0.4792571878834418,
- "text": "200 in",
- "start_index": 106,
- "end_index": 111,
- "result": {
- "unit": "inch",
- "value": 200
}
}, - {
- "type": "city_locality",
- "score": 0.9805313966503588,
- "text": "austin",
- "start_index": 113,
- "end_index": 118,
- "result": {
- "value": "Austin"
}
}, - {
- "type": "state_province",
- "score": 0.6082904353940255,
- "text": "tx",
- "start_index": 121,
- "end_index": 122,
- "result": {
- "name": "Texas",
- "value": "TX"
}
}, - {
- "type": "postal_code",
- "score": 0.9519646137063122,
- "text": 78652,
- "start_index": 124,
- "end_index": 128,
- "result": {
- "value": 78652
}
}, - {
- "type": "carrier",
- "score": 0.9519646137063122,
- "text": "USPS",
- "start_index": 150,
- "end_index": 153,
- "result": {
- "name": "Stamps.com",
- "value": "se-118608"
}
}, - {
- "type": "service",
- "score": 0.6082904353940255,
- "text": "first class",
- "start_index": 155,
- "end_index": 165,
- "result": {
- "name": "USPS First Class Mail",
- "value": "usps_first_class_mail"
}
}, - {
- "type": "number",
- "score": 0.9805313966503588,
- "text": "first",
- "start_index": 155,
- "end_index": 159,
- "result": {
- "type": "ordinal",
- "value": 1
}
}, - {
- "type": "company",
- "score": 0.9519646137063122,
- "text": "adult signature",
- "start_index": 182,
- "end_index": 196,
- "result": {
- "value": "Adult Signature"
}
}, - {
- "type": "delivery_confirmation",
- "score": 0.8530163983409642,
- "text": "adult signature",
- "start_index": 182,
- "end_index": 196,
- "result": {
- "name": "Adult Signature",
- "value": "adult_signature"
}
}, - {
- "type": "insurance",
- "score": 0.8530163983409642,
- "text": "insured for $400",
- "start_index": 219,
- "end_index": 234,
- "result": {
- "value": 400,
- "unit": "USD"
}
}, - {
- "type": "insured_value",
- "score": 1,
- "text": "$400",
- "start_index": 231,
- "end_index": 234,
- "result": {
- "unit": "USD",
- "value": 400
}
}
]
}
Get an individual shipment based on its ID
shipment_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Shipment ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "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 a shipment object based on its ID
shipment_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Shipment ID |
carrier_id | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ The carrier account that is billed for the shipping charges |
service_code | string ^[a-z0-9]+(_[a-z0-9-]+)* ?$ The carrier service used to ship the package, such as |
shipping_rule_id | string [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ ID of the shipping rule, which you want to use to automate carrier/carrier service selection for the shipment |
external_order_id | string Nullable ID that the Order Source assigned |
items | Array of objects Default: [] Describe the packages included in this shipment as related to potential metadata that was imported from external order sources |
tax_identifiers | Array of objects Nullable |
external_shipment_id | string <= 50 characters Nullable A unique user-defined key to identify a shipment. This can be used to retrieve the shipment.
|
shipment_number | string <= 50 characters Nullable A non-unique user-defined number used to identify a shipment. If undefined, this will match the external_shipment_id of the shipment.
|
ship_date | string <date-time> ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]\d{2}:\d{2}))?$ The date that the shipment was (or will be) shipped. ShipEngine will take the day of week into consideration. For example, if the carrier does not operate on Sundays, then a package that would have shipped on Sunday will ship on Monday instead. |
ship_to required | object The recipient's mailing address |
ship_from required | object The shipment's origin address. If you frequently ship from the same location, consider creating a warehouse. Then you can simply specify the |
warehouse_id | string [ 1 .. 25 ] characters Nullable ^se(-[a-z0-9]+)+$ Default: null The warehouse that the shipment is being shipped from. Either |
return_to | object The return address for this shipment. Defaults to the |
is_return | boolean Nullable Default: false An optional indicator if the shipment is intended to be a return. Defaults to false if not provided. |
confirmation | string Default: "none" Enum: "none" "delivery" "signature" "adult_signature" "direct_signature" "delivery_mailed" "verbal_confirmation" The type of delivery confirmation that is required for this shipment. |
customs | object Nullable Default: null Customs information. This is usually only needed for international shipments. |
advanced_options | object Advanced shipment options. These are entirely optional. |
insurance_provider | string Default: "none" Enum: "none" "shipsurance" "carrier" "third_party" The insurance provider to use for any insured packages in the shipment. |
order_source_code | string Enum: "amazon_ca" "amazon_us" "brightpearl" "channel_advisor" "cratejoy" "ebay" "etsy" "jane" "groupon_goods" "magento" "paypal" "seller_active" "shopify" "stitch_labs" "squarespace" "three_dcart" "tophatter" "walmart" "woo_commerce" "volusion" The order sources that are supported by ShipEngine |
packages | Array of objects non-empty The packages in the shipment.
|
comparison_rate_type | string Nullable Calculate a rate for this shipment with the requested carrier using a ratecard that differs from the default. Only supported for UPS and USPS. |
validate_address | string Default: "no_validation" Enum: "no_validation" "validate_only" "validate_and_clean" The possible validate address values |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "license_number": 514785,
- "invoice_number": "IOC56888",
- "certificate_number": 784515
}, - "insurance_provider": "none",
- "order_source_code": "amazon_ca",
- "packages": [
- {
- "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",
- "content_description": "Hand knitted wool socks",
- "products": [ ]
}
], - "comparison_rate_type": "retail",
- "validate_address": "no_validation"
}
{- "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",
- "geolocation": [
- {
- "type": "what3words",
- "value": "cats.with.thumbs"
}
]
}, - "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": {
- "freight_charge": {
- "currency": "string",
- "amount": 0
}, - "insurance_charge": {
- "currency": "string",
- "amount": 0
}, - "discount": {
- "currency": "string",
- "amount": 0
}, - "other_charge": {
- "currency": "string",
- "amount": 0
}, - "other_charge_description": "string"
}, - "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,
- "fedex_freight": {
- "shipper_load_and_count": "string",
- "booking_confirmation": "string"
}, - "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": {
- "movement_indicator": "c2c",
- "not_at_risk": true
}, - "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",
- "errors": [
- "Parameter value '100000000.00' is out of range."
], - "address_validation": {
- "status": "unverified",
- "original_address": {
- "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"
}, - "matched_address": {
- "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"
}, - "messages": [ ]
}
}
Mark a shipment cancelled, if it is no longer needed or being used by your organized. Any label associated with the shipment needs to be voided first
An example use case would be if a batch label creation job is going to run at a set time and only queries pending
shipments. Marking a shipment as cancelled
would remove it from this process
shipment_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Shipment ID |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Get Rates for the shipment information associated with the shipment ID
shipment_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Shipment ID |
created_at_start | string <date-time> Example: created_at_start=2019-03-12T19:24:13.657Z Used to create a filter for when a resource was created (ex. A shipment that was created after a certain time) |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "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-11-13T16:05:35Z",
- "negotiated_rate": true,
- "service_type": "string",
- "service_code": "string",
- "trackable": true,
- "carrier_code": "string",
- "carrier_nickname": "string",
- "carrier_friendly_name": "string",
- "validation_status": "valid",
- "warning_messages": [
- "string"
], - "error_messages": [
- "string"
]
}
], - "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"
}
]
}
Add a tag to the shipment object
shipment_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Shipment ID |
tag_name required | string (tag_name) non-empty Example: Fragile Tags are arbitrary strings that you can use to categorize shipments. For example, you may want to use tags to distinguish between domestic and international shipments, or between insured and uninsured shipments. Or maybe you want to create a tag for each of your customers so you can easily retrieve every shipment for a customer. |
The requested object creation was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "tags": [
- "string"
]
}
Remove an existing tag from the Shipment object
shipment_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Shipment ID |
tag_name required | string (tag_name) non-empty Example: Fragile Tags are arbitrary strings that you can use to categorize shipments. For example, you may want to use tags to distinguish between domestic and international shipments, or between insured and uninsured shipments. Or maybe you want to create a tag for each of your customers so you can easily retrieve every shipment for a customer. |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Create a new Tag for customizing how you track your shipments
tag_name required | string (tag_name) non-empty Example: Fragile Tags are arbitrary strings that you can use to categorize shipments. For example, you may want to use tags to distinguish between domestic and international shipments, or between insured and uninsured shipments. Or maybe you want to create a tag for each of your customers so you can easily retrieve every shipment for a customer. |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "name": "Fragile"
}
Delete a tag that is no longer needed
tag_name required | string (tag_name) non-empty Example: Fragile Tags are arbitrary strings that you can use to categorize shipments. For example, you may want to use tags to distinguish between domestic and international shipments, or between insured and uninsured shipments. Or maybe you want to create a tag for each of your customers so you can easily retrieve every shipment for a customer. |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Change a tag name while still keeping the relevant shipments attached to it
tag_name required | string (tag_name) non-empty Example: Fragile Tags are arbitrary strings that you can use to categorize shipments. For example, you may want to use tags to distinguish between domestic and international shipments, or between insured and uninsured shipments. Or maybe you want to create a tag for each of your customers so you can easily retrieve every shipment for a customer. |
new_tag_name required | string (tag_name) non-empty Example: Fragile Tags are arbitrary strings that you can use to categorize shipments. For example, you may want to use tags to distinguish between domestic and international shipments, or between insured and uninsured shipments. Or maybe you want to create a tag for each of your customers so you can easily retrieve every shipment for a customer. |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
This endpoint returns a token that can be passed to an application for authorized access. The lifetime of this token is 10 seconds.
redirect | string (redirect) Value: "shipengine-dashboard" Include a redirect url to the application formatted with the ephemeral token. |
OK
{- "token": "string",
- "redirect_url": "string"
}
Track packages across any of our 20+ supported carrier accounts and create tracking events to keep your customers up-to-date. Easily integrate real-time tracking information for shipments into your app, email, or SMS.
Retrieve package tracking information
carrier_code | string non-empty Example: carrier_code=stamps_com A shipping carrier, such as |
tracking_number | string non-empty Example: tracking_number=9405511899223197428490 The tracking number associated with a shipment |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "tracking_number": "1Z932R800392060079",
- "status_code": "DE",
- "status_detail_code": "DELIVERED",
- "carrier_code": "dhl_express",
- "carrier_id": 0,
- "status_description": "Delivered",
- "status_detail_description": "Your shipment has been delivered.",
- "carrier_status_code": 1,
- "carrier_detail_code": "OT",
- "carrier_status_description": "Your item was delivered in or at the mailbox at 9:10 am on March",
- "ship_date": "2018-09-23T15:00:00.000Z",
- "estimated_delivery_date": "2018-09-23T15:00:00.000Z",
- "actual_delivery_date": "2018-09-23T15:00:00.000Z",
- "exception_description": "string",
- "events": [
- {
- "occurred_at": "2018-09-23T15:00:00.000Z",
- "carrier_occurred_at": "2018-09-23T15:00:00.000Z",
- "description": "Delivered, In/At Mailbox",
- "city_locality": "AUSTIN",
- "state_province": "TX",
- "postal_code": 78756,
- "country_code": "CA",
- "company_name": "Stamps.com",
- "signer": "string",
- "event_code": "string",
- "carrier_detail_code": "OT",
- "status_code": "IT",
- "status_detail_code": "IN_TRANSIT",
- "status_description": "In Transit",
- "status_detail_description": "Your shipment is on its way between depots.",
- "carrier_status_code": 1,
- "carrier_status_description": "Your item was delivered in or at the mailbox at 9:10 am on March",
- "latitude": -90,
- "longitude": -180
}
]
}
Allows you to subscribe to tracking updates for a package. You specify the carrier_code and tracking_number of the package, and receive notifications via webhooks whenever the shipping status changes.
carrier_code | string non-empty Example: carrier_code=stamps_com A shipping carrier, such as |
tracking_number | string non-empty Example: tracking_number=9405511899223197428490 The tracking number associated with a shipment |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Unsubscribe from tracking updates for a package.
carrier_code | string non-empty Example: carrier_code=stamps_com A shipping carrier, such as |
tracking_number | string non-empty Example: tracking_number=9405511899223197428490 The tracking number associated with a shipment |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Retrieve a list of warehouses associated with this account.
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "warehouses": [
- {
- "warehouse_id": "se-28529731",
- "is_default": false,
- "name": "Zero Cool HQ",
- "created_at": "2019-06-25T18:12:35.583Z",
- "origin_address": {
- "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"
}, - "return_address": {
- "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"
}
}
]
}
Create a warehouse location that you can use to create shipping items by simply passing in the generated warehouse id. If the return address is not supplied in the request body then it is assumed that the origin address is the return address as well
is_default | boolean Nullable Default: false Designates which single warehouse is the default on the account |
name required | string non-empty Name of the warehouse |
origin_address required | object The origin address of the warehouse |
return_address | object The return address associated with the warehouse |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "is_default": false,
- "name": "Zero Cool HQ",
- "origin_address": {
- "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"
}, - "return_address": {
- "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"
}
}
{- "warehouse_id": "se-28529731",
- "is_default": false,
- "name": "Zero Cool HQ",
- "created_at": "2019-06-25T18:12:35.583Z",
- "origin_address": {
- "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"
}, - "return_address": {
- "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"
}
}
Retrieve warehouse data based on the warehouse ID
warehouse_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Warehouse ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "warehouse_id": "se-28529731",
- "is_default": false,
- "name": "Zero Cool HQ",
- "created_at": "2019-06-25T18:12:35.583Z",
- "origin_address": {
- "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"
}, - "return_address": {
- "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"
}
}
Update Warehouse object information
warehouse_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Warehouse ID |
is_default | boolean Nullable Default: false Designates which single warehouse is the default on the account |
name required | string non-empty Name of the warehouse |
origin_address required | object The origin address of the warehouse |
return_address | object The return address associated with the warehouse |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "is_default": false,
- "name": "Zero Cool HQ",
- "origin_address": {
- "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"
}, - "return_address": {
- "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"
}
}
Delete a warehouse by ID
warehouse_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Warehouse ID |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
Update Warehouse settings object information
warehouse_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Warehouse ID |
is_default | boolean Nullable The default property on the warehouse. |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "is_default": true
}
Webhooks are a powerful feature of ShipEngine that can save you from sending repeated polling requests to check on the state of something. With webhooks, ShipEngine will automatically contact your servers when the stage changes. This can include parcel tracking events, notification of the completion of a batch operation, or new salses orders.
List all webhooks currently enabled for the account.
The request was a success.
The request contained errors.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
[- {
- "webhook_id": "se-28529731",
- "url": "https://[YOUR ENDPOINT ID].x.requestbin.com",
- "event": "batch",
- "headers": [
- {
- "key": "custom-key",
- "value": "custom-value"
}
]
}
]
Create a webook for specific events in the environment.
event required | string Enum: "batch" "carrier_connected" "order_source_refresh_complete" "rate" "report_complete" "sales_orders_imported" "track" The possible webook event values |
url required | string <url> non-empty The url that the webhook sends the request to |
headers | Array of objects Array of custom webhook headers |
The request was a success.
The request contained errors.
The request conflicts with an existing resource.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "event": "batch",
- "url": "https://[YOUR ENDPOINT ID].x.requestbin.com",
- "headers": [
- {
- "key": "custom-key",
- "value": "custom-value"
}
]
}
{- "webhook_id": "se-28529731",
- "url": "https://[YOUR ENDPOINT ID].x.requestbin.com",
- "event": "batch",
- "headers": [
- {
- "key": "custom-key",
- "value": "custom-value"
}
]
}
Retrieve individual webhook by an ID
webhook_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Webhook ID |
The request was a success.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "webhook_id": "se-28529731",
- "url": "https://[YOUR ENDPOINT ID].x.requestbin.com",
- "event": "batch",
- "headers": [
- {
- "key": "custom-key",
- "value": "custom-value"
}
]
}
Update the webhook url property
webhook_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Webhook ID |
url | string <url> non-empty The url that the wehbook sends the request |
headers | Array of objects Array of custom webhook headers |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.
{- "url": "https://[YOUR ENDPOINT ID].x.requestbin.com",
- "headers": [
- {
- "key": "custom-key",
- "value": "custom-value"
}
]
}
Delete a webhook
webhook_id required | string (se_id) [ 1 .. 25 ] characters ^se(-[a-z0-9]+)+$ Example: se-28529731 Webhook ID |
The request was successful.
The request contained errors.
The specified resource does not exist.
An error occurred on ShipEngine's side.
This error will automatically be reported to our engineers.