The 13 scopes, what each one unlocks, and how a missing one is reported.
Every key carries a set of scopes. An endpoint declares what it needs, and your key must hold
all of them — the check is AND, not OR.A key issued today holds every scope. Narrowing one is an admin action: ask us, and say what
the integration actually needs.
The scopes
Scope
Unlocks
listings:read
Listing get and search, shipping rates, bundles, purchase-readiness
listings:write
Create, update, delete, cancel, purchase, checkout, ship, confirm receipt, report not received, photos; all draft-listing writes; bundle confirm-receipt
offers:read
Cash-offer get and search, evergreen preferences get and search
Everything under drug-packages, and NDC transaction statistics
pharmacies:read
Pharmacy search, and reading the group’s NPI list
pharmacies:write
Replacing the group’s NPI list
payments:read
Listing payment methods
notifications:read
Reading notifications and notification preferences
notifications:write
Dismissing notifications, updating preferences
webhooks:manage
Everything under webhook-endpoints
pharmacies:write exists because replacing a group’s roster is a different kind of act
from reading it. A read-only key cannot change who is in your group.
required-scopes lists everything the endpoint requires, not just what you were missing —
so you can see the full requirement in one call rather than discovering it one scope at a
time.
required-scopes is kebab-case while every other member of the envelope is camelCase. That
is deliberate and will not change.
Asking for less
If your integration only ever reads, ask for a read-only key. The blast radius of a leaked
credential is the scopes on it, and a key that cannot write cannot list real inventory on the
live marketplace.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"InStockRx API","description":"Partner API for the InStockRx pharmacy marketplace.","colors":{"primary":"#EA6318","light":"#F58A4B","dark":"#B54B12"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg","href":"https://www.instockrx.com"},"favicon":"/favicon.svg","api":{"playground":{"display":"interactive"},"examples":{"languages":["bash","javascript","python"]}},"navbar":{"links":[{"href":"mailto:info@instockrx.com","label":"Support"}],"primary":{"type":"button","label":"Get sandbox access","href":"https://sandbox.instockrx.com"}},"footer":{"socials":{"website":"https://www.instockrx.com"}},"integrations":{"telemetry":{"enabled":false}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4342"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[]}
{"page":{"pagePath":"v2/reference/scopes","slug":"/v2/reference/scopes","pageMetadata":{"title":"Scopes","description":"The 13 scopes, what each one unlocks, and how a missing one is reported.","href":"/v2/reference/scopes"},"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: \"The 13 scopes, what each one unlocks, and how a missing one is reported.\"\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={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Every key carries a set of scopes. An endpoint declares what it needs, and your key must hold\n`,_jsx(_components.strong,{children:`all`}),` of them — the check is AND, not OR.`]}),`\n`,_jsx(_components.p,{children:`A key issued today holds every scope. Narrowing one is an admin action: ask us, and say what\nthe integration actually needs.`}),`\n`,_jsx(Heading,{level:`2`,id:`the-scopes`,children:`The scopes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Unlocks`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`listings:read`})}),_jsx(_components.td,{children:`Listing get and search, shipping rates, bundles, purchase-readiness`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`listings:write`})}),_jsx(_components.td,{children:`Create, update, delete, cancel, purchase, checkout, ship, confirm receipt, report not received, photos; all draft-listing writes; bundle confirm-receipt`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`offers:read`})}),_jsx(_components.td,{children:`Cash-offer get and search, evergreen preferences get and search`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`offers:write`})}),_jsx(_components.td,{children:`Cash-offer create, update, accept, decline, cancel; evergreen create, update, cancel-pending`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`returns:read`})}),_jsx(_components.td,{children:`Return get and search, return documents`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`returns:write`})}),_jsx(_components.td,{children:`Return create, ship-details, buyer-ship, seller-confirm-receipt`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`drugs:read`})}),_jsx(_components.td,{children:`Everything under drug-packages, and NDC transaction statistics`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pharmacies:read`})}),_jsx(_components.td,{children:`Pharmacy search, and reading the group’s NPI list`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pharmacies:write`})}),_jsx(_components.td,{children:`Replacing the group’s NPI list`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payments:read`})}),_jsx(_components.td,{children:`Listing payment methods`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`notifications:read`})}),_jsx(_components.td,{children:`Reading notifications and notification preferences`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`notifications:write`})}),_jsx(_components.td,{children:`Dismissing notifications, updating preferences`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`webhooks:manage`})}),_jsx(_components.td,{children:`Everything under webhook-endpoints`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`pharmacies:write`}),` exists because replacing a group’s roster is a different kind of act\nfrom reading it. A read-only key cannot change who is in your group.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`when-a-scope-is-missing`,children:`When a scope is missing`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,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:`6`,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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.instockrx.com/problems/insufficient-scope\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`403`}),_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:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:` \"required-scopes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"listings:write\"`}),_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`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`required-scopes`}),` lists `,_jsx(_components.strong,{children:`everything`}),` the endpoint requires, not just what you were missing —\nso you can see the full requirement in one call rather than discovering it one scope at a\ntime.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`required-scopes`}),` is kebab-case while every other member of the envelope is camelCase. That\nis deliberate and will not change.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`asking-for-less`,children:`Asking for less`}),`\n`,_jsx(_components.p,{children:`If your integration only ever reads, ask for a read-only key. The blast radius of a leaked\ncredential is the scopes on it, and a key that cannot write cannot list real inventory on the\nlive marketplace.`})]})}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":{"config":{},"pageMetadata":{"title":"Scopes","description":"The 13 scopes, what each one unlocks, and how a missing one is reported.","href":"/v2/reference/scopes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The scopes","slug":"the-scopes","depth":2,"children":[]},{"title":"When a scope is missing","slug":"when-a-scope-is-missing","depth":2,"children":[]},{"title":"Asking for less","slug":"asking-for-less","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"localhost","siteName":"InStockRx API","title":"Scopes - InStockRx API","navMaps":{"firstHrefInVersion":{"v2":{"href":"/v2/reference/scopes","matchLevel":0},"v1":{"href":"/reference/enumerations","matchLevel":2}},"firstHrefInLanguage":{}},"originalFileLocation":"v2/reference/scopes.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=\"The 13 scopes, what each one unlocks, and how a missing one is reported.\">\u003cmeta data-mint-head name=\"application-name\" content=\"InStockRx API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Scopes - InStockRx API\">\u003cmeta data-mint-head property=\"og:description\" content=\"The 13 scopes, what each one unlocks, and how a missing one is reported.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"InStockRx API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./v2/reference/scopes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Scopes - InStockRx API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The 13 scopes, what each one unlocks, and how a missing one is reported.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"InStockRx API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EA6318\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./v2/reference/scopes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v2/reference/scopes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"InStockRx API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"InStockRx API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v2/reference/scopes.md","siteName":"InStockRx API","nav":{"versions":[{"version":"v2","tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"InStockRx API v2","href":"/v2/introduction"},{"title":"Sandbox onboarding","href":"/v2/sandbox"},{"title":"Production access","href":"/v2/production-access"},{"title":"Quickstart","href":"/v2/quickstart"}]},{"group":"Guides","pages":[{"title":"Authentication","href":"/v2/guides/authentication"},{"title":"Environments","href":"/v2/guides/environments"},{"title":"Searching and paging","href":"/v2/guides/pagination"},{"title":"Concurrent updates","href":"/v2/guides/concurrency"},{"title":"Safe retries","href":"/v2/guides/idempotency"},{"title":"Webhooks","href":"/v2/guides/webhooks"},{"title":"Migrating from v1","description":"What changed, what it breaks, and what you gain.","href":"/v2/guides/migrating-from-v1"}]},{"group":"Reference","pages":[{"title":"Scopes","href":"/v2/reference/scopes"},{"title":"Errors","description":"One error shape, the slug to branch on, and the request id to quote.","href":"/v2/reference/errors"},{"title":"Rate limits","href":"/v2/reference/rate-limits"},{"title":"What v2 can't do yet","href":"/v2/reference/limitations"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/v2/api-reference/overview"}]}]},{"version":"v1","pages":[{"title":"v1","href":"/reference/enumerations"}]}]},"basePath":"","title":"Scopes - InStockRx API","buildId":"b8b92e8dc392","dynamics":[],"chunks":[]}