ShipStation API v2 (2.0.0)

Download OpenAPI description
Overview
License MIT
Languages
Servers
Mock server
https://docs.shipstation.com/_mock/openapi/
Production
https://api.shipstation.com/

Batches

Process labels in bulk and receive a large number of labels and customs forms in bulk responses. Batching is ideal for workflows that need to process hundreds or thousands of labels quickly.

Operations

Carriers

Retreive useful details about the carriers connected to your accounts, including carrier IDs, service IDs, advanced options, and available carrier package types.

Operations

Downloads

Download your label files in PDF, PNG, and ZPL.

Operations

Labels

Purchase and print shipping labels for any carrier active on your account. The labels endpoint also supports creating return labels, voiding labels, and getting label details like tracking.

Operations

Manifests

A manifest is a document that provides a list of the day's shipments. It typically contains a barcode that allows the pickup driver to scan a single document to register all shipments, rather than scanning each shipment individually.

Operations

Package Pickups

Scheduled pickups and manage pickup requests for supported carriers.

Operations

Package Types

Create custom package types to use for your shipments, rather than the carriers' default package types.

Operations

Rates

Quickly compare rates using the Rates endpoint. You can see and compare rates for the carriers connected to your account (as long as they support sending rates).

Operations

Shipments

Shipments are at the core of most ShipStation capabilities. Shipment objects are required for cretaing labels and manifests, as well as getting rates.

Operations

Tags

Tags are text-based identifiers you can add to shipments to help in your shipment management workflows.

Operations

Tracking

Use the tracking endpoint to stop receiving tracking updates (more dedicated tracking endpoint methods coming soon).

Operations

Warehouses

Get warehouse details like warehouse ID and related addresses using the warehouses endpoint.

Operations

List warehouses

Request

Retrieve a list of warehouses associated with this account.

curl -i -X GET \
  https://docs.shipstation.com/_mock/openapi/v2/warehouses \
  -H 'api-key: YOUR_API_KEY_HERE'

Responses

The request was a success.

Bodyapplication/json
warehousesArray of objects(warehouse)read-onlyrequired

The array of warehouses returned by the API call

warehouses[].​warehouse_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-only

A string that uniquely identifies a ShipStation resource, such as a carrier, label, shipment, etc.

Example: "se-28529731"
warehouses[].​is_defaultboolean or null

Designates which single warehouse is the default on the account

Default false
Example: true
warehouses[].​namestringnon-empty

Name of the warehouse

Example: "Zero Cool HQ"
warehouses[].​created_atstring(date-time)non-emptyread-only

Timestamp that indicates when the warehouse was created

Example: "2019-06-25T18:12:35.583Z"
warehouses[].​origin_addressobject(address)

A complete or partial mailing address.

warehouses[].​return_addressobject(address)

A complete or partial mailing address.

Response
application/json
{ "warehouses": [ {} ] }

Get warehouse by id

Request

Retrieve warehouse data based on the warehouse ID

Path
warehouse_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$required

Warehouse ID

Example: se-28529731
curl -i -X GET \
  'https://docs.shipstation.com/_mock/openapi/v2/warehouses/{warehouse_id}' \
  -H 'api-key: YOUR_API_KEY_HERE'

Responses

The request was a success.

Bodyapplication/json
warehouse_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-onlyrequired

A string that uniquely identifies a ShipStation resource, such as a carrier, label, shipment, etc.

Example: "se-28529731"
is_defaultboolean or null

Designates which single warehouse is the default on the account

Default false
Example: true
namestringnon-emptyrequired

Name of the warehouse

Example: "Zero Cool HQ"
created_atstring(date-time)non-emptyread-onlyrequired

Timestamp that indicates when the warehouse was created

Example: "2019-06-25T18:12:35.583Z"
origin_addressobject(address)required

A complete or partial mailing address.

origin_address.​namestringnon-emptyrequired

The name of a contact person at this address. This field may be set instead of - or in addition to - the company_name field.

Example: "John Doe"
origin_address.​phonestringnon-emptyrequired

The phone number of a contact person at this address. The format of this phone number varies depending on the country.

Example: "+1 204-253-9411 ext. 123"
origin_address.​emailstring or null

Email for the address owner.

Example: "example@example.com"
origin_address.​company_namestring or nullnon-empty

If this is a business address, then the company name should be specified here.

Example: "The Home Depot"
origin_address.​address_line1stringnon-emptyrequired

The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.

Example: "1999 Bishop Grandin Blvd."
origin_address.​address_line2string or nullnon-empty

The second line of the street address. For some addresses, this line may not be needed.

Example: "Unit 408"
origin_address.​address_line3string or nullnon-empty

The third line of the street address. For some addresses, this line may not be needed.

Example: "Building #7"
origin_address.​city_localitystringnon-emptyrequired

The name of the city or locality

Example: "Winnipeg"
origin_address.​state_provincestringnon-emptyrequired

The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.

Example: "Manitoba"
origin_address.​postal_codestring(postal_code)non-emptyrequired

postal code

Example: "78756-3717"
origin_address.​country_codestring(country_code)= 2 charactersrequired
Example: "CA"
origin_address.​address_residential_indicatorstring(address_residential_indicator)required

Indicates whether an address is residential.

Default "unknown"
Enum"unknown""yes""no"
Example: "no"
return_addressobject(address)required

A complete or partial mailing address.

return_address.​namestringnon-emptyrequired

The name of a contact person at this address. This field may be set instead of - or in addition to - the company_name field.

Example: "John Doe"
return_address.​phonestringnon-emptyrequired

The phone number of a contact person at this address. The format of this phone number varies depending on the country.

Example: "+1 204-253-9411 ext. 123"
return_address.​emailstring or null

Email for the address owner.

Example: "example@example.com"
return_address.​company_namestring or nullnon-empty

If this is a business address, then the company name should be specified here.

Example: "The Home Depot"
return_address.​address_line1stringnon-emptyrequired

The first line of the street address. For some addresses, this may be the only line. Other addresses may require 2 or 3 lines.

Example: "1999 Bishop Grandin Blvd."
return_address.​address_line2string or nullnon-empty

The second line of the street address. For some addresses, this line may not be needed.

Example: "Unit 408"
return_address.​address_line3string or nullnon-empty

The third line of the street address. For some addresses, this line may not be needed.

Example: "Building #7"
return_address.​city_localitystringnon-emptyrequired

The name of the city or locality

Example: "Winnipeg"
return_address.​state_provincestringnon-emptyrequired

The state or province. For some countries (including the U.S.) only abbreviations are allowed. Other countries allow the full name or abbreviation.

Example: "Manitoba"
return_address.​postal_codestring(postal_code)non-emptyrequired

postal code

Example: "78756-3717"
return_address.​country_codestring(country_code)= 2 charactersrequired
Example: "CA"
return_address.​address_residential_indicatorstring(address_residential_indicator)required

Indicates whether an address is residential.

Default "unknown"
Enum"unknown""yes""no"
Example: "no"
Response
application/json
{ "warehouse_id": "se-28529731", "is_default": true, "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" } }

Webhooks

Webhooks are a powerful feature that can save you from sending repeated polling requests to check on the state of something. With webhooks, ShipStation will automatically contact your servers when the stage changes. This can include parcel tracking events, notification when a batch operation completes, and more.

Operations