Skip to content

ShipStation API v2 (2.0.0)

Download OpenAPI description
Overview
License
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

Fulfillments

Manage fulfillments which represent completed shipments. Create fulfillments to mark orders as shipped with tracking information and notify customers and marketplaces.

Operations

Inventory

Manage inventory, adjust quantities, and handle warehouses and locations.

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

Products

Manage products in your ShipStation account. Products represent the items you sell and ship to customers.

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

Purchase label with rate shopper

Request

Create a label using Rate Shopper to automatically select the best carrier and service based on the specified strategy.

For more information about Rate Shopper strategies and use cases, see Rate Shopping.

Security
api_keys
Path
rate_shopper_idstringrequired

The rate selection strategy. Determines which carrier and service will be automatically selected:

  • cheapest: Lowest cost option
  • fastest: Fastest option at the lowest price
  • best_value: Lowest cost option arriving within 4 days
Enum"cheapest""fastest""best_value"
Bodyapplication/jsonrequired
shipmentobject(partial_shipment_for_rate_shopper)required

Shipment information for Rate Shopper. Must NOT include carrier_id, service_code, or shipping_rule_id as Rate Shopper selects these automatically.

shipment.​requested_shipment_servicestring or null

The requested shipment service

Example: "usps_priority_mail"
shipment.​external_order_idstring or null

ID that the Order Source assigned

Example: "1232434"
shipment.​hold_until_datestring or null(date-time)

Date to hold the shipment until

Example: "2025-01-15T00:00:00.000Z"
shipment.​ship_by_datestring or null(date-time)

Date by which the shipment should be shipped

Example: "2025-01-15T00:00:00.000Z"
shipment.​retail_rateobject or null(monetary_value)

The retail rate for the shipment

shipment.​store_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$

The store ID associated with the shipment

Example: "se-28529731"
shipment.​itemsArray of objects(shipment_item)

Describe the packages included in this shipment as related to potential metadata that was imported from external order sources

Default []
shipment.​notes_from_buyerstring or null

Notes from the buyer

Example: "Please handle with care"
shipment.​notes_for_giftstring or null

Gift notes

Example: "Happy Birthday!"
shipment.​is_giftboolean

Indicates if the shipment is a gift

Default false
Example: true
shipment.​assigned_userstring or null

User assigned to the shipment

Example: "user@example.com"
shipment.​amount_paidobject(monetary_value)

Total amount paid for the order

shipment.​shipping_paidobject(monetary_value)

Amount paid for shipping

shipment.​tax_paidobject(monetary_value)

Amount paid for taxes

shipment.​zoneinteger or null(int32)>= 0

Shipping zone

Example: 1
shipment.​display_schemestring or null

Display scheme for the shipment

Example: "label"
shipment.​tax_identifiersArray of objects or null(tax_identifier)
shipment.​external_shipment_idstring or null<= 50 characters

A unique user-defined key to identify a shipment. This can be used to retrieve the shipment.

Warning: The external_shipment_id is limited to 50 characters. Any additional characters will be truncated.

Example: "1234556"
shipment.​shipment_numberstring or null<= 50 characters

A non-unique user-defined number used to identify a shipment. If undefined, this will match the external_shipment_id of the shipment.

Warning: The shipment_number is limited to 50 characters. Any additional characters will be truncated.

Example: "10001"
shipment.​ship_datestring or null(date-time)(date)^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?...

An ISO 8601 string that represents a date, but not a specific time. The value may contain a time component, but it will be set to 00:00:00 UTC by ShipStation .

Example: "2018-09-23T00:00:00Z"
shipment.​ship_toobject(partial_shipping_address_to)

Any residential or business mailing address, anywhere in the world.

Note: Either name or company_name must be set. Both may be specified, if relevant.

shipment.​ship_fromobject(partial_shipping_address)

Any residential or business mailing address, anywhere in the world.

Note: Either name or company_name must be set. Both may be specified, if relevant.

shipment.​warehouse_idstring or null(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$

The [warehouse] that the shipment is being shipped from. Either warehouse_id or ship_from must be specified.

Default null
Example: "se-28529731"
shipment.​return_toobject(partial_shipping_address)

Any residential or business mailing address, anywhere in the world.

Note: Either name or company_name must be set. Both may be specified, if relevant.

shipment.​is_returnboolean or null

An optional indicator if the shipment is intended to be a return. Defaults to false if not provided.

Default false
Example: true
shipment.​confirmationstring(delivery_confirmation)

The type of delivery confirmation that is required for this shipment

Default "none"
Enum"none""delivery""signature""adult_signature""direct_signature""delivery_mailed""verbal_confirmation""delivery_code""age_verification_16_plus"
shipment.​customsobject or null(international_shipment_options)

Customs information. This is usually only needed for international shipments.

Default null
shipment.​advanced_optionsobject(advanced_shipment_options)

Advanced shipment options. These are entirely optional.

shipment.​insurance_providerstring(insurance_provider)

The insurance provider to use for any insured packages in the shipment.

Default "none"
Enum"none""shipsurance""carrier""third_party"
shipment.​tagsArray of objects(tag)>= 0 items

Arbitrary tags associated with this shipment. Tags can be used to categorize shipments, and shipments can be queried by their tags. Note: Tags require object structure with name property, not simple strings.

Default []
shipment.​order_source_codestring(order_source_name)

The order sources that are supported by ShipStation

Enum"amazon_ca""amazon_us""brightpearl""channel_advisor""cratejoy""ebay""etsy""jane""groupon_goods""magento"
shipment.​packagesArray of objects(package)non-empty

The packages in the shipment.

Note: Some carriers only allow one package per shipment. If you attempt to create a multi-package shipment for a carrier that doesn't allow it, an error will be returned.

shipment.​comparison_rate_typestring or null

Calculate a rate for this shipment with the requested carrier using a ratecard that differs from the default. Only supported for UPS and USPS.

Example: "retail"
label_formatstring(label_format)

The possible file formats in which shipping labels can be downloaded. We recommend pdf format because it is supported by all carriers, whereas some carriers do not support the png or zpl formats.

Label FormatSupported Carriers
pdfAll carriers
pngfedex
stamps_com
ups
usps
zplaccess_worldwide
apc
asendia
dhl_global_mail
dhl_express
dhl_express_australia
dhl_express_canada
dhl_express_worldwide
dhl_express_uk
dpd
endicia
fedex
fedex_uk
firstmile
imex
newgistics
ontrac
rr_donnelley
stamps_com
ups
usps
Default "pdf"
Enum"pdf""png""zpl"
label_layoutstring(label_layout)

The available layouts (sizes) in which shipping labels can be downloaded. The label format determines which sizes are supported. 4x6 is supported for all label formats, whereas letter (8.5" x 11") is only supported for pdf format.

Default "4x6"
Enum"4x6""letter"
display_schemestring(display_scheme)

The display format that the label should be shown in.

Default "label"
Enum"label""qr_code""label_and_qr_code""paperless""label_and_paperless"
label_download_typestring

Specifies how the label should be downloaded.

  • url: Returns URLs to download the label
  • inline: Returns the label data inline in the response
Default "url"
Enum"url""inline"
Example: "url"
curl -i -X POST \
  'https://docs.shipstation.com/_mock/openapi/v2/labels/rate_shopper_id/{rate_shopper_id}' \
  -H 'Content-Type: application/json' \
  -H 'api-key: YOUR_API_KEY_HERE' \
  -d '{
    "shipment": {
      "requested_shipment_service": "usps_priority_mail",
      "external_order_id": "1232434",
      "hold_until_date": "2025-01-15T00:00:00.000Z",
      "ship_by_date": "2025-01-15T00:00:00.000Z",
      "retail_rate": {
        "currency": "string",
        "amount": 12
      },
      "store_id": "se-12345",
      "items": [],
      "notes_from_buyer": "Please handle with care",
      "notes_for_gift": "Happy Birthday!",
      "is_gift": true,
      "assigned_user": "user@example.com",
      "amount_paid": {
        "currency": "string",
        "amount": 12
      },
      "shipping_paid": {
        "currency": "string",
        "amount": 12
      },
      "tax_paid": {
        "currency": "string",
        "amount": 12
      },
      "zone": 1,
      "display_scheme": "label",
      "tax_identifiers": [
        {
          "taxable_entity_type": "shipper",
          "identifier_type": "vat",
          "issuing_authority": "US",
          "value": "value"
        }
      ],
      "external_shipment_id": "1234556",
      "shipment_number": "10001",
      "ship_date": "2018-09-23T00:00:00Z",
      "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": "yes",
        "instructions": "any instruction",
        "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": "yes",
        "instructions": "any instructions"
      },
      "warehouse_id": null,
      "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": "yes",
        "instructions": "any instructions"
      },
      "is_return": true,
      "confirmation": "none",
      "customs": null,
      "advanced_options": {
        "bill_to_account": "123456789",
        "bill_to_country_code": "US",
        "bill_to_party": "third_party",
        "bill_to_postal_code": "28005",
        "contains_alcohol": true,
        "delivered_duty_paid": true,
        "dry_ice": true,
        "dry_ice_weight": {
          "value": 23,
          "unit": "pound"
        },
        "non_machinable": true,
        "saturday_delivery": true,
        "fedex_freight": {
          "shipper_load_and_count": "shipper_load_and_count",
          "booking_confirmation": "today"
        },
        "use_ups_ground_freight_pricing": true,
        "freight_class": "77.5",
        "custom_field1": "custom field 1",
        "custom_field2": "custom field 2",
        "custom_field3": "custom field 3",
        "origin_type": null,
        "additional_handling": true,
        "shipper_release": true,
        "collect_on_delivery": {
          "payment_type": "any",
          "payment_amount": {
            "currency": "USD",
            "amount": 12
          }
        },
        "third_party_consignee": true,
        "dangerous_goods": true,
        "dangerous_goods_contact": {
          "name": "Michael Robinson",
          "phone": "123456578789"
        },
        "windsor_framework_details": {
          "movement_indicator": "b2b",
          "not_at_risk": true
        },
        "ancillary_endorsements_option": "forward",
        "return_pickup_attempts": 3,
        "own_document_upload": false,
        "limited_quantity": false,
        "event_notification": false,
        "delivery_as_addressed": false,
        "return_after_first_attempt": false
      },
      "insurance_provider": "none",
      "tags": [],
      "order_source_code": "amazon_ca",
      "packages": [
        {
          "package_id": "se-123456",
          "package_code": "thick_envelope",
          "package_name": "Flat Rate Envelope",
          "weight": {
            "value": 23,
            "unit": "pound"
          },
          "dimensions": {
            "unit": "inch",
            "length": 2,
            "width": 2,
            "height": 1
          },
          "insured_value": [
            {
              "currency": "usd",
              "amount": 0
            }
          ],
          "label_messages": {
            "reference1": "Reference",
            "reference2": "Reference 2",
            "reference3": "Reference 3"
          },
          "external_package_id": "se-1234545",
          "content_description": "Hand knitted wool socks",
          "products": []
        }
      ],
      "comparison_rate_type": "retail"
    },
    "label_format": "pdf",
    "label_layout": "4x6",
    "display_scheme": "label",
    "label_download_type": "url"
  }'

Responses

Label created successfully using Rate Shopper

Bodyapplication/json
rate_shopper_idstringread-only

The Rate Shopper strategy used to create this label

Enum"cheapest""fastest""best_value"
Example: "cheapest"
label_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-only

A string that uniquely identifies the label. This ID is generated by ShipStation when the label is created.

Example: "se-28529731"
statusstring(label_status)read-only

The possible statuses that a [shipping label] can be in.

StatusDescription
processingWhen labels are created in a [batch], it may take a few minutes for all of the labels in the batch to be created. During this period, they will be in processing status.
completedThe label was successfully created
errorThe label could not be created due to an error, such as an invalid delivery address
voidedThe label has been [voided]
Enum"processing""completed""error""voided"
Example: "completed"
shipment_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-only

The shipment that this label is for. ShipStation can create a shipment for you automatically when you [create a label], or you can [create your own shipment] and then [use it to print a label]

Example: "se-28529731"
external_shipment_idstring or null<= 50 charactersread-only

A unique user-defined key to identify a shipment. This can be used to retrieve the shipment.

Warning: The external_shipment_id is limited to 50 characters. Any additional characters will be truncated.

Example: "externalId-1234556"
external_order_idstring or nullread-only

ID that the Order Source assigned

Example: "externalOrderId-1232434"
ship_datestring(date-time)(date)^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?...read-only

An ISO 8601 string that represents a date, but not a specific time. The value may contain a time component, but it will be set to 00:00:00 UTC by ShipStation .

Example: "2018-09-23T00:00:00Z"
created_atstring(date-time)(date_time)^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(...read-only

An ISO 8601 string that represents a date and time.

Example: "2018-09-23T15:00:00.000Z"
shipment_costobject(monetary_value)read-only

The cost of shipping, delivery confirmation, and other carrier charges. This amount does not include insurance costs.

insurance_costobject(monetary_value)read-only

The insurance cost for this package. Add this to the shipment_cost field to get the total cost.

requested_comparison_amountobject(monetary_value)read-only

The total shipping cost for the specified comparison_rate_type.

tracking_numberstringnon-emptyread-only

The tracking number for the package. Tracking number formats vary across carriers.

Example: "782758401696"
is_return_labelboolean

Indicates whether this is a return label. You may also want to set the rma_number so you know what is being returned.

Example: true
rma_numberstring or null

An optional Return Merchandise Authorization number. This field is useful for return labels. You can set it to any string value.

Example: "asd12323"
is_internationalbooleanread-only

Indicates whether this is an international shipment. That is, the originating country and destination country are different.

Example: true
batch_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-only

If this label was created as part of a [batch], then this is the unique ID of that batch.

Example: "se-28529731"
carrier_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-only

The unique ID of the [carrier account] that was used to create this label

Example: "se-28529731"
charge_eventstring(label_charge_event)

The label charge event.

Enum"carrier_default""on_creation""on_carrier_acceptance"
service_codestring(service_code)^[a-z0-9]+(_[a-z0-9-]+)* ?$read-only

A [carrier service], such as fedex_ground, usps_first_class_mail, flat_rate_envelope, etc.

Example: "usps_first_class_mail"
package_codestring(package_code)[ 1 .. 50 ] characters^[a-z0-9]+(_[a-z0-9]+)*$read-only

A [package type] , such as thick_envelope, small_flat_rate_box, large_package, etc. Use the code package for custom or unknown package types.

Example: "small_flat_rate_box"
voidedbooleanread-only

Indicates whether the label has been [voided]

Example: true
voided_atstring or null(date-time)(date_time)^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(...read-only

An ISO 8601 string that represents a date and time.

Example: "2018-09-23T15:00:00.000Z"
label_formatstring(label_format)

The possible file formats in which shipping labels can be downloaded. We recommend pdf format because it is supported by all carriers, whereas some carriers do not support the png or zpl formats.

Label FormatSupported Carriers
pdfAll carriers
pngfedex
stamps_com
ups
usps
zplaccess_worldwide
apc
asendia
dhl_global_mail
dhl_express
dhl_express_australia
dhl_express_canada
dhl_express_worldwide
dhl_express_uk
dpd
endicia
fedex
fedex_uk
firstmile
imex
newgistics
ontrac
rr_donnelley
stamps_com
ups
usps
Default "pdf"
Enum"pdf""png""zpl"
display_schemestring(display_scheme)

The display format that the label should be shown in.

Default "label"
Enum"label""qr_code""label_and_qr_code""paperless""label_and_paperless"
label_layoutstring(label_layout)

The available layouts (sizes) in which shipping labels can be downloaded. The label format determines which sizes are supported. 4x6 is supported for all label formats, whereas letter (8.5" x 11") is only supported for pdf format.

Default "4x6"
Enum"4x6""letter"
trackablebooleanread-only

Indicates whether the shipment is trackable, in which case the tracking_status field will reflect the current status and each package will have a tracking_number.

Example: true
label_image_idstring or null(image_id)>= 4 characters

The label image resource that was used to create a custom label image.

Example: "img_DtBXupDBxREpHnwEXhTfgK"
carrier_codestring(carrier_code)^[a-z0-9]+(_[a-z0-9]+)*$read-only

A [shipping carrier] , such as fedex, dhl_express, stamps_com, etc.

Example: "dhl_express"
confirmationstring(delivery_confirmation)read-only

The type of delivery confirmation that is required for this shipment.

Default "none"
Enum"none""delivery""signature""adult_signature""direct_signature""delivery_mailed""verbal_confirmation""delivery_code""age_verification_16_plus"
tracking_statusstring(tracking_status)read-only

The current status of the package, such as in_transit or delivered

Enum"unknown""in_transit""error""delivered"
label_downloadobject(label_download)read-only

Reference to the various downloadable file formats for the generated label

form_downloadobject or null(optional_link)read-only

The link to download the customs form (a.k.a. commercial invoice) for this shipment, if any. Forms are in PDF format. This field is null if the shipment does not require a customs form, or if the carrier does not support it.

qr_code_downloadobject or null(optional_link)read-only

The QR code download for the package

paperless_downloadobject or null(paperless_download)read-only

The paperless details which may contain elements like href, instructions and handoff_code.

insurance_claimobject or null(optional_link)read-only

The link to submit an insurance claim for the shipment. This field is null if the shipment is not insured or if the insurance provider does not support online claim submission.

packagesArray of objects(label_package)read-only

The label's package(s).

Note: Some carriers only allow one package per label. If you attempt to create a multi-package label for a carrier that doesn't allow it, an error will be returned.

alternative_identifiersArray of objects or null(alternative_identifier)read-only

Additional information some carriers may provide by which to identify a given label in their system.

rate_detailsArray of objectsread-only
tracking_urlstring or nullread-only

The URL to track the package. This URL is provided by the carrier and is unique to the tracking number.

Example: "https://www.fedex.com/fedextrack/?action=track&trackingnumber=1234"
ship_toobject(partial_shipping_address_to)read-only

Any residential or business mailing address, anywhere in the world.

Note: Either name or company_name must be set. Both may be specified, if relevant.

Response
application/json
{ "rate_shopper_id": "cheapest", "label_id": "se-123456", "status": "completed", "shipment_id": "se-1234567", "external_shipment_id": "externalId-1234556", "external_order_id": "externalOrderId-1232434", "ship_date": "2018-09-23T00:00:00Z", "created_at": "2018-09-23T15:00:00.000Z", "shipment_cost": { "currency": "string", "amount": 12 }, "insurance_cost": { "currency": "string", "amount": 12 }, "requested_comparison_amount": { "currency": "string", "amount": 12 }, "tracking_number": "782758401696", "is_return_label": true, "rma_number": "asd12323", "is_international": true, "batch_id": "se-28529731", "carrier_id": "se-1234567", "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", "confirmation": "none", "tracking_status": "unknown", "label_download": { "href": "http://api.shipstation.com/v2/labels/se-28529731", "pdf": "http://api.shipstation.com/v2/labels/se-28529731", "png": "http://api.shipstation.com/v2/labels/se-28529731", "zpl": "http://api.shipstation.com/v2/labels/se-28529731" }, "form_download": { "href": "http://api.shipstation.com/v2/labels/se-28529731", "type": "child" }, "qr_code_download": { "href": "http://api.shipstation.com/v2/labels/se-28529731", "type": "child" }, "paperless_download": { "href": "http://api.shipstation.com/v2/labels/se-28529731", "instructions": "any instructions", "handoff_code": "122334" }, "insurance_claim": { "href": "http://api.shipstation.com/v2/labels/se-28529731", "type": "child" }, "packages": [ {} ], "alternative_identifiers": [ {} ], "rate_details": [ {} ], "tracking_url": "https://www.fedex.com/fedextrack/?action=track&trackingnumber=1234", "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": "yes", "instructions": "any instruction", "geolocation": [] } }

Get shipping rates

Request

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!

Security
api_keys
Bodyapplication/jsonrequired
One of:

A rate shipment request body

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

A string that uniquely identifies the shipment

Example: "se-28529731"
rate_optionsobject(rate_request_body)

The rate options

curl -i -X POST \
  https://docs.shipstation.com/_mock/openapi/v2/rates \
  -H 'Content-Type: application/json' \
  -H 'api-key: YOUR_API_KEY_HERE' \
  -d '{
    "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
    }
  }'

Responses

The request was a success.

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

A string that uniquely identifies the shipment

Example: "se-28529731"
carrier_idstring or null(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$

The carrier account that is billed for the shipping charges

Example: "se-28529731"
service_codestring or null(service_code)^[a-z0-9]+(_[a-z0-9-]+)* ?$

A [carrier service], such as fedex_ground, usps_first_class_mail, flat_rate_envelope, etc.

Example: "usps_first_class_mail"
requested_shipment_servicestring or null

The requested shipment service

Example: "usps_priority_mail"
shipping_rule_idstring or null(se_id)[ 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

Example: "se-28529731"
external_order_idstring or null

ID that the Order Source assigned

Example: "1232434"
hold_until_datestring or null(date-time)

Date to hold the shipment until

Example: "2025-01-15T00:00:00.000Z"
ship_by_datestring or null(date-time)

Date by which the shipment should be shipped

Example: "2025-01-15T00:00:00.000Z"
retail_rateobject or null(monetary_value)

The retail rate for the shipment

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

The store ID associated with the shipment

Example: "se-28529731"
itemsArray of objects(shipment_item)

Describe the packages included in this shipment as related to potential metadata that was imported from external order sources

Default []
notes_from_buyerstring or null

Notes from the buyer

Example: "Please handle with care"
notes_for_giftstring or null

Gift notes

Example: "Happy Birthday!"
is_giftboolean

Indicates if the shipment is a gift

Default false
Example: true
assigned_userstring or null

User assigned to the shipment

Example: "user@example.com"
amount_paidobject(monetary_value)

Total amount paid for the order

shipping_paidobject(monetary_value)

Amount paid for shipping

tax_paidobject(monetary_value)

Amount paid for taxes

zoneinteger or null(int32)>= 0

Shipping zone

Example: 1
display_schemestring or null

Display scheme for the shipment

Example: "label"
tax_identifiersArray of objects or null(tax_identifier)
external_shipment_idstring or null<= 50 characters

A unique user-defined key to identify a shipment. This can be used to retrieve the shipment.

Warning: The external_shipment_id is limited to 50 characters. Any additional characters will be truncated.

Example: "1234556"
shipment_numberstring or null<= 50 characters

A non-unique user-defined number used to identify a shipment. If undefined, this will match the external_shipment_id of the shipment.

Warning: The shipment_number is limited to 50 characters. Any additional characters will be truncated.

Example: "10001"
ship_datestring or null(date-time)(date)^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?...required

An ISO 8601 string that represents a date, but not a specific time. The value may contain a time component, but it will be set to 00:00:00 UTC by ShipStation .

Example: "2018-09-23T00:00:00Z"
created_atstring(date-time)(date_time)^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(...read-onlyrequired

An ISO 8601 string that represents a date and time.

Example: "2018-09-23T15:00:00.000Z"
modified_atstring(date-time)(date_time)^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(...read-onlyrequired

An ISO 8601 string that represents a date and time.

Example: "2018-09-23T15:00:00.000Z"
shipment_statusstring(shipment_status)read-onlyrequired

The current status of the shipment

Default "pending"
Enum"pending""processing""label_purchased""cancelled"
ship_toobject(partial_shipping_address_to)

Any residential or business mailing address, anywhere in the world.

Note: Either name or company_name must be set. Both may be specified, if relevant.

ship_fromobject(partial_shipping_address)

Any residential or business mailing address, anywhere in the world.

Note: Either name or company_name must be set. Both may be specified, if relevant.

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

The [warehouse] that the shipment is being shipped from. Either warehouse_id or ship_from must be specified.

Default null
Example: "se-28529731"
return_toobject(partial_shipping_address)required

Any residential or business mailing address, anywhere in the world.

Note: Either name or company_name must be set. Both may be specified, if relevant.

return_to.​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_to.​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_to.​emailstring or null

Email for the address owner.

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

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

Example: "The Home Depot"
return_to.​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_to.​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_to.​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_to.​city_localitystringnon-emptyrequired

The name of the city or locality

Example: "Winnipeg"
return_to.​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_to.​postal_codestring(postal_code)non-emptyrequired

postal code

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

Indicates whether this is a residential address.

Default "unknown"
Enum"unknown""yes""no"
Example: "yes"
return_to.​instructionsstring or nullnon-empty

Additional text about how to handle the shipment at this address.

Example: "any instructions"
is_returnboolean or null

An optional indicator if the shipment is intended to be a return. Defaults to false if not provided.

Default false
Example: true
confirmationstring(delivery_confirmation)required

The type of delivery confirmation that is required for this shipment

Default "none"
Enum"none""delivery""signature""adult_signature""direct_signature""delivery_mailed""verbal_confirmation""delivery_code""age_verification_16_plus"
customsobject or null(international_shipment_options)required

Customs information. This is usually only needed for international shipments.

Default null
customs.​contentsstring(package_contents)required

The type of contents in this shipment. This may impact import duties or customs treatment.

Default "merchandise"
Enum"merchandise""documents""gift""returned_goods""sample""other"
customs.​contents_explanationstring

Explanation for contents (required if the contents is provided as other)

Example: "rubber duckies"
customs.​non_deliverystring(non_delivery)required

Indicates what to do if a package is unable to be delivered.

Default "return_to_sender"
Enum"return_to_sender""treat_as_abandoned"
customs.​terms_of_trade_codestring(Allowed incoterms)

Specifies the supported terms of trade code (incoterms)

Enum"exw""fca""cpt""cip""dpu""dap""ddp""fas""fob""cfr"
customs.​declarationstring

Declaration statement to be placed on the commercial invoice

Example: "I hereby certify that the information on this invoice is true and correct and that the contents and value of this shipment are as stated above"
customs.​invoice_additional_detailsobject(invoice_additional_details)

The additional information to put on commercial invoice

customs.​importer_of_recordobject(importer_of_records)

importer of records address, anywhere in the world.

customs.​customs_itemsArray of objects(customs_item)>= 0 itemsDeprecated

Customs declarations for each item in the shipment. (Please provide this information under products inside packages)

Default []
advanced_optionsobject(advanced_shipment_options)required

Advanced shipment options. These are entirely optional.

advanced_options.​bill_to_accountstring or null

This field is used to [bill shipping costs to a third party]. This field must be used in conjunction with the bill_to_country_code, bill_to_party, and bill_to_postal_code fields.

Default null
Example: "123456789"
advanced_options.​bill_to_country_codestring or null(country_code)= 2 characters
Default null
Example: "CA"
advanced_options.​bill_to_partystring or null(bill_to_party)

Indicates whether to bill shipping costs to the recipient or to a third-party. When billing to a third-party, the bill_to_account, bill_to_country_code, and bill_to_postal_code fields must also be set.

Default null
Enum"recipient""third_party"
Example: "third_party"
advanced_options.​bill_to_postal_codestring or null

The postal code of the third-party that is responsible for shipping costs.

Default null
Example: "28005"
advanced_options.​contains_alcoholboolean

Indicates that the shipment contains alcohol.

Default false
Example: true
advanced_options.​delivered_duty_paidboolean

Indicates that the shipper is paying the international delivery duties for this shipment. This option is supported by UPS, FedEx, and DHL Express.

Default false
Example: true
advanced_options.​dry_iceboolean

Indicates if the shipment contain dry ice

Default false
Example: true
advanced_options.​dry_ice_weightobject or null(weight)

The weight of the dry ice in the shipment

advanced_options.​non_machinableboolean

Indicates that the package cannot be processed automatically because it is too large or irregularly shaped. This is primarily for USPS shipments. See Section 1.2 of the USPS parcel standards for details.

Default false
Example: true
advanced_options.​saturday_deliveryboolean

Enables Saturday delivery, if supported by the carrier.

Default false
Example: true
advanced_options.​fedex_freightobject

Provide details for the Fedex freight service

advanced_options.​use_ups_ground_freight_pricingboolean or null

Whether to use [UPS Ground Freight pricing] If enabled, then a freight_class must also be specified.

Default null
Example: true
advanced_options.​freight_classstring or null

The National Motor Freight Traffic Association freight class, such as "77.5", "110", or "250".

Default null
Example: "77.5"
advanced_options.​custom_field1string or null<= 100 characters

An arbitrary field that can be used to store information about the shipment.

Default null
Example: "custom field 1"
advanced_options.​custom_field2string or null<= 100 characters

An arbitrary field that can be used to store information about the shipment.

Default null
Example: "custom field 2"
advanced_options.​custom_field3string or null<= 100 characters

An arbitrary field that can be used to store information about the shipment.

Default null
Example: "custom field 3"
advanced_options.​origin_typestring or null(origin_type)

Indicates if the package will be picked up or dropped off by the carrier

Default null
Enum"pickup""drop_off"
advanced_options.​additional_handlingboolean or null

Indicate to the carrier that this shipment requires additional handling.

Default null
Example: true
advanced_options.​shipper_releaseboolean or null
Default null
Example: true
advanced_options.​collect_on_deliveryobject(collect_on_delivery)

Defer payment until package is delivered, instead of when it is ordered.

advanced_options.​third_party_consigneeboolean

Third Party Consignee option is a value-added service that allows the shipper to supply goods without commercial invoices being attached

Default false
Example: true
advanced_options.​dangerous_goodsboolean

Indicates if the Dangerous goods are present in the shipment

Default false
Example: true
advanced_options.​dangerous_goods_contactobject

Contact information for Dangerous goods

advanced_options.​windsor_framework_detailsobject

The Windsor framework is a new regulation in the UK that simplifies customs procedures for goods moved from the UK mainland to Northern Ireland.

advanced_options.​ancillary_endorsements_optionstring or null

Ancillary endorsements option for the shipment

Example: "forward"
advanced_options.​return_pickup_attemptsinteger or null

Number of return pickup attempts

Example: 3
advanced_options.​own_document_uploadboolean

Indicates if own document upload is enabled

Default false
Example: false
advanced_options.​limited_quantityboolean

Indicates if the shipment contains limited quantities

Default false
Example: false
advanced_options.​event_notificationboolean

Indicates if event notifications are enabled

Default false
Example: false
advanced_options.​delivery_as_addressedboolean

Instructs the carrier to deliver the package only to the exact address provided

Default false
Example: false
advanced_options.​return_after_first_attemptboolean

Ensures the shipment is immediately flagged for return to the sender if the initial delivery attempt fails

Default false
Example: false
insurance_providerstring(insurance_provider)required

The insurance provider to use for any insured packages in the shipment.

Default "none"
Enum"none""shipsurance""carrier""third_party"
tagsArray of objects(tag)>= 0 itemsrequired

Arbitrary tags associated with this shipment. Tags can be used to categorize shipments, and shipments can be queried by their tags. Note: Tags require object structure with name property, not simple strings.

Default []
tags[].​namestringnon-emptyrequired

The tag name.

Example: "Fragile"
order_source_codestring(order_source_name)

The order sources that are supported by ShipStation

Enum"amazon_ca""amazon_us""brightpearl""channel_advisor""cratejoy""ebay""etsy""jane""groupon_goods""magento"
packagesArray of objects(package)non-emptyrequired

The packages in the shipment.

Note: Some carriers only allow one package per shipment. If you attempt to create a multi-package shipment for a carrier that doesn't allow it, an error will be returned.

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

A string that uniquely identifies this shipment package

Example: "se-28529731"
packages[].​package_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$

A string that uniquely identifies this [package type]

Example: "se-28529731"
packages[].​package_codestring(package_code)[ 1 .. 50 ] characters^[a-z0-9]+(_[a-z0-9]+)*$

A [package type] , such as thick_envelope, small_flat_rate_box, large_package, etc. Use the code package for custom or unknown package types.

Example: "small_flat_rate_box"
packages[].​package_namestring

The name of the of the [package type]

Example: "Flat Rate Envelope"
packages[].​weightobject(weight)required

The package weight

packages[].​weight.​valuenumber> 0required

The weight, in the specified unit

Example: 23
packages[].​weight.​unitstring(weight_unit)required

Weight unit

Enum"pound""ounce""gram""kilogram"
packages[].​dimensionsobject(dimensions)

The package dimensions

packages[].​insured_valueobject(monetary_value)

The insured value of the package. Requires the insurance_provider field of the shipment to be set.

Default [{"currency":"usd","amount":0}]
packages[].​label_messagesobject(label_messages)

Custom messages to print on the shipping label for the package. These are typically used to print invoice numbers, product numbers, or other internal reference numbers. Not all carriers support label messages. The number of lines and the maximum length of each line also varies by carrier.

CarrierMax linesMax line length
USPS (Stamps.com)360
FedEx335 for the first line. 30 for additional lines.
UPS235
OnTrac225
packages[].​external_package_idstringnon-empty

An external package id.

Example: "se-1234545"
packages[].​tracking_numberstring(tracking_number)non-emptyread-only

The tracking number for the package. The format depends on the carrier.

Example: "1Z932R800392060079"
packages[].​content_descriptionstring or null[ 1 .. 35 ] characters

A short description of the package content. Required for shipments moving to, from, and through Mexico.

Example: "Hand knitted wool socks"
packages[].​productsArray of objects(products)>= 0 items

Details about products inside packages (Information provided would be used on custom documentation)

Default []
total_weightobject(weight)read-onlyrequired

The combined weight of all packages in the shipment

total_weight.​valuenumber> 0required

The weight, in the specified unit

Example: 3
total_weight.​unitstring(weight_unit)required

Weight unit

Enum"pound""ounce""gram""kilogram"
Example: "pound"
comparison_rate_typestring or null

Calculate a rate for this shipment with the requested carrier using a ratecard that differs from the default. Only supported for UPS and USPS.

Example: "retail"
rate_responseobject(rates_information)required

The rates response

rate_response.​ratesArray of objects(rate)read-only

An array of shipment rates

rate_response.​invalid_ratesArray of objects(rate)read-only

An array of invalid shipment rates

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

A string that uniquely identifies the rate request

Example: "se-28529731"
rate_response.​shipment_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-only

A string that uniquely identifies the shipment

Example: "se-28529731"
rate_response.​created_atstring(date-time)(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$

When the rate was created

Example: "se-28529731"
rate_response.​statusstring(rate_response_status)read-only

The possible rate response status values

Enum"working""completed""partial""error"
rate_response.​errorsArray of objects(error)
Response
application/json
{ "shipment_id": "se-28529731", "carrier_id": "se-1234567", "service_code": "se_1234567", "requested_shipment_service": "usps_priority_mail", "shipping_rule_id": "se-1234", "external_order_id": "1232434", "hold_until_date": "2025-01-15T00:00:00.000Z", "ship_by_date": "2025-01-15T00:00:00.000Z", "retail_rate": { "currency": "string", "amount": 12 }, "store_id": "se-12345", "items": [], "notes_from_buyer": "Please handle with care", "notes_for_gift": "Happy Birthday!", "is_gift": true, "assigned_user": "user@example.com", "amount_paid": { "currency": "string", "amount": 12 }, "shipping_paid": { "currency": "string", "amount": 12 }, "tax_paid": { "currency": "string", "amount": 12 }, "zone": 1, "display_scheme": "label", "tax_identifiers": [ {} ], "external_shipment_id": "1234556", "shipment_number": "10001", "ship_date": "2018-09-23T00:00:00Z", "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": "yes", "instructions": "any instruction", "geolocation": [] }, "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": "yes", "instructions": "any instructions" }, "warehouse_id": null, "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": "yes", "instructions": "any instructions" }, "is_return": true, "confirmation": "none", "customs": null, "advanced_options": { "bill_to_account": "123456789", "bill_to_country_code": "US", "bill_to_party": "third_party", "bill_to_postal_code": "28005", "contains_alcohol": true, "delivered_duty_paid": true, "dry_ice": true, "dry_ice_weight": {}, "non_machinable": true, "saturday_delivery": true, "fedex_freight": {}, "use_ups_ground_freight_pricing": true, "freight_class": "77.5", "custom_field1": "custom field 1", "custom_field2": "custom field 2", "custom_field3": "custom field 3", "origin_type": null, "additional_handling": true, "shipper_release": true, "collect_on_delivery": {}, "third_party_consignee": true, "dangerous_goods": true, "dangerous_goods_contact": {}, "windsor_framework_details": {}, "ancillary_endorsements_option": "forward", "return_pickup_attempts": 3, "own_document_upload": false, "limited_quantity": false, "event_notification": false, "delivery_as_addressed": false, "return_after_first_attempt": false }, "insurance_provider": "none", "tags": [], "order_source_code": "amazon_ca", "packages": [ {} ], "total_weight": { "value": 3, "unit": "pound" }, "comparison_rate_type": "retail", "rate_response": { "rates": [], "invalid_rates": [], "rate_request_id": "se-28529731", "shipment_id": "se-28529731", "created_at": "se-28529731", "status": "working", "errors": [] } }

Estimate rates

Request

Get Rate Estimates

Security
api_keys
Bodyapplication/jsonrequired
One of:

A rate estimate request body

from_country_codestring(country_code)= 2 charactersrequired
Example: "CA"
from_postal_codestring(postal_code)non-emptyrequired

postal code

Example: "78756-3717"
from_city_localitystringnon-emptyrequired

from postal code

Example: "Austin"
from_state_provincestringnon-emptyrequired

From state province

Example: "Austin"
to_country_codestring(country_code)= 2 charactersrequired
Example: "CA"
to_postal_codestring(postal_code)non-emptyrequired

postal code

Example: "78756-3717"
to_city_localitystringnon-emptyrequired

The city locality the package is being shipped to

Example: "Austin"
to_state_provincestringnon-emptyrequired

To state province

Example: "Houston"
weightobject(weight)required

The weight of the package

weight.​valuenumber> 0required

The weight, in the specified unit

Example: 3
weight.​unitstring(weight_unit)required

Weight unit

Enum"pound""ounce""gram""kilogram"
Example: "pound"
dimensionsobject(dimensions)

The dimensions of the package

confirmationstring(delivery_confirmation)

The possible delivery confirmation values

Enum"none""delivery""signature""adult_signature""direct_signature""delivery_mailed""verbal_confirmation""delivery_code""age_verification_16_plus"
address_residential_indicatorstring(address_residential_indicator)

Indicates whether an address is residential.

Enum"unknown""yes""no"
ship_datestring(date-time)(date_time)^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(...required

An ISO 8601 string that represents a date and time.

Example: "2018-09-23T15:00:00.000Z"
carrier_idstring(se_id)[ 1 .. 25 ] charactersDeprecated^se(-[a-z0-9]+)+$

A string that uniquely identifies the carrier

Example: "se-28529731"
curl -i -X POST \
  https://docs.shipstation.com/_mock/openapi/v2/rates/estimate \
  -H 'Content-Type: application/json' \
  -H 'api-key: YOUR_API_KEY_HERE' \
  -d '{
    "carrier_id": "se-1234567",
    "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": 3,
      "unit": "pound"
    },
    "dimensions": {
      "unit": "inch",
      "length": 2,
      "width": 2,
      "height": 1
    },
    "confirmation": "none",
    "address_residential_indicator": "unknown",
    "ship_date": "2018-09-23T15:00:00.000Z"
  }'

Responses

The request was a success.

Bodyapplication/jsonArray [
rate_typestring(rate_type)read-onlyrequired

The possible rate type values

Enum"check""shipment"
carrier_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-onlyrequired

A string that uniquely identifies the carrier

Example: "se-28529731"
shipping_amountobject(monetary_value)read-onlyrequired

The shipping amount

shipping_amount.​currencystring(currency)required

Currency code

shipping_amount.​amountnumber>= 0required

The monetary amount, in the specified currency.

Example: 12
insurance_amountobject(monetary_value)read-onlyrequired

The insurance amount

insurance_amount.​currencystring(currency)required

Currency code

insurance_amount.​amountnumber>= 0required

The monetary amount, in the specified currency.

Example: 12
confirmation_amountobject(monetary_value)read-onlyrequired

The confirmation amount

confirmation_amount.​currencystring(currency)required

Currency code

confirmation_amount.​amountnumber>= 0required

The monetary amount, in the specified currency.

Example: 12
other_amountobject(monetary_value)read-onlyrequired

Any other charges associated with this rate

other_amount.​currencystring(currency)required

Currency code

other_amount.​amountnumber>= 0required

The monetary amount, in the specified currency.

Example: 12
tax_amountobject(monetary_value)read-only

Tariff and additional taxes associated with an international shipment.

zoneinteger or null(int32)>= 0read-onlyrequired

Certain carriers base their rates off of custom zones that vary depending upon the ship_to and ship_from location

Example: 6
package_typestring or nullnon-emptyread-onlyrequired

package type that this rate was estimated for

Example: "package"
delivery_daysinteger(int32)>= 1read-only

The number of days estimated for delivery, this will show the actual delivery time if for example, the package gets shipped on a Friday

Example: 5
guaranteed_servicebooleanread-onlyrequired

Indicates if the rate is guaranteed.

Example: true
estimated_delivery_datestring(date-time)(date)^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?...read-only

An ISO 8601 string that represents a date, but not a specific time. The value may contain a time component, but it will be set to 00:00:00 UTC by ShipStation .

Example: "2018-09-23T00:00:00Z"
carrier_delivery_daysstringnon-emptyread-only

The carrier delivery days

Example: "22"
ship_datestring(date-time)non-emptyread-only

ship date

Example: "2024-12-23T00:00:00.000Z"
negotiated_ratebooleanread-onlyrequired

Indicates if the rates been negotiated

Example: true
service_typestringnon-emptyread-onlyrequired

service type

Example: "next_day"
service_codestringnon-emptyread-onlyrequired

service code for the rate

Example: "usps_priority_mail_express"
trackablebooleanread-onlyrequired

Indicates if rate is trackable

Example: true
carrier_codestringnon-emptyread-onlyrequired

A [shipping carrier] , such as fedex, dhl_express, stamps_com, etc.

Example: "stamps_com"
carrier_nicknamestringnon-emptyread-onlyrequired

carrier nickname

Example: "free"
carrier_friendly_namestringnon-emptyread-onlyrequired

carrier friendly name

Example: "free"
validation_statusstring(validation_status)read-onlyrequired

The possible validation status values

Enum"valid""invalid""has_warnings""unknown"
Example: "valid"
warning_messagesArray of strings>= 0 itemsread-onlyrequired

The warning messages

Example: ["warning"]
error_messagesArray of strings>= 0 itemsread-onlyrequired

The error messages

Example: ["error"]
]
Response
application/json
[ { "rate_type": "check", "carrier_id": "se-1234567", "shipping_amount": {}, "insurance_amount": {}, "confirmation_amount": {}, "other_amount": {}, "tax_amount": {}, "zone": 6, "package_type": "package", "delivery_days": 5, "guaranteed_service": true, "estimated_delivery_date": "2018-09-23T00:00:00Z", "carrier_delivery_days": "22", "ship_date": "2024-12-23T00:00:00.000Z", "negotiated_rate": true, "service_type": "next_day", "service_code": "usps_priority_mail_express", "trackable": true, "carrier_code": "stamps_com", "carrier_nickname": "free", "carrier_friendly_name": "free", "validation_status": "valid", "warning_messages": [], "error_messages": [] } ]

Get rate by id

Request

Retrieve a previously queried rate by its ID

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

Rate ID

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

Responses

The request was a success.

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

A string that uniquely identifies the rate

Example: "se-28529731"
rate_typestring(rate_type)read-onlyrequired

The possible rate type values

Enum"check""shipment"
carrier_idstring(se_id)[ 1 .. 25 ] characters^se(-[a-z0-9]+)+$read-onlyrequired

A string that uniquely identifies the carrier

Example: "se-28529731"
shipping_amountobject(monetary_value)read-onlyrequired

The shipping amount. Should be added with confirmation_amount, insurance_amount and other_amount to calculate the total purchase price.

shipping_amount.​currencystring(currency)required

Currency code

shipping_amount.​amountnumber>= 0required

The monetary amount, in the specified currency.

Example: 12
insurance_amountobject(monetary_value)read-onlyrequired

The insurance amount. Should be added with shipping_amount, confirmation_amount and other_amount to calculate the total purchase price.

insurance_amount.​currencystring(currency)required

Currency code

insurance_amount.​amountnumber>= 0required

The monetary amount, in the specified currency.

Example: 12
confirmation_amountobject(monetary_value)read-onlyrequired

The confirmation amount. Should be added with shipping_amount, insurance_amount and other_amount to calculate the total purchase price.

confirmation_amount.​currencystring(currency)required

Currency code

confirmation_amount.​amountnumber>= 0required

The monetary amount, in the specified currency.

Example: 12
other_amountobject(monetary_value)read-onlyrequired

Any other charges associated with this rate. Should be added with shipping_amount, insurance_amount and confirmation_amount to calculate the total purchase price.

other_amount.​currencystring(currency)required

Currency code

other_amount.​amountnumber>= 0required

The monetary amount, in the specified currency.

Example: 12
requested_comparison_amountobject(monetary_value)read-only

The total shipping cost for the specified comparison_rate_type.

tax_amountobject(monetary_value)read-only

Tariff and additional taxes associated with an international shipment.

zoneinteger or null(int32)>= 0read-onlyrequired

Certain carriers base their rates off of custom zones that vary depending upon the ship_to and ship_from location

Example: 6
package_typestring or nullnon-emptyread-onlyrequired

package type that this rate was estimated for

Example: "package"
delivery_daysinteger(int32)>= 1read-only

The number of days estimated for delivery, this will show the actual delivery time if for example, the package gets shipped on a Friday

Example: 5
guaranteed_servicebooleanread-onlyrequired

Indicates if the rate is guaranteed.

Example: true
estimated_delivery_datestring(date-time)(date)^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?...read-only

An ISO 8601 string that represents a date, but not a specific time. The value may contain a time component, but it will be set to 00:00:00 UTC by ShipStation .

Example: "2018-09-23T00:00:00Z"
carrier_delivery_daysstringnon-emptyread-only

The carrier delivery days

Example: "22"
ship_datestring(date-time)non-emptyread-only

ship date

Example: "2024-10-22T00:00:00Z"
negotiated_ratebooleanread-onlyrequired

Indicates if the rates been negotiated

Example: true
service_typestringnon-emptyread-onlyrequired

service type

Example: "next_day"
service_codestringnon-emptyread-onlyrequired

service code for the rate

Example: "usps_priority_mail_express"
trackablebooleanread-onlyrequired

Indicates if rate is trackable

Example: true
carrier_codestringnon-emptyread-onlyrequired

carrier code

Example: "stamps_com"
carrier_nicknamestringnon-emptyread-onlyrequired

carrier nickname

Example: "Free"
carrier_friendly_namestringnon-emptyread-onlyrequired

carrier friendly name

Example: "free"
validation_statusstring(validation_status)read-onlyrequired

The possible validation status values

Enum"valid""invalid""has_warnings""unknown"
warning_messagesArray of strings>= 0 itemsread-onlyrequired

The warning messages

error_messagesArray of strings>= 0 itemsread-onlyrequired

The error messages

Response
application/json
{ "rate_id": "se-28529731", "rate_type": "check", "carrier_id": "se-1234567", "shipping_amount": { "currency": "string", "amount": 12 }, "insurance_amount": { "currency": "string", "amount": 12 }, "confirmation_amount": { "currency": "string", "amount": 12 }, "other_amount": { "currency": "string", "amount": 12 }, "requested_comparison_amount": { "currency": "string", "amount": 12 }, "tax_amount": { "currency": "string", "amount": 12 }, "zone": 6, "package_type": "package", "delivery_days": 5, "guaranteed_service": true, "estimated_delivery_date": "2024-12-23T00:00:00.000Z", "carrier_delivery_days": "22", "ship_date": "2024-10-22T00:00:00Z", "negotiated_rate": true, "service_type": "next_day", "service_code": "usps_priority_mail_express", "trackable": true, "carrier_code": "stamps_com", "carrier_nickname": "Free", "carrier_friendly_name": "free", "validation_status": "valid", "warning_messages": [ "string" ], "error_messages": [ "string" ] }

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

Totes

Manage totes (bins or containers) used in warehouse picking and packing operations. Create, update, delete totes and track tote quantities by warehouse.

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

Users

Manage and retrieve user information for the ShipStation account. This endpoint allows you to list users with various filtering options.

Operations

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