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.
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.
Inventory adjustments. Each entry sets the exact on-hand quantity for one variant product. Entries that belong to the same listing are applied together in one Etsy call.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Trackstar","colors":{"primary":"#7691DA","light":"#D3D665","dark":"#2E3B72"},"logo":{"light":"https://mintcdn.com/trackstar/e_R8AMY4ayyVfYRU/logo/light.svg?fit=max\u0026auto=format\u0026n=e_R8AMY4ayyVfYRU\u0026q=85\u0026s=eb832f4ffc768291fd95c4939b2ac6c2","dark":"https://mintcdn.com/trackstar/e_R8AMY4ayyVfYRU/logo/dark.svg?fit=max\u0026auto=format\u0026n=e_R8AMY4ayyVfYRU\u0026q=85\u0026s=1a2845225060cfe1d75c91a7240341a0"},"favicon":"https://mintcdn.com/trackstar/ronaGfFeKtERpohJ/favicon.png?fit=max\u0026auto=format\u0026n=ronaGfFeKtERpohJ\u0026q=85\u0026s=b3a24a0d7d7c7acc8e7394c0640eb8c6","api":{"openapi":"https://production.trackstarhq.com/openapi.json","mdx":{"server":"https://production.trackstarhq.com"}},"navbar":{"primary":{"type":"button","label":"Get an API Key","href":"https://www.trackstarhq.com/#"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/trackstarhq","website":"https://www.trackstarhq.com/"}},"integrations":{"clearbit":{"publicApiKey":"pk_1c5d72a7b03149b504c277cee5b4032a"}},"contextual":{"options":["copy","view","claude","chatgpt","cursor","vscode","mcp","add-mcp","download-spec"],"display":"header"},"markdown":{"instructions":["Trackstar is a unified REST API for WMS, cart, and carrier systems. Base URL: https://production.trackstarhq.com. There is no SDK; call the API with plain HTTP.","Send x-trackstar-api-key on every request. Endpoints scoped to one connection also need x-trackstar-access-token. Read both from environment variables and never print them.","Reads return data Trackstar has already synced from the connected system. Writes (POST, PUT, PATCH, DELETE) are forwarded to the connected system immediately.","A new connection has no data until its initial sync finishes. Wait for the connection.historical-sync-completed webhook, or poll GET /connections/{connection_id} and check historical_sync_completed.","List endpoints page with page_token and next_token (limit is capped at 1000). Repeat every filter on every page. Filters use field[operator]=value, for example created_date[gte]=2026-01-01T00:00:00Z.","Write bodies must not contain null or empty strings; omit the field instead. Call GET /integrations/{integration_type}/{integration_name}/write-info first to learn the exact fields an integration accepts.","To test without real credentials, POST /sandbox/generate-sandbox/{wms|cart|carrier} with the API key returns a sandbox access token. Start at https://docs.trackstarhq.com/how-to-guides/build-with-ai.md and install the skills with: npx skills add https://docs.trackstarhq.com"]},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Request an API Key","icon":"key","href":"https://trackstarhq.com/get-started"},{"anchor":"Login to Dashboard","icon":"browser","href":"https://dashboard.trackstarhq.com"},{"anchor":"WMS Integrations","icon":"warehouse","href":"https://trackstarhq.com/integrations/wms"},{"anchor":"Cart Integrations","icon":"cart-shopping","href":"https://trackstarhq.com/integrations/cart"},{"anchor":"Carrier Integrations","icon":"truck","href":"https://trackstarhq.com/integrations/carrier"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"trackstar","hasAudioNarration":false,"actualSubdomain":"trackstar","customDomains":["docs.trackstarhq.com"],"gitSource":{"type":"github","owner":"trackstarhq","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aecbe05151c006a04aca3cc","collectionId":"d87d8586-9550-4189-9df1-d24329955bcc","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aecbe05151c006a04aca3cc"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed0e25beb7fec8669134fa","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Guides","count":67},{"language":"default","tag":"How-To Guides","count":58},{"language":"default","tag":"WMS API","count":55},{"language":"default","tag":"WMS API Reference","count":55},{"language":"default","tag":"Webhooks","count":48},{"language":"default","tag":"WMS","count":29},{"language":"default","tag":"Admin API","count":21},{"language":"default","tag":"Admin API Reference","count":20},{"language":"default","tag":"Orders","count":17},{"language":"default","tag":"Cart API","count":16}]},"assistantConfig":{"enableStarterQuestions":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/cart-api/products/batch-adjust","slug":"/api-reference/cart-api/products/batch-adjust","pageMetadata":{"openapi":"put /cart/products/batch-adjust-inventory","title":"Batch Adjust Inventory for Cart Products","description":"Set the exact on-hand inventory for multiple cart products in a single call.\nEach line specifies a product and the exact quantity to set; increase and\ndecrease adjustments are not supported here.","href":"/api-reference/cart-api/products/batch-adjust"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Set the exact on-hand inventory for multiple cart products in a single call.\\nEach line specifies a product and the exact quantity to set; increase and\\ndecrease adjustments are not supported here.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"put /cart/products/batch-adjust-inventory","title":"Batch Adjust Inventory for Cart Products","description":"Set the exact on-hand inventory for multiple cart products in a single call.\nEach line specifies a product and the exact quantity to set; increase and\ndecrease adjustments are not supported here.","href":"/api-reference/cart-api/products/batch-adjust"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/trackstar/30b448b1cb413b03/required.js","/_mintlify/custom/trackstar/a23a6fd668fcabff/tab-dropdown.js","/_mintlify/custom/trackstar/bf284930523528a1/write-fields.js"],"openApiReferenceData":{"operation":{"parameters":["586caa60-105d-4a99-a3b2-5bdb42fbc124","5545693f-98fd-42e9-b8c2-4b7a45aa9b4d","a46067d3-3910-45e1-8d95-504d5b024d7a"],"responses":{"200":"3c1ed5a2-d892-4d34-9579-e5a80d45979e","422":"16657a5f-cf23-4c6a-b8b4-c1280808b287"},"tags":["cart","Products"],"summary":"Batch Adjust Inventory for Cart Products","description":"Set the exact on-hand inventory for multiple cart products in a single call.\nEach line specifies a product and the exact quantity to set; increase and\ndecrease adjustments are not supported here.","operationId":"put_cart_batch_adjust_inventory","requestBody":"c764863e-85b9-4633-b3cf-de815dbf9c35","method":"put","type":"path","servers":["9cc91ed5-dbcf-47f6-a041-a270d59cef11"],"security":[],"path":"/cart/products/batch-adjust-inventory","baseUrlOptions":["https://production.trackstarhq.com"],"title":"Batch Adjust Inventory for Cart Products","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"586caa60-105d-4a99-a3b2-5bdb42fbc124":{"in":"header","name":"x-trackstar-api-key","description":"Your organization-level Trackstar API key.","schema":{"type":"string","example":"\u003cx-trackstar-api-key>","isRequired":true,"description":"Your organization-level Trackstar API key.","uniqueKey":"","typeLabel":"string"},"required":true},"5545693f-98fd-42e9-b8c2-4b7a45aa9b4d":{"in":"header","name":"x-trackstar-access-token","description":"Your user's access token for a specific integration (ShipHero, Extensiv, etc).","schema":{"type":"string","example":"\u003cx-trackstar-access-token>","isRequired":true,"description":"Your user's access token for a specific integration (ShipHero, Extensiv, etc).","uniqueKey":"","typeLabel":"string"},"required":true},"a46067d3-3910-45e1-8d95-504d5b024d7a":{"in":"header","name":"Idempotency-Key","description":"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.","schema":{"type":"string","minLength":1,"maxLength":255,"example":"9f1c2b1e-6d4a-4c1c-9a8e-2b7e3c5d1f00","isRequired":false,"description":"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.","uniqueKey":"","typeLabel":"string"},"required":false}},"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Etsy","required":["line_items"],"properties":{"line_items":{"type":"array","description":"Inventory adjustments. Each entry sets the exact on-hand quantity for one variant product. Entries that belong to the same listing are applied together in one Etsy call.","items":{"type":"object","properties":{"product_id":{"type":"string","description":"The ID of the variant product to adjust.","example":"product_id","isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].product_id","typeLabel":"string"},"quantity":{"type":"integer","description":"The quantity to adjust the inventory by if increasing or decreasing. If using exact, the quantity to set the inventory to.","example":1,"isRequired":true,"uniqueKey":"oneOf.0.line_items.items.[INDEX].quantity","typeLabel":"integer"}},"required":["product_id","quantity"],"additionalProperties":false,"title":"EtsyBatchAdjustInventoryLine","uniqueKey":"oneOf.0.line_items.items.[INDEX]","typeLabel":"EtsyBatchAdjustInventoryLine · object"},"isRequired":true,"uniqueKey":"oneOf.0.line_items","typeLabel":"EtsyBatchAdjustInventoryLine · object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"Etsy · object"},{"type":"object","title":"JOOR","required":["line_items"],"properties":{"line_items":{"type":"array","description":"Inventory adjustments. Each entry sets the exact on-hand quantity for one product.","items":{"type":"object","properties":{"product_id":{"type":"string","description":"The ID of the product to adjust.","example":"product_id","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].product_id","typeLabel":"string"},"quantity":{"type":"integer","description":"The quantity to adjust the inventory by if increasing or decreasing. If using exact, the quantity to set the inventory to.","example":1,"isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].quantity","typeLabel":"integer"},"warehouse_id":{"type":"string","description":"ID of the warehouse to adjust inventory in.","example":"warehouse_id","isRequired":true,"uniqueKey":"oneOf.1.line_items.items.[INDEX].warehouse_id","typeLabel":"string"}},"required":["product_id","quantity","warehouse_id"],"additionalProperties":false,"title":"JoorBatchAdjustInventoryLine","uniqueKey":"oneOf.1.line_items.items.[INDEX]","typeLabel":"JoorBatchAdjustInventoryLine · object"},"isRequired":true,"uniqueKey":"oneOf.1.line_items","typeLabel":"JoorBatchAdjustInventoryLine · object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"JOOR · object"},{"type":"object","title":"Mirakl","required":["line_items"],"properties":{"line_items":{"type":"array","description":"Inventory adjustments. Each entry sets the exact on-hand quantity for one product.","items":{"type":"object","properties":{"product_id":{"type":"string","description":"The ID of the product to adjust.","example":"product_id","isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].product_id","typeLabel":"string"},"quantity":{"type":"integer","description":"The quantity to adjust the inventory by if increasing or decreasing. If using exact, the quantity to set the inventory to.","example":1,"isRequired":true,"uniqueKey":"oneOf.2.line_items.items.[INDEX].quantity","typeLabel":"integer"},"warehouse_id":{"type":"string","description":"ID of the warehouse to adjust inventory in.","example":"warehouse_id","uniqueKey":"oneOf.2.line_items.items.[INDEX].warehouse_id","typeLabel":"string"}},"required":["product_id","quantity"],"additionalProperties":false,"title":"BatchAdjustCartInventoryLine","uniqueKey":"oneOf.2.line_items.items.[INDEX]","typeLabel":"BatchAdjustCartInventoryLine · object"},"isRequired":true,"uniqueKey":"oneOf.2.line_items","typeLabel":"BatchAdjustCartInventoryLine · object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.2","typeLabel":"Mirakl · object"},{"type":"object","title":"OrderDesk","required":["line_items"],"properties":{"line_items":{"type":"array","description":"Inventory adjustments. Each entry sets the exact on-hand quantity for one product.","items":{"type":"object","properties":{"product_id":{"type":"string","description":"The ID of the product to adjust.","example":"product_id","isRequired":true,"uniqueKey":"oneOf.3.line_items.items.[INDEX].product_id","typeLabel":"string"},"quantity":{"type":"integer","description":"The quantity to adjust the inventory by if increasing or decreasing. If using exact, the quantity to set the inventory to.","example":1,"isRequired":true,"uniqueKey":"oneOf.3.line_items.items.[INDEX].quantity","typeLabel":"integer"}},"required":["product_id","quantity"],"additionalProperties":false,"title":"OrderDeskBatchAdjustInventoryLine","uniqueKey":"oneOf.3.line_items.items.[INDEX]","typeLabel":"OrderDeskBatchAdjustInventoryLine · object"},"isRequired":true,"uniqueKey":"oneOf.3.line_items","typeLabel":"OrderDeskBatchAdjustInventoryLine · object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.3","typeLabel":"OrderDesk · object"},{"type":"object","title":"Rithum (_Home Depot","required":["line_items"],"properties":{"line_items":{"type":"array","description":"Inventory adjustments. Each entry sets the exact available quantity for one product. Give a product several entries, one per warehouse, to split its stock across warehouses.","items":{"type":"object","properties":{"product_id":{"type":"string","description":"The ID of the product to adjust.","example":"product_id","isRequired":true,"uniqueKey":"oneOf.4.line_items.items.[INDEX].product_id","typeLabel":"string"},"quantity":{"type":"integer","minimum":0,"description":"The quantity to adjust the inventory by if increasing or decreasing. If using exact, the quantity to set the inventory to.","example":1,"isRequired":true,"uniqueKey":"oneOf.4.line_items.items.[INDEX].quantity","typeLabel":"integer"},"oms_id":{"type":"string","description":"The OMS ID of the product.","example":"123456789","isRequired":true,"uniqueKey":"oneOf.4.line_items.items.[INDEX].oms_id","typeLabel":"string"},"warehouse_id":{"type":"string","description":"ID of the warehouse to adjust inventory in.","example":"warehouse_id","uniqueKey":"oneOf.4.line_items.items.[INDEX].warehouse_id","typeLabel":"string"}},"required":["oms_id","product_id","quantity"],"additionalProperties":false,"title":"RithumBatchAdjustInventoryLine","uniqueKey":"oneOf.4.line_items.items.[INDEX]","typeLabel":"RithumBatchAdjustInventoryLine · object"},"isRequired":true,"uniqueKey":"oneOf.4.line_items","typeLabel":"RithumBatchAdjustInventoryLine · object[]"}},"additionalProperties":false,"uniqueKey":"oneOf.4","typeLabel":"Rithum (_Home Depot · object"},{"type":"object","title":"Shopify","required":["line_items","reason"],"properties":{"line_items":{"type":"array","description":"Inventory adjustments, at most 250. Each entry sets the exact available quantity for one variant product at one location. All entries are sent to Shopify in one call.","items":{"type":"object","properties":{"product_id":{"type":"string","description":"The ID of the variant product to adjust.","example":"product_id","isRequired":true,"uniqueKey":"oneOf.5.line_items.items.[INDEX].product_id","typeLabel":"string"},"quantity":{"type":"integer","description":"The quantity to adjust the inventory by if increasing or decreasing. If using exact, the quantity to set the inventory to.","example":1,"isRequired":true,"uniqueKey":"oneOf.5.line_items.items.[INDEX].quantity","typeLabel":"integer"},"warehouse_id":{"type":"string","description":"ID of the warehouse to adjust inventory in.","example":"warehouse_id","isRequired":true,"uniqueKey":"oneOf.5.line_items.items.[INDEX].warehouse_id","typeLabel":"string"}},"required":["product_id","quantity","warehouse_id"],"additionalProperties":false,"title":"ShopifyBatchAdjustInventoryLine","uniqueKey":"oneOf.5.line_items.items.[INDEX]","typeLabel":"ShopifyBatchAdjustInventoryLine · object"},"isRequired":true,"uniqueKey":"oneOf.5.line_items","typeLabel":"ShopifyBatchAdjustInventoryLine · object[]"},"reason":{"type":"string","enum":["correction","cycle_count_available","damaged","movement_created","movement_updated","movement_received","payment_canceled","other","promotion","quality_control","received","reservation_created","reservation_updated","reservation_deleted","restock","safety_stock","shrinkage"],"description":"The reason for the inventory adjustment.","example":"correction","isRequired":true,"uniqueKey":"oneOf.5.reason","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"oneOf.5","typeLabel":"Shopify · object"}],"uniqueKey":"","typeLabel":"Etsy · object | JOOR · object | Mirakl · object | OrderDesk · object | Rithum (_Home Depot · object | Shopify · object"},"examples":{"Example":{"title":"Example","value":{"line_items":[{"product_id":"product_id","quantity":1}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"3c1ed5a2-d892-4d34-9579-e5a80d45979e":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","description":"","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique ID of the product.","example":"product_id","isRequired":true,"uniqueKey":"data.items.[INDEX].id","typeLabel":"string"},"created_date":{"type":"string","format":"date-time","description":"The date the cart product was created.","example":"2022-01-01T00:00:00Z","isRequired":true,"uniqueKey":"data.items.[INDEX].created_date","typeLabel":"string\u003cdate-time>"},"updated_date":{"type":"string","format":"date-time","description":"The date the cart product was last updated.","example":"2022-01-02T05:05:05Z","isRequired":true,"uniqueKey":"data.items.[INDEX].updated_date","typeLabel":"string\u003cdate-time>"},"name":{"type":"string","description":"The name of the product.","example":"product_name","isRequired":true,"uniqueKey":"data.items.[INDEX].name","typeLabel":"string"},"description":{"oneOf":[{"type":"string","description":"The product's description as the source system stores it. May contain HTML.","example":"\u003cp>Soft cotton crew neck tee.\u003c/p>","isRequired":true,"uniqueKey":"data.items.[INDEX].description.oneOf.0","typeLabel":"string"},{"type":"null","description":"The product's description as the source system stores it. May contain HTML.","example":"\u003cp>Soft cotton crew neck tee.\u003c/p>","isRequired":true,"uniqueKey":"data.items.[INDEX].description.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].description","typeLabel":"string | null"},"sku":{"oneOf":[{"type":"string","description":"The SKU of the product.","example":"sku","isRequired":true,"uniqueKey":"data.items.[INDEX].sku.oneOf.0","typeLabel":"string"},{"type":"null","description":"The SKU of the product.","example":"sku","isRequired":true,"uniqueKey":"data.items.[INDEX].sku.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].sku","typeLabel":"string | null"},"gtin":{"oneOf":[{"type":"string","description":"The GTIN of the product.","example":"gtin","isRequired":true,"uniqueKey":"data.items.[INDEX].gtin.oneOf.0","typeLabel":"string"},{"type":"null","description":"The GTIN of the product.","example":"gtin","isRequired":true,"uniqueKey":"data.items.[INDEX].gtin.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].gtin","typeLabel":"string | null"},"parent_product_id":{"type":"string","description":"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.","example":"parent_product_id","isRequired":true,"uniqueKey":"data.items.[INDEX].parent_product_id","typeLabel":"string"},"is_kit":{"type":"boolean","description":"","example":true,"isRequired":true,"uniqueKey":"data.items.[INDEX].is_kit","typeLabel":"boolean"},"active":{"type":"boolean","description":"Whether the product is active.","example":true,"isRequired":true,"uniqueKey":"data.items.[INDEX].active","typeLabel":"boolean"},"image_url":{"oneOf":[{"type":"string","description":"The URL of the product's image.","example":"https://example.com/image.jpg","isRequired":true,"uniqueKey":"data.items.[INDEX].image_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"The URL of the product's image.","example":"https://example.com/image.jpg","isRequired":true,"uniqueKey":"data.items.[INDEX].image_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].image_url","typeLabel":"string | null"},"price":{"oneOf":[{"type":"number","description":"The price of the product if it is a variant. Not the source of truth for parent products.","example":10,"isRequired":true,"uniqueKey":"data.items.[INDEX].price.oneOf.0","typeLabel":"number"},{"type":"null","description":"The price of the product if it is a variant. Not the source of truth for parent products.","example":10,"isRequired":true,"uniqueKey":"data.items.[INDEX].price.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].price","typeLabel":"number | null"},"unit_cost":{"oneOf":[{"type":"number","description":"The unit cost of the product if it is a variant. Not the source of truth for parent products.","example":10,"isRequired":true,"uniqueKey":"data.items.[INDEX].unit_cost.oneOf.0","typeLabel":"number"},{"type":"null","description":"The unit cost of the product if it is a variant. Not the source of truth for parent products.","example":10,"isRequired":true,"uniqueKey":"data.items.[INDEX].unit_cost.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].unit_cost","typeLabel":"number | null"},"currency_code":{"oneOf":[{"type":"string","description":"The ISO 4217 currency code for `price` and `unit_cost`.","example":"USD","isRequired":true,"uniqueKey":"data.items.[INDEX].currency_code.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ISO 4217 currency code for `price` and `unit_cost`.","example":"USD","isRequired":true,"uniqueKey":"data.items.[INDEX].currency_code.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].currency_code","typeLabel":"string | null"},"inventory":{"oneOf":[{"type":"integer","description":"The inventory of the product if it is a variant. Not the source of truth for parent products.","example":10,"isRequired":true,"uniqueKey":"data.items.[INDEX].inventory.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The inventory of the product if it is a variant. Not the source of truth for parent products.","example":10,"isRequired":true,"uniqueKey":"data.items.[INDEX].inventory.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].inventory","typeLabel":"integer | null"},"inventory_by_warehouse_id":{"type":"object","description":"Inventory broken down by warehouse.","example":{"warehouse_id_1":6,"warehouse_id_2":4},"additionalProperties":{"type":"integer","description":"Inventory for that warehouse.","example":5,"uniqueKey":"data.items.[INDEX].inventory_by_warehouse_id.additionalProperties","typeLabel":"integer"},"isRequired":true,"uniqueKey":"data.items.[INDEX].inventory_by_warehouse_id","typeLabel":"object"},"measurements":{"type":"object","properties":{"length":{"oneOf":[{"type":"number","description":"","example":1.5,"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.length.oneOf.0","typeLabel":"number"},{"type":"null","description":"","example":1.5,"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.length.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.length","typeLabel":"number | null"},"width":{"oneOf":[{"type":"number","description":"","example":1.5,"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.width.oneOf.0","typeLabel":"number"},{"type":"null","description":"","example":1.5,"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.width.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.width","typeLabel":"number | null"},"height":{"oneOf":[{"type":"number","description":"","example":1.5,"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.height.oneOf.0","typeLabel":"number"},{"type":"null","description":"","example":1.5,"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.height.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.height","typeLabel":"number | null"},"unit":{"oneOf":[{"type":"string","enum":["cm","in"],"description":"The unit of measurement for the size of the product.","example":"in","isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.unit.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["cm","in"],"description":"The unit of measurement for the size of the product.","example":"in","isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.unit","typeLabel":"enum\u003cstring> | null"},"weight":{"oneOf":[{"type":"number","description":"","example":2.5,"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.weight.oneOf.0","typeLabel":"number"},{"type":"null","description":"","example":2.5,"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.weight.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.weight","typeLabel":"number | null"},"weight_unit":{"oneOf":[{"type":"string","enum":["kg","oz","lb"],"description":"The unit of measurement for the weight of the product.","example":"lb","isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.weight_unit.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["kg","oz","lb"],"description":"The unit of measurement for the weight of the product.","example":"lb","isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.weight_unit.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].measurements.weight_unit","typeLabel":"enum\u003cstring> | null"}},"required":["height","length","unit","weight","weight_unit","width"],"additionalProperties":false,"title":"ProductMeasurements","isRequired":true,"uniqueKey":"data.items.[INDEX].measurements","typeLabel":"ProductMeasurements · object"},"tags":{"type":"array","description":"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`.","example":["tag_0"],"items":{"type":"string","description":"A tag associated with the product.","example":"tag_0","uniqueKey":"data.items.[INDEX].tags.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.items.[INDEX].tags","typeLabel":"string[]"},"categories":{"type":"array","description":"A list of category names the product belongs to. For platforms with a hierarchical category tree, each level is a separate element with the leaf last (e.g. [\"Apparel\", \"Shoes\", \"Running\"]). For platforms with a single scalar product type, a single-element list.","example":["Apparel","Shoes","Running"],"items":{"type":"string","description":"A category name.","example":"Apparel","uniqueKey":"data.items.[INDEX].categories.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.items.[INDEX].categories","typeLabel":"string[]"},"external_system_url":{"oneOf":[{"type":"string","description":"URL link to the cart product in the external system (WMS/Freight etc).","example":"https://example.com/cartproduct/123","isRequired":true,"uniqueKey":"data.items.[INDEX].external_system_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL link to the cart product in the external system (WMS/Freight etc).","example":"https://example.com/cartproduct/123","isRequired":true,"uniqueKey":"data.items.[INDEX].external_system_url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].external_system_url","typeLabel":"string | null"},"trackstar_tags":{"oneOf":[{"type":"array","description":"A list of custom tags associated with the resource. A tag can be either a string or a dictionary with one key-value pair.","example":["tag1","tag2",{"tag3":"value3"}],"items":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].trackstar_tags.oneOf.0.items.[INDEX]","typeLabel":"any"},"isRequired":true,"uniqueKey":"data.items.[INDEX].trackstar_tags.oneOf.0","typeLabel":"any[]"},{"type":"null","description":"A list of custom tags associated with the resource. A tag can be either a string or a dictionary with one key-value pair.","example":["tag1","tag2",{"tag3":"value3"}],"items":{"oneOf":[{}]},"isRequired":true,"uniqueKey":"data.items.[INDEX].trackstar_tags.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"data.items.[INDEX].trackstar_tags","typeLabel":"any[] | null"},"additional_fields":{"type":"object","description":"Integration-specific fields","example":{"key":"value"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"data.items.[INDEX].additional_fields.additionalProperties","typeLabel":"any"},"isRequired":true,"uniqueKey":"data.items.[INDEX].additional_fields","typeLabel":"object"},"trackstar_created_date":{"type":"string","format":"date-time","description":"","example":"2023-03-15T13:45:30Z","isRequired":true,"uniqueKey":"data.items.[INDEX].trackstar_created_date","typeLabel":"string\u003cdate-time>"},"trackstar_updated_date":{"type":"string","format":"date-time","description":"","example":"2023-03-15T13:45:30Z","isRequired":true,"uniqueKey":"data.items.[INDEX].trackstar_updated_date","typeLabel":"string\u003cdate-time>"}},"required":["active","additional_fields","categories","created_date","currency_code","description","external_system_url","gtin","id","image_url","inventory","inventory_by_warehouse_id","is_kit","measurements","name","parent_product_id","price","sku","tags","trackstar_created_date","trackstar_tags","trackstar_updated_date","unit_cost","updated_date"],"additionalProperties":false,"title":"CartProductApiItemSchema","uniqueKey":"data.items.[INDEX]","typeLabel":"CartProductApiItemSchema · object"},"isRequired":true,"uniqueKey":"data","typeLabel":"CartProductApiItemSchema · object[]"},"unused_fields":{"type":"array","description":"Unused fields","items":{"type":"string","description":"","example":"unused_fields","uniqueKey":"unused_fields.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"unused_fields","typeLabel":"string[]"}},"required":["data","unused_fields"],"additionalProperties":false,"title":"cartBatchAdjustInventoryProductResponse","uniqueKey":"","typeLabel":"cartBatchAdjustInventoryProductResponse · object"},"examples":{"Example":{"title":"Example","value":{"data":[{"id":"product_id","created_date":"2022-01-01T00:00:00Z","updated_date":"2022-01-02T05:05:05Z","name":"product_name","description":"\u003cp>Soft cotton crew neck tee.\u003c/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"}],"unused_fields":["unused_fields"]}}},"exampleType":"generated"}},"description":"Successful response","exampleType":"generated"},"16657a5f-cf23-4c6a-b8b4-c1280808b287":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"detail":{"type":"object","properties":{"\u003clocation>":{"type":"object","properties":{"\u003cfield_name>":{"type":"array","items":{"type":"string","uniqueKey":"detail.\u003clocation>.\u003cfield_name>.items.[INDEX]","typeLabel":"string"},"uniqueKey":"detail.\u003clocation>.\u003cfield_name>","typeLabel":"string[]"}},"uniqueKey":"detail.\u003clocation>","typeLabel":"object"}},"uniqueKey":"detail","typeLabel":"object"}},"required":["error"],"type":"object","title":"ValidationError","uniqueKey":"","typeLabel":"ValidationError · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","detail":{"\u003clocation>":{"\u003cfield_name>":["\u003cstring>"]}}}}},"exampleType":"generated"}},"description":"Validation error","exampleType":"generated"}},"security":{},"servers":{"9cc91ed5-dbcf-47f6-a041-a270d59cef11":{"description":"Trackstar API","url":"https://production.trackstarhq.com"}}},"originalFileLocation":"https://production.trackstarhq.com/openapi.json"},"subdomain":"trackstar","siteName":"Trackstar","title":"Batch Adjust Inventory for Cart Products - Trackstar","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-27T19:22:27.244Z","originalFileLocation":"api-reference/cart-api/products/batch-adjust.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"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.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Trackstar\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Batch Adjust Inventory for Cart Products - Trackstar\">\u003cmeta data-mint-head property=\"og:description\" content=\"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.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Trackstar\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://trackstar.mintlify.site/_mintlify/api/og/v2?division=Products\u0026amp;title=Batch+Adjust+Inventory+for+Cart+Products\u0026amp;description=Set+the+exact+on-hand+inventory+for+multiple+cart+products+in+a+single+call.%0AEach+line+specifies+a+product+and+the+exact+quantity+to+set%3B+increase+and%0Adecrease+\u0026amp;theme=a7581761d745b5f6f24e3162\u0026amp;signature=5a601cda6f345ce7195757e5c1172b4ec61648aa6a79b9005145891bb2768cac\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Batch Adjust Inventory for Cart Products - Trackstar\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"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.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://trackstar.mintlify.site/_mintlify/api/og/v2?division=Products\u0026amp;title=Batch+Adjust+Inventory+for+Cart+Products\u0026amp;description=Set+the+exact+on-hand+inventory+for+multiple+cart+products+in+a+single+call.%0AEach+line+specifies+a+product+and+the+exact+quantity+to+set%3B+increase+and%0Adecrease+\u0026amp;theme=a7581761d745b5f6f24e3162\u0026amp;signature=5a601cda6f345ce7195757e5c1172b4ec61648aa6a79b9005145891bb2768cac\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/trackstar/pv8TH9ZNYgztdvmO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Trackstar\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7691DA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/cart-api/products/batch-adjust.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trackstarhq.com/#organization\",\"name\":\"Trackstar\",\"url\":\"https://docs.trackstarhq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/trackstar/e_R8AMY4ayyVfYRU/logo/light.svg?fit=max\u0026auto=format\u0026n=e_R8AMY4ayyVfYRU\u0026q=85\u0026s=eb832f4ffc768291fd95c4939b2ac6c2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trackstarhq.com#website\",\"name\":\"Trackstar\",\"url\":\"https://docs.trackstarhq.com\",\"publisher\":{\"@id\":\"https://docs.trackstarhq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust#webpage\",\"url\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust\",\"name\":\"Batch Adjust Inventory for Cart Products\",\"description\":\"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.\",\"dateModified\":\"2026-05-27T19:22:27.244Z\",\"isPartOf\":{\"@id\":\"https://docs.trackstarhq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cart API Reference\",\"item\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/info\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Products\",\"item\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/info\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Batch Adjust Inventory for Cart Products\",\"item\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust#apireference\",\"headline\":\"Batch Adjust Inventory for Cart Products\",\"name\":\"Batch Adjust Inventory for Cart Products\",\"description\":\"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.\",\"url\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trackstarhq.com/api-reference/cart-api/products/batch-adjust#webpage\"},\"dateModified\":\"2026-05-27T19:22:27.244Z\",\"publisher\":{\"@id\":\"https://docs.trackstarhq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trackstarhq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Trackstar\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Trackstar","nav":{"global":{"anchors":[{"anchor":"Request an API Key","icon":"key","href":"https://trackstarhq.com/get-started"},{"anchor":"Login to Dashboard","icon":"browser","href":"https://dashboard.trackstarhq.com"},{"anchor":"WMS Integrations","icon":"warehouse","href":"https://trackstarhq.com/integrations/wms"},{"anchor":"Cart Integrations","icon":"cart-shopping","href":"https://trackstarhq.com/integrations/cart"},{"anchor":"Carrier Integrations","icon":"truck","href":"https://trackstarhq.com/integrations/carrier"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"Admin API","pages":[{"title":"Admin API","href":"/api-reference/mgmt/create-link-token"}]},{"tab":"WMS API","pages":[{"title":"WMS API","href":"/api-reference/wms-api/inventory/info"}]},{"tab":"Cart API","groups":[{"group":"Cart API Reference","pages":[{"group":"Products","pages":[{"title":"Products","href":"/api-reference/cart-api/products/info"},{"openapi":"get /cart/products","title":"Get All Cart Products","href":"/api-reference/cart-api/products/get"},{"openapi":"get /cart/products/{product_id}","title":"Get Cart Product","href":"/api-reference/cart-api/products/get-item"},{"openapi":"put /cart/products/{product_id}/adjust-inventory","title":"Adjust Inventory for Product","description":"Adjust the inventory for the specified cart product.","href":"/api-reference/cart-api/products/adjust"},{"openapi":"put /cart/products/batch-adjust-inventory","title":"Batch Adjust Inventory for Cart Products","href":"/api-reference/cart-api/products/batch-adjust"},{"openapi":"put /cart/products/{product_id}/trackstar-tags","title":"Update Cart Product Trackstar Tags","description":"Update the trackstar tags for the specified cart product.","href":"/api-reference/cart-api/products/add-tag"}]},{"group":"Orders","pages":[{"title":"Cart Orders","href":"/api-reference/cart-api/orders/info"},{"openapi":"get /cart/orders","title":"Get All Cart Orders","href":"/api-reference/cart-api/orders/get"},{"openapi":"get /cart/orders/{order_id}","title":"Get Cart Order","href":"/api-reference/cart-api/orders/get-item"},{"openapi":"post /cart/orders/{order_id}/shipments","title":"Create Cart Order Shipment","href":"/api-reference/cart-api/orders/create-shipment"},{"openapi":"post /cart/orders/{order_id}/refund","title":"Refund Cart Order","href":"/api-reference/cart-api/orders/refund"},{"openapi":"put /cart/orders/{order_id}/trackstar-tags","title":"Update Cart Order Trackstar Tags","href":"/api-reference/cart-api/orders/add-tag"}]},{"group":"Warehouses","pages":[{"title":"Warehouses","href":"/api-reference/cart-api/warehouses/info"},{"openapi":"get /cart/warehouses","title":"Get All Cart Warehouses","href":"/api-reference/cart-api/warehouses/get"},{"openapi":"get /cart/warehouses/{warehouse_id}","title":"Get Cart Warehouse","href":"/api-reference/cart-api/warehouses/get-item"},{"openapi":"put /cart/warehouses/{warehouse_id}/trackstar-tags","title":"Update Cart Warehouse Trackstar Tags","href":"/api-reference/cart-api/warehouses/add-tag"}]}]}]},{"tab":"Carrier API","pages":[{"title":"Carrier API","href":"/api-reference/carrier-api/invoice-line-items/info"}]},{"tab":"ERP API","hidden":true,"pages":[{"title":"ERP API","href":"/api-reference/erp-api/sales-orders/info"}]}]},"basePath":"","title":"Batch Adjust Inventory for Cart Products - Trackstar","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js","Markdown-CpxgzsKA.js","clsx-C5EfhVm0.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CJ9Oly2E.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Mk6P3qvh.js"]}