Read stock levels and adjust them without a full product update.
https://exclusivo.one/api/v1 · scopes inventory:read, inventory:writeOnly products with trackInventory: true appear here. A product with tracking
off never sells out and isn’t listed.
Use adjustment for anything that might run concurrently. It applies as an
atomic increment, so two adjustments arriving together both land.set overwrites. Two concurrent set calls means one silently wins, and a
set racing a customer’s purchase can put back stock that was just sold.Keep set for stocktakes, where overwriting is what you actually mean.
Stock never goes below zero — both paths clamp at 0.
Every adjustment records the previous value, the new one, the reason, the source
and which key made it. That’s what you use to work out why stock is wrong.
Crossing the threshold downwards fires inventory.low.It fires on the crossing, not on every decrement below it — so you get one
alert, not a stream. That webhook threshold is a fixed 10, independent of the
threshold parameter on the read endpoint.→ Webhooks
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"EXC","description":"Documentation for EXC — the NFT launchpad, marketplace and wallet tools — and Stashed, the storefront builder.","colors":{"primary":"#5A6E00","light":"#C0FF00","dark":"#3F4D00"},"logo":"https://mintcdn.com/exclusivo/czLth3x0jq05xbtM/images/rabbit_white_cut.png?fit=max\u0026auto=format\u0026n=czLth3x0jq05xbtM\u0026q=85\u0026s=98937be992e7a116c46befbd0feea7b5","favicon":"https://mintcdn.com/exclusivo/czLth3x0jq05xbtM/images/favicon.svg?fit=max\u0026auto=format\u0026n=czLth3x0jq05xbtM\u0026q=85\u0026s=5a62b29edbb0a757e42a36262d276c02","appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://discord.gg/exclusivo","label":"Support"}],"primary":{"type":"button","label":"Open EXC","href":"https://exclusivo.one"}},"footer":{"socials":{"x":"https://x.com/exc_nft","discord":"https://discord.gg/exclusivo","website":"https://exclusivo.one"},"links":[{"header":"Products","items":[{"label":"Launchpad","href":"https://exclusivo.one/launch"},{"label":"Marketplace","href":"https://exclusivo.one/marketplace"},{"label":"Stashed","href":"https://stashed.one"}]},{"header":"Legal","items":[{"label":"Terms","href":"https://exclusivo.one/terms"},{"label":"Privacy","href":"https://exclusivo.one/privacy"}]}]},"styling":{"codeblocks":"system","latex":false},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"exclusivo","hasAudioNarration":false,"actualSubdomain":"exclusivo","customDomains":["docs.exclusivo.one"],"gitSource":{"type":"github","owner":"rich-akashi","repo":"exclusivo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94ae9d5a6abdcaff3b5a1:success","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"EXC","count":29},{"language":"default","tag":"Stashed","count":27},{"language":"default","tag":"API","count":15},{"language":"default","tag":"NFT Launchpad","count":8},{"language":"default","tag":"Get started","count":7},{"language":"default","tag":"Storefront","count":7},{"language":"default","tag":"Marketplace","count":6},{"language":"default","tag":"Overview","count":5},{"language":"default","tag":"Marketplace API","count":5},{"language":"default","tag":"Store API","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"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":"editor-metadata","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/store/inventory","slug":"/api/store/inventory","pageMetadata":{"title":"Inventory","description":"Read stock levels and adjust them without a full product update.","icon":"warehouse","href":"/api/store/inventory"},"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: \"Read stock levels and adjust them without a full product update.\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`https://exclusivo.one/api/v1`}),` · scopes `,_jsx(_components.code,{children:`inventory:read`}),`, `,_jsx(_components.code,{children:`inventory:write`})]}),`\n`,_jsxs(_components.p,{children:[`Only products with `,_jsx(_components.code,{children:`trackInventory: true`}),` appear here. A product with tracking\noff never sells out and isn’t listed.`]}),`\n`,_jsx(Heading,{level:`2`,id:`read-stock`,children:`Read stock`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /api/v1/inventory`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`product_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`Just this one`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`low_stock`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})}),_jsx(_components.td,{children:`Only items at or below the threshold`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`threshold`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`10`})}),_jsx(_components.td,{children:`What counts as low`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://exclusivo.one/api/v1/inventory?low_stock=true\u0026threshold=5\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer ex_live_your_key_here\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"productId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"prod_abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Ceramic Mug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"inventory\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trackInventory\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lowStock\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This one doesn’t paginate — you get every tracked product with a `,_jsx(_components.code,{children:`count`}),`.\n`,_jsx(_components.code,{children:`threshold`}),` only affects the `,_jsx(_components.code,{children:`lowStock`}),` flag and the `,_jsx(_components.code,{children:`low_stock`}),` filter.`]}),`\n`,_jsx(Heading,{level:`2`,id:`adjust-stock`,children:`Adjust stock`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /api/v1/inventory`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Needs `,_jsx(_components.code,{children:`inventory:write`}),`. Send `,_jsx(_components.code,{children:`product_id`}),`, plus `,_jsx(_components.strong,{children:`either`}),` `,_jsx(_components.code,{children:`adjustment`}),` `,_jsx(_components.strong,{children:`or`}),`\n`,_jsx(_components.code,{children:`set`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`product_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Required`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`adjustment`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Relative. Negative to decrease`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Absolute`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`reason`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Logged. Defaults to `,_jsx(_components.code,{children:`API adjustment`})]})]})]})]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Relative`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://exclusivo.one/api/v1/inventory`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer ex_live_your_key_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"product_id\": \"prod_abc123\", \"adjustment\": -2, \"reason\": \"Damaged in transit\" }'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Absolute`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://exclusivo.one/api/v1/inventory`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer ex_live_your_key_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"product_id\": \"prod_abc123\", \"set\": 50, \"reason\": \"Stocktake\" }'`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`which-one-to-use`,children:`Which one to use`}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Use `,_jsx(_components.code,{children:`adjustment`}),` for anything that might run concurrently.`]}),` It applies as an\natomic increment, so two adjustments arriving together both land.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`set`}),` overwrites. Two concurrent `,_jsx(_components.code,{children:`set`}),` calls means one silently wins, and a\n`,_jsx(_components.code,{children:`set`}),` racing a customer’s purchase can put back stock that was just sold.`]}),_jsxs(_components.p,{children:[`Keep `,_jsx(_components.code,{children:`set`}),` for stocktakes, where overwriting is what you actually mean.`]})]}),`\n`,_jsxs(_components.p,{children:[`Stock never goes below zero — both paths clamp at `,_jsx(_components.code,{children:`0`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-log`,children:`The log`}),`\n`,_jsxs(_components.p,{children:[`Every adjustment records the previous value, the new one, the reason, the source\nand `,_jsx(_components.strong,{children:`which key made it`}),`. That’s what you use to work out why stock is wrong.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-low-stock-webhook`,children:`The low-stock webhook`}),`\n`,_jsxs(_components.p,{children:[`Crossing the threshold downwards fires `,_jsx(_components.code,{children:`inventory.low`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`It fires on the crossing, not on every decrement below it — so you get one\nalert, not a stream. That webhook threshold is a fixed `,_jsx(_components.strong,{children:`10`}),`, independent of the\n`,_jsx(_components.code,{children:`threshold`}),` parameter on the read endpoint.`]}),`\n`,_jsxs(_components.p,{children:[`→ `,_jsx(_components.a,{href:`/api/webhooks`,children:`Webhooks`})]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`No `,_jsx(_components.code,{children:`product_id`}),`, or neither `,_jsx(_components.code,{children:`adjustment`}),` nor `,_jsx(_components.code,{children:`set`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`Wrong scope`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Not in your shop`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limited`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Inventory","description":"Read stock levels and adjust them without a full product update.","icon":"warehouse","href":"/api/store/inventory"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Read stock","slug":"read-stock","depth":2,"children":[]},{"title":"Adjust stock","slug":"adjust-stock","depth":2,"children":[{"title":"Which one to use","slug":"which-one-to-use","depth":3,"children":[]}]},{"title":"The log","slug":"the-log","depth":2,"children":[]},{"title":"The low-stock webhook","slug":"the-low-stock-webhook","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"exclusivo","siteName":"EXC","title":"Inventory - EXC","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-20T12:44:28.002Z","originalFileLocation":"api/store/inventory.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=\"dark\"}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=\"Read stock levels and adjust them without a full product update.\">\u003cmeta data-mint-head name=\"application-name\" content=\"EXC\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/exclusivo/Lp1lp1x8hW9zzc0W/_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/exclusivo/Lp1lp1x8hW9zzc0W/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/exclusivo/Lp1lp1x8hW9zzc0W/_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/exclusivo/Lp1lp1x8hW9zzc0W/_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/exclusivo/Lp1lp1x8hW9zzc0W/_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/exclusivo/Lp1lp1x8hW9zzc0W/_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/exclusivo/Lp1lp1x8hW9zzc0W/_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/exclusivo/Lp1lp1x8hW9zzc0W/_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/exclusivo/Lp1lp1x8hW9zzc0W/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Inventory - EXC\">\u003cmeta data-mint-head property=\"og:description\" content=\"Read stock levels and adjust them without a full product update.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"EXC\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.exclusivo.one/api/store/inventory\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://exclusivo.mintlify.site/_mintlify/api/og/v2?division=Store+API\u0026amp;title=Inventory\u0026amp;description=Read+stock+levels+and+adjust+them+without+a+full+product+update.\u0026amp;theme=830d8f3f5034b6151baef368\u0026amp;signature=133993a53af9761704802b12108e71472a38bb11311f7d561165ef2bcb6b4c10\">\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=\"Inventory - EXC\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Read stock levels and adjust them without a full product update.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://exclusivo.mintlify.site/_mintlify/api/og/v2?division=Store+API\u0026amp;title=Inventory\u0026amp;description=Read+stock+levels+and+adjust+them+without+a+full+product+update.\u0026amp;theme=830d8f3f5034b6151baef368\u0026amp;signature=133993a53af9761704802b12108e71472a38bb11311f7d561165ef2bcb6b4c10\">\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/exclusivo/Lp1lp1x8hW9zzc0W/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"EXC\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5A6E00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.exclusivo.one/api/store/inventory\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/store/inventory.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.exclusivo.one/#organization\",\"name\":\"EXC\",\"url\":\"https://docs.exclusivo.one\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/exclusivo/czLth3x0jq05xbtM/images/rabbit_white_cut.png?fit=max\u0026auto=format\u0026n=czLth3x0jq05xbtM\u0026q=85\u0026s=98937be992e7a116c46befbd0feea7b5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.exclusivo.one#website\",\"name\":\"EXC\",\"url\":\"https://docs.exclusivo.one\",\"publisher\":{\"@id\":\"https://docs.exclusivo.one/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.exclusivo.one/api/store/inventory#webpage\",\"url\":\"https://docs.exclusivo.one/api/store/inventory\",\"name\":\"Inventory\",\"description\":\"Read stock levels and adjust them without a full product update.\",\"dateModified\":\"2026-08-20T12:44:28.002Z\",\"isPartOf\":{\"@id\":\"https://docs.exclusivo.one#website\"},\"breadcrumb\":{\"@id\":\"https://docs.exclusivo.one/api/store/inventory#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.exclusivo.one/api/store/inventory#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Store API\",\"item\":\"https://docs.exclusivo.one/api/store/products\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Inventory\",\"item\":\"https://docs.exclusivo.one/api/store/inventory\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.exclusivo.one/api/store/inventory#article\",\"headline\":\"Inventory\",\"name\":\"Inventory\",\"description\":\"Read stock levels and adjust them without a full product update.\",\"url\":\"https://docs.exclusivo.one/api/store/inventory\",\"mainEntityOfPage\":{\"@id\":\"https://docs.exclusivo.one/api/store/inventory#webpage\"},\"dateModified\":\"2026-08-20T12:44:28.002Z\",\"publisher\":{\"@id\":\"https://docs.exclusivo.one/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.exclusivo.one#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"EXC\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"EXC","nav":{"global":null,"tabs":[{"tab":"EXC","pages":[{"title":"EXC","href":"/exc"}]},{"tab":"Stashed","pages":[{"title":"Stashed","href":"/stashed"}]},{"tab":"API","groups":[{"group":"Overview","pages":[{"title":"API overview","icon":"code","href":"/api"},{"title":"Authentication","icon":"key","href":"/api/authentication"},{"title":"Rate limits","icon":"gauge-high","href":"/api/rate-limits"},{"title":"Errors","icon":"triangle-exclamation","href":"/api/errors"},{"title":"Webhooks","icon":"webhook","href":"/api/webhooks"}]},{"group":"Store API","pages":[{"title":"Products","icon":"box","href":"/api/store/products"},{"title":"Orders","icon":"receipt","href":"/api/store/orders"},{"title":"Customers","description":"List and read customer records.","icon":"users","href":"/api/store/customers"},{"title":"Inventory","icon":"warehouse","href":"/api/store/inventory"},{"title":"Analytics","description":"Revenue, orders, top products and the conversion funnel.","icon":"chart-line","href":"/api/store/analytics"}]},{"group":"Marketplace API","pages":[{"title":"Marketplace API","icon":"chart-line","href":"/api/marketplace/index"},{"title":"Collections","icon":"grid-2","href":"/api/marketplace/collections"},{"title":"Listings","icon":"tag","href":"/api/marketplace/listings"},{"title":"Sales","icon":"clock-rotate-left","href":"/api/marketplace/sales"},{"title":"Tokens","icon":"image","href":"/api/marketplace/tokens"}]}]}]},"basePath":"","title":"Inventory - EXC","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":[],"chunks":[]}