Download OpenAPI specification:Download
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".
Get a list of all available postage types
Successful operation
Unauthenticated
Internal error
{- "success": true,
- "postage_types": [
- "USPS First Class Mail"
]
}
Validates shipment details and returns all available rates.
Shipment details
Successful operation
Unauthenticated
Validation Error
Internal error
{- "name": "Pramod Thomson",
- "address1": "30 Clearview Dr",
- "address2": "Lot 2",
- "city": "Rock Springs",
- "province_code": "WY",
- "postal_code": "82901",
- "country_code": "US",
- "email": "test@stallionexpress.ca",
- "phone": 11231231234,
- "weight_unit": "lbs",
- "weight": 0.6,
- "length": 9,
- "width": 12,
- "height": 1,
- "size_unit": "cm",
- "package_contents": "Two pair of socks",
- "value": 10,
- "currency": "CAD",
- "package_type": "Parcel",
- "postage_types": [ ],
- "signature_confirmation": true,
- "insured": true,
- "region": null
}
{- "success": true,
- "rates": [
- {
- "postage_type": "USPS First Class Mail",
- "package_type": "Parcel",
- "trackable": true,
- "base_rate": 10,
- "add_ons": [
- null
], - "rate": 10,
- "tax": 0,
- "total": 0,
- "currency": "CAD",
- "delivery_days": "2"
}
]
}
Get the list of paginated shipments by different search parameters.
Successful operation
Unauthenticated
Validation Error
Internal error
{- "data": [
- null
], - "links": null,
- "meta": null
}
Create a shipment and return the postage label.
The shipment object that needs to be created. Note that size fields are required for any shipments with the package type of Parcel.
Successful operation
Unauthenticated
Validation Error
Internal error
{- "name": "Pramod Thomson",
- "address1": "30 Clearview Dr",
- "address2": "Lot 2",
- "city": "Rock Springs",
- "province_code": "WY",
- "postal_code": "82901",
- "country_code": "US",
- "email": "test@stallionexpress.ca",
- "phone": 11231231234,
- "order_id": "1234-1233",
- "weight_unit": "lbs",
- "weight": 0.6,
- "length": 9,
- "width": 12,
- "height": 1,
- "size_unit": "cm",
- "package_contents": "Two pair of socks",
- "value": 10,
- "currency": "CAD",
- "package_type": "Parcel",
- "signature_confirmation": false,
- "postage_type": "USPS First Class Mail",
- "label_format": "pdf",
- "is_fba": false,
- "insured": true,
- "customs_lines": [
- null
], - "region": null
}
{- "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": [
- null
], - "rate": 10,
- "tax": 0,
- "total": 0,
- "currency": "CAD",
- "delivery_days": "2"
}
}
Create the return label for a previous shipment.
Successful operation
Unauthenticated
Validation Error
Internal error
{- "ship_code": "210907WY78",
- "tracking_code": "940002312332",
- "order_id": "40011"
}
{- "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": [
- null
], - "rate": 10,
- "tax": 0,
- "total": 0,
- "currency": "CAD",
- "delivery_days": "2"
}
}
Fetch a shipment tracking details by different search parameters
Successful operation
Unauthenticated
Validation Error
Internal error
{- "success": true,
- "status": "Postage Expired",
- "events": [
- null
], - "details": {
- "ship_code": 2012121234,
- "destination": "Toronto ON, CA",
- "tracking": "123123123123123123",
- "carrier_phone": "12312341234"
}
}
Get a shipment
Successful operation
Unauthenticated
Not Found
Internal error
{- "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": [
- null
], - "rate": 10,
- "tax": 0,
- "total": 0,
- "currency": "CAD",
- "delivery_days": "2"
}
}
Requests a void for a shipment with the provided id.
Successful operation
Unauthenticated
Not Found
Validation Error
Internal error
{- "success": true,
- "message": false
}
Creates a new batch to be used when creating shipments.
Successful operation
Unauthenticated
Internal error
{- "success": true,
- "batch_id": "18179823"
}
Gets a list of all current Stallion Express locations.
Successful operation
Unauthenticated
Internal error
{- "success": true,
- "locations": [
- null
]
}
Add credits using hte account's default credit card
Successful operation
Unauthenticated
Validation Error
Internal error
{- "amount": 100
}
{- "success": true,
- "amount": "0.00"
}