Sandbox
Create Sandbox Cart Product
Changed onSimulates a new product landing in the cart sandbox. Builds a random parent product with variants against the existing sandbox warehouses, stores them, and fires a product webhook. Returns the parent product.
post/sandbox/simulate/cart/products
Request
- Base URLhttps://production.trackstarhq.com
- URLhttps://production.trackstarhq.com/sandbox/simulate/cart/products
- Authnone required
Headers
x-trackstar-api-keystring required
Example:<x-trackstar-api-key>
Your organization-level Trackstar API key.
Response
Successful response
Example response
{
"data": {
"id": "product_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"name": "product_name",
"description": "<p>Soft cotton crew neck tee.</p>",
"sku": "sku",
"gtin": "gtin",
"parent_product_id": "parent_product_id",
"is_kit": true,
"active": true,
"image_url": "https://example.com/image.jpg",
"price": 10,
"unit_cost": 10,
"currency_code": "USD",
"inventory": 10,
"inventory_by_warehouse_id": {
"warehouse_id_1": 6,
"warehouse_id_2": 4
},
"measurements": {
"length": 1.5,
"width": 1.5,
"height": 1.5,
"unit": "in",
"weight": 2.5,
"weight_unit": "lb"
},
"tags": [
"tag_0"
],
"categories": [
"Apparel",
"Shoes",
"Running"
],
"external_system_url": "https://example.com/cartproduct/123",
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
],
"additional_fields": {
"key": "value"
},
"trackstar_created_date": "2023-03-15T13:45:30Z",
"trackstar_updated_date": "2023-03-15T13:45:30Z"
}
}Changes
- info
endpoint added
- info