Get a paginated list of orders based on certain criteria.
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.
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/orders
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/orders
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://stallionexpress.redocly.app/_mock/stallionexpress-v4/orders?limit=10&page=1&order_id=string&from_date=2019-08-24&to_date=2019-08-24' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "path": "http://admin.stallionexpress.test/api/v4/orders", "per_page": 100, "to": 2, "total": 2, "success": true, "data": [ { … } ] }
The order object that needs to be created.
The first line of the delivery address.
The two-letter province or state code where the recipient is located.
The postal code or ZIP code of the recipient's location.
The two-letter country code of the recipient's country.
The date and time when the order was placed.
Order Line Items.
The HS (Harmonized System) code for customs (optional). Required if the shipment country_of_origin is CN/HK
The two-letter country code indicating the country of origin for the item (optional). Required if the shipment is being sent to US
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/orders
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/orders
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://stallionexpress.redocly.app/_mock/stallionexpress-v4/orders \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"store_id": "1234",
"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",
"customer_id": "string",
"carrier_code": "string",
"postage_code": "string",
"package_code": "string",
"note": "string",
"weight_unit": "lbs",
"weight": 0.6,
"value": 10.5,
"currency": "CAD",
"order_id": "1234-1233",
"order_at": "2023-09-26 14:30:00",
"store": "My Shopify Store",
"items": [
{
"item_id": 1234,
"title": "Cool T-Shirt",
"sku": "SKU123",
"hs_code": "620800",
"quantity": 1,
"value": 10,
"currency": "CAD",
"country_of_origin": "CN",
"warehouse_location": "Warehouse A"
}
],
"tags": "['\''this is a tag'\'', '\''this is another tag'\'']"
}'{ "success": true, "order": { "id": 0, "name": "string", "company": "string", "address1": "string", "address2": "string", "city": "string", "province_code": "string", "postal_code": "string", "country_code": "string", "phone": "string", "email": "user@example.com", "customer_id": "string", "carrier_code": "string", "postage_code": "string", "package_code": "string", "note": "string", "weight_unit": "string", "weight": 0.1, "value": 0.1, "currency": "string", "order_id": "string", "order_at": "2019-08-24T14:15:22Z", "store": "string", "tags": [], "items": [ … ], "shipment": null, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/orders/{id}
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/orders/{id}
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/orders/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://stallionexpress.redocly.app/_mock/stallionexpress-v4/orders/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "success": true, "order": { "id": 0, "name": "string", "company": "string", "address1": "string", "address2": "string", "city": "string", "province_code": "string", "postal_code": "string", "country_code": "string", "phone": "string", "email": "user@example.com", "customer_id": "string", "carrier_code": "string", "postage_code": "string", "package_code": "string", "note": "string", "weight_unit": "string", "weight": 0.1, "value": 0.1, "currency": "string", "order_id": "string", "order_at": "2019-08-24T14:15:22Z", "store": "string", "tags": [], "items": [ … ], "shipment": null, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }
The order object that needs to be updated.
The first line of the delivery address.
The two-letter province or state code where the recipient is located.
The postal code or ZIP code of the recipient's location.
The two-letter country code of the recipient's country.
The date and time when the order was placed.
Order Line Items.
The HS (Harmonized System) code for customs (optional). Required if the shipment country_of_origin is CN/HK
The two-letter country code indicating the country of origin for the item (optional). Required if the shipment is being sent to US
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/orders/{id}
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/orders/{id}
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/orders/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://stallionexpress.redocly.app/_mock/stallionexpress-v4/orders/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"store_id": "1234",
"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",
"customer_id": "string",
"carrier_code": "string",
"postage_code": "string",
"package_code": "string",
"note": "string",
"weight_unit": "lbs",
"weight": 0.6,
"value": 10.5,
"currency": "CAD",
"order_id": "1234-1233",
"order_at": "2023-09-26 14:30:00",
"store": "My Shopify Store",
"items": [
{
"item_id": 1234,
"title": "Cool T-Shirt",
"sku": "SKU123",
"hs_code": "620800",
"quantity": 1,
"value": 10,
"currency": "CAD",
"country_of_origin": "CN",
"warehouse_location": "Warehouse A"
}
],
"tags": "['\''this is a tag'\'', '\''this is another tag'\'']"
}'{ "success": true, "order": { "id": 0, "name": "string", "company": "string", "address1": "string", "address2": "string", "city": "string", "province_code": "string", "postal_code": "string", "country_code": "string", "phone": "string", "email": "user@example.com", "customer_id": "string", "carrier_code": "string", "postage_code": "string", "package_code": "string", "note": "string", "weight_unit": "string", "weight": 0.1, "value": 0.1, "currency": "string", "order_id": "string", "order_at": "2019-08-24T14:15:22Z", "store": "string", "tags": [], "items": [ … ], "shipment": null, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }
- Mock serverhttps://stallionexpress.redocly.app/_mock/stallionexpress-v4/{store_id}/orders/{order_id}
- Production server (uses live data)https://ship.stallionexpress.ca/api/v4/{store_id}/orders/{order_id}
- Sandbox server (uses test data)https://sandbox.stallionexpress.ca/api/v4/{store_id}/orders/{order_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://stallionexpress.redocly.app/_mock/stallionexpress-v4/{store_id}/orders/{order_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "success": true, "order": { "id": 0, "name": "string", "company": "string", "address1": "string", "address2": "string", "city": "string", "province_code": "string", "postal_code": "string", "country_code": "string", "phone": "string", "email": "user@example.com", "customer_id": "string", "carrier_code": "string", "postage_code": "string", "package_code": "string", "note": "string", "weight_unit": "string", "weight": 0.1, "value": 0.1, "currency": "string", "order_id": "string", "order_at": "2019-08-24T14:15:22Z", "store": "string", "tags": [], "items": [ … ], "shipment": null, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }