Validates shipment details and returns all available rates.
Stallion Express API (4)
Access to the sandbox environment can be provided upon request. (Not all rates are available in the Sandbox environment). API token can be found under "Account Settings > API Token" in the Stallion Express dashboard. To help us assist you more effectively when troubleshooting, please make sure to include the Request-ID in your email communication.
Shipment details
Recipient address for the shipment.
The full name associated with the address.
The company name associated with the address, if applicable.
The primary street address or post office box number.
Additional address information, such as suite or apartment number, if needed.
The city or locality of the address.
The code for the state, province, or territory where the address is located.
The postal or ZIP code for the address.
The two-letter ISO code representing the country of the address.
The contact phone number for the address, if provided.
The email address associated with the address, if available.
The return address is required exclusively for generating a return label and should only be provided if is_return is set to true. This field is not applicable to regular shipments.
Represents the total weight of the shipment in the specified weight unit (e.g., kg, g, oz, or lbs).
Specifies the length of the shipment package, measured in the designated size unit (e.g., in or cm). This measurement should correspond to the longest side of the package.
Indicates the width of the shipment package, measured in the designated size unit (e.g., in or sm). Width is typically the second longest side of the package, perpendicular to the length.
Defines the height of the shipment package, measured in the designated size unit (e.g., in or cm). Height is the dimension from the base to the top of the package, perpendicular to the length and width.
Limit the results to specific postage types
Indicates if the shipment should require a signature upon delivery.
Default account region. The region where the shipment will be delivered to Stallion. Ability to change this is needs to be enabled by Stallion.
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/rates
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/rates
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/rates
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://stallionexpress.redocly.app/_mock/stallionexpress-v4/rates \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"to_address": {
"name": "Pramod Thomson",
"company": "string",
"address1": "30 Clearview Dr",
"address2": "string",
"city": "Rock Springs",
"province_code": "WY",
"postal_code": "82901",
"country_code": "US",
"phone": "string",
"email": "string",
"is_residential": true
},
"return_address": {
"name": "Pramod Thomson",
"company": "string",
"address1": "30 Clearview Dr",
"address2": "string",
"city": "Rock Springs",
"province_code": "WY",
"postal_code": "82901",
"country_code": "US",
"phone": "string",
"email": "string",
"is_residential": true
},
"is_return": false,
"weight_unit": "lbs",
"weight": 0.6,
"length": 9,
"width": 12,
"height": 1,
"size_unit": "cm",
"items": [
{
"description": "Two pair of socks",
"sku": "SKU123",
"quantity": 2,
"value": 10,
"currency": "CAD",
"country_of_origin": "CN",
"hs_code": "123456",
"manufacturer_name": "Acme Clothing Inc.",
"manufacturer_address1": "123 Manufacturing Blvd",
"manufacturer_city": "Toronto",
"manufacturer_province_code": "ON",
"manufacturer_postal_code": "M5V 2H1",
"manufacturer_country_code": "CA"
}
],
"package_type": "Parcel",
"postage_types": [],
"signature_confirmation": true,
"insured": true,
"region": null,
"tax_identifier": {
"tax_type": "IOSS",
"number": "IM1234567890",
"issuing_authority": "GB"
}
}'{ "success": true, "rates": [ { … } ] }
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/shipments
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/shipments
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/shipments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://stallionexpress.redocly.app/_mock/stallionexpress-v4/shipments?from_date=string&to_date=string&ship_code=string&to_name=string&tracking_code=string&order_id=string&batch_id=string&closeout_id=string&status=unpaid&limit=0&page=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "data": [ null ], "links": null, "meta": null }
The shipment object that needs to be created. Note that size fields are required for any shipments with the package type of Parcel.
Recipient address for the shipment.
The full name associated with the address.
The company name associated with the address, if applicable.
The primary street address or post office box number.
Additional address information, such as suite or apartment number, if needed.
The city or locality of the address.
The code for the state, province, or territory where the address is located.
The postal or ZIP code for the address.
The two-letter ISO code representing the country of the address.
The contact phone number for the address, if provided.
The email address associated with the address, if available.
The return address is required exclusively for generating a return label and should only be provided if is_return is set to true. This field is not applicable to regular shipments.
Set the postage type for the shipment. ("Cheapest Tracked" or "Cheapest Express Tracked" will return the cheapest tracked or express tracked postage type available.)
Set the postage type for the shipment. ("Cheapest Tracked" or "Cheapest Express Tracked" will return the cheapest tracked or express tracked postage type available.)
Default pdf. Set the format of the returned label.
Default false. Set to true to create a Stallion FBA label.
Default false. Set to true to save the shipment without purchasing the label.
Set to true to apply Stallion Protection for tracked shipments only.
Default account region. The region where the shipment will be delivered to Stallion. Ability to change this is needs to be enabled by Stallion.
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/shipments
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/shipments
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/shipments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://stallionexpress.redocly.app/_mock/stallionexpress-v4/shipments \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-d '{
"to_address": {
"name": "Pramod Thomson",
"company": "string",
"address1": "30 Clearview Dr",
"address2": "string",
"city": "Rock Springs",
"province_code": "WY",
"postal_code": "82901",
"country_code": "US",
"phone": "string",
"email": "string",
"is_residential": true
},
"return_address": {
"name": "Pramod Thomson",
"company": "string",
"address1": "30 Clearview Dr",
"address2": "string",
"city": "Rock Springs",
"province_code": "WY",
"postal_code": "82901",
"country_code": "US",
"phone": "string",
"email": "string",
"is_residential": true
},
"is_return": false,
"order_id": "1234-1233",
"weight_unit": "lbs",
"weight": 0.6,
"length": 9,
"width": 12,
"height": 1,
"size_unit": "cm",
"items": [
{
"description": "Two pair of socks",
"sku": "SKU123",
"quantity": 2,
"value": 10,
"currency": "CAD",
"country_of_origin": "CN",
"hs_code": "123456",
"manufacturer_name": "Acme Clothing Inc.",
"manufacturer_address1": "123 Manufacturing Blvd",
"manufacturer_city": "Toronto",
"manufacturer_province_code": "ON",
"manufacturer_postal_code": "M5V 2H1",
"manufacturer_country_code": "CA"
}
],
"package_type": "Parcel",
"signature_confirmation": false,
"postage_type": "USPS First Class Mail",
"label_format": "pdf",
"is_fba": false,
"is_draft": false,
"insured": true,
"region": null,
"tax_identifier": {
"tax_type": "IOSS",
"number": "IM1234567890",
"issuing_authority": "GB"
}
}'{ "success": true, "label": "base64_label", "tracking_code": "9400111969000940000011", "message": "Shipment successfully completed", "shipment": null, "rate": { "postage_type": "USPS First Class Mail", "package_type": "Parcel", "trackable": true, "base_rate": 10, "add_ons": [ … ], "rate": 10, "tax": 0, "total": 0, "currency": "CAD", "delivery_days": "2" } }
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/track
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/track
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/track
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://stallionexpress.redocly.app/_mock/stallionexpress-v4/track?ship_code=string&tracking_code=string&order_id=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "success": true, "status": "Postage Expired", "events": [ null ], "details": { "ship_code": 2012121234, "destination": "Toronto ON, CA", "tracking": "123123123123123123", "url": "https://carrier.com/track/9400111969000940000011", "carrier_phone": "12312341234" } }
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/shipments/{ship_code}
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/shipments/{ship_code}
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/shipments/{ship_code}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://stallionexpress.redocly.app/_mock/stallionexpress-v4/shipments/{ship_code}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "success": true, "label": "base64_label", "tracking_code": "9400111969000940000011", "message": "Shipment successfully completed", "shipment": null, "rate": { "postage_type": "USPS First Class Mail", "package_type": "Parcel", "trackable": true, "base_rate": 10, "add_ons": [ … ], "rate": 10, "tax": 0, "total": 0, "currency": "CAD", "delivery_days": "2" } }
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/shipments/{ship_code}/void
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/shipments/{ship_code}/void
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/shipments/{ship_code}/void
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://stallionexpress.redocly.app/_mock/stallionexpress-v4/shipments/{ship_code}/void' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "success": true, "message": false }