Get Cart Product
Returns a single Product for the Cart connection with the associated product ID.
curl --request GET \
--url https://production.trackstarhq.com/cart/products/{product_id} \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>'
{
"data": {
"id": "product_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"name": "product_name",
"sku": "sku",
"parent_product_id": "",
"is_kit": true,
"active": true,
"price": 10,
"inventory": 10,
"inventory_by_warehouse_id": {
"warehouse_id_1": 6,
"warehouse_id_2": 4
},
"tags": [
"tag_0"
],
"external_system_url": "https://example.com/cartproduct/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 product.
"product_id"
The date the cart product was created.
"2022-01-01T00:00:00Z"
The date the cart product was last updated.
"2022-01-02T05:05:05Z"
The name of the product.
"product_name"
The SKU of the product.
"sku"
If this is a variant, the ID of the parent product. If this is a parent product, this field should be the same as ID.
""
true
Whether the product is active.
true
The price of the product if it is a variant. Not the source of truth for parent products.
10
The inventory of the product if it is a variant. Not the source of truth for parent products.
10
Inventory broken down by warehouse.
Inventory for that warehouse.
5
{ "warehouse_id_1": 6, "warehouse_id_2": 4 }
A list of tags associated with the product. Tags that are represented as key-value pairs in the underlying system will be represented as a single string formatted as key:value
.
A tag associated with the product.
["tag_0"]
URL link to the cart product in the external system (WMS/Freight etc).
"https://example.com/cartproduct/123"
curl --request GET \
--url https://production.trackstarhq.com/cart/products/{product_id} \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>'
{
"data": {
"id": "product_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"name": "product_name",
"sku": "sku",
"parent_product_id": "",
"is_kit": true,
"active": true,
"price": 10,
"inventory": 10,
"inventory_by_warehouse_id": {
"warehouse_id_1": 6,
"warehouse_id_2": 4
},
"tags": [
"tag_0"
],
"external_system_url": "https://example.com/cartproduct/123"
}
}