Get Cart Order
Returns a single Order for the Cart connection with the associated order ID.
curl --request GET \
--url https://production.trackstarhq.com/cart/orders/{order_id} \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>'
{
"data": {
"id": "order_id",
"order_number": "order_number",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"status": "open",
"raw_status": "raw_status",
"shipping_method": "shipping_method_id",
"invoice_currency_code": "USD",
"total_price": 13.49,
"total_tax": 1.5,
"total_discount": 2.5,
"total_shipping": 3.5,
"ship_to_address": {
"full_name": "John Doe",
"company": "Company",
"address1": "123 Main St",
"address2": "Apt 2",
"address3": "Floor 3",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "United States"
},
"bill_to_address": {
"full_name": "John Doe",
"address1": "123 Main St",
"address2": "Apt 2",
"address3": "Floor 3",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "United States"
},
"line_items": [
{
"line_item_id": "line_item_id",
"product_id": "",
"product_sku": "",
"parent_product_id": "",
"parent_product_sku": "",
"quantity": 1,
"unit_price": 10.99,
"discount": 1.5,
"tax": 0.5
}
],
"shipping_groups": [
{
"shipping_group_id": "shipping_group_id",
"line_items": [
{
"line_item_id": "shipping_group_line_item_id",
"product_id": "",
"product_sku": "",
"parent_product_id": "",
"quantity": 0
}
]
}
],
"shipments": [
{
"shipment_id": "shipment_id",
"carrier": "carrier_name",
"shipping_method": "shipping_method_id",
"tracking_number": "",
"tracking_url": "https://www.example.com/tracking",
"line_items": [
{
"product_id": "",
"product_sku": "",
"parent_product_id": "",
"parent_product_sku": "",
"quantity": 0
}
]
}
],
"external_system_url": "https://example.com/order/123"
}
}
Headers
Your organization-level Trackstar API key.
"<x-trackstar-api-key>"
Your user's access token for a specific integration (ShipHero, Extensiv, etc).
"<x-trackstar-access-token>"
Path Parameters
Response
The unique ID of the order.
"order_id"
The order number assigned by the platform. Defaults to order ID.
"order_number"
The date the order was created.
"2022-01-01T00:00:00Z"
The date the order was last updated.
"2022-01-02T05:05:05Z"
The status of the order. See the order information for more details.
open
, confirmed
, processing
, partially_fulfilled
, fulfilled
, exception
, cancelled
, backordered
, other
"open"
The raw status (if available) returned directly from the platform.
"raw_status"
The method by which the carrier will ship the order to the customer.
"shipping_method_id"
The currency used for this order. If not provided explicitly, defaults to USD.
"USD"
The total price a customer paid for the order.
13.49
The total tax on the order.
1.5
The total amount discounted from the order.
2.5
The total shipping cost for the order incurred by the customer.
3.5
"John Doe"
"Company"
"123 Main St"
"Apt 2"
"Floor 3"
"New York"
"NY"
"10001"
"United States"
"John Doe"
"123 Main St"
"Apt 2"
"Floor 3"
"New York"
"NY"
"10001"
"United States"
List of the products included in the order.
The ID of the line item.
"line_item_id"
The ID of the product. Can be passed into the Cart Product endpoint for more details.
""
""
The ID of the product's parent.
""
""
1
The price of the product in the currency specified by invoice_currency_code
.
10.99
The amount discounted from the product for this order.
1.5
The amount of tax on the product for this order.
0.5
[
{
"line_item_id": "line_item_id",
"product_id": "",
"product_sku": "",
"parent_product_id": "",
"parent_product_sku": "",
"quantity": 1,
"unit_price": 10.99,
"discount": 1.5,
"tax": 0.5
}
]
Sets of line items that will be fulfilled together from the same locations. Only applies in Shopify, as fulfillmentOrders.
The ID of the shipping_group.
"shipping_group_id"
List of the products in the shipping group.
The ID of the line item in the shipping group.
"shipping_group_line_item_id"
The ID of the product.
""
""
The ID of the product's parent.
""
0
List of the shipments sent out to the customer.
The ID of the shipment.
"shipment_id"
The carrier used to ship the shipment.
"carrier_name"
The method by which the carrier will ship the order to the customer.
"shipping_method_id"
The tracking number for the shipment.
""
The URL for the tracking number.
"https://www.example.com/tracking"
List of the products listed in the shipment.
The ID of the product.
""
""
The ID of the product's parent.
""
""
0
URL link to the order in the external system (WMS/Freight etc).
"https://example.com/order/123"
curl --request GET \
--url https://production.trackstarhq.com/cart/orders/{order_id} \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>'
{
"data": {
"id": "order_id",
"order_number": "order_number",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"status": "open",
"raw_status": "raw_status",
"shipping_method": "shipping_method_id",
"invoice_currency_code": "USD",
"total_price": 13.49,
"total_tax": 1.5,
"total_discount": 2.5,
"total_shipping": 3.5,
"ship_to_address": {
"full_name": "John Doe",
"company": "Company",
"address1": "123 Main St",
"address2": "Apt 2",
"address3": "Floor 3",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "United States"
},
"bill_to_address": {
"full_name": "John Doe",
"address1": "123 Main St",
"address2": "Apt 2",
"address3": "Floor 3",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "United States"
},
"line_items": [
{
"line_item_id": "line_item_id",
"product_id": "",
"product_sku": "",
"parent_product_id": "",
"parent_product_sku": "",
"quantity": 1,
"unit_price": 10.99,
"discount": 1.5,
"tax": 0.5
}
],
"shipping_groups": [
{
"shipping_group_id": "shipping_group_id",
"line_items": [
{
"line_item_id": "shipping_group_line_item_id",
"product_id": "",
"product_sku": "",
"parent_product_id": "",
"quantity": 0
}
]
}
],
"shipments": [
{
"shipment_id": "shipment_id",
"carrier": "carrier_name",
"shipping_method": "shipping_method_id",
"tracking_number": "",
"tracking_url": "https://www.example.com/tracking",
"line_items": [
{
"product_id": "",
"product_sku": "",
"parent_product_id": "",
"parent_product_sku": "",
"quantity": 0
}
]
}
],
"external_system_url": "https://example.com/order/123"
}
}