v1
latestOpenAPI 3.1.02026-07-22802,2441.7 MBcart
Products
Batch Adjust Inventory for Cart Products
Set the exact on-hand inventory for multiple cart products in a single call. Each line specifies a product and the exact quantity to set; increase and decrease adjustments are not supported here.
put/cart/products/batch-adjust-inventory
Headers
x-trackstar-api-keystring required
Example:<x-trackstar-api-key>
Your organization-level Trackstar API key.
x-trackstar-access-tokenstring required
Example:<x-trackstar-access-token>
Your user's access token for a specific integration (ShipHero, Extensiv, etc).
Request body
Example request
{
"line_items": [
{
"quantity": 1
}
]
}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",
"sku": "sku",
"gtin": "gtin",
"is_kit": true,
"active": true,
"image_url": "https://example.com/image.jpg",
"price": 10,
"unit_cost": 10,
"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"
}
}
]
}