Skip to main content
PUT
Batch Adjust Inventory for Cart Products

Headers

x-trackstar-api-key
string
required

Your organization-level Trackstar API key.

Example:

"<x-trackstar-api-key>"

x-trackstar-access-token
string
required

Your user's access token for a specific integration (ShipHero, Extensiv, etc).

Example:

"<x-trackstar-access-token>"

Idempotency-Key
string

Optional key that makes this request safe to retry. Send the same key on a retry and Trackstar returns the first attempt's response instead of writing again; if the first attempt failed, the retry runs the write again. Reusing a key with a different request is rejected. Keys expire after 24 hours.

Required string length: 1 - 255
Example:

"9f1c2b1e-6d4a-4c1c-9a8e-2b7e3c5d1f00"

Body

application/json
line_items
BatchAdjustCartInventoryLine · object[]
required

Inventory adjustments. Each entry sets the exact on-hand quantity for one product.

Response

Successful response

data
CartProductApiItemSchema · object[]
required
unused_fields
string[]
required

Unused fields