Subotiz OpenAPI uses API Keys to authenticate requests. Every API call must include a valid API Key in the HTTP request header. The gateway validates the key before forwarding the request to backend services.
Get Your API Key
Log in to the Subotiz merchant dashboard and navigate to Settings > Developer Settings to view and manage your API Keys.
Your API Key is shown in full only once at creation time. Store it securely. If lost, you will need to generate a new one — the old key will be immediately invalidated.
Making Authenticated Requests
Request Header Format
All OpenAPI requests must include the following HTTP header:
Header
Value
Description
Authorization
Bearer {your_api_key}
Replace {your_api_key} with your actual API Key
Example
curl -X GET "https://api.subotiz.com/openapi/v1/orders" \ -H "Authorization: Bearer {your_api_key}"
Key Rotation
When a key is compromised or needs periodic renewal, you can rotate it from the Developer Settings page.
Rotation Process
Initiate key rotation in Developer Settings — a new API Key will be generated
The system sets a grace period for the old key (default: 3 minutes, customizable at rotation time)
During the grace period, both old and new keys are valid — update your services to use the new key as soon as possible
After the grace period ends, the old key is automatically invalidated; only the new key remains valid
Complete the switch to the new key before the grace period ends to avoid request interruptions. If you have Webhooks configured, key rotation also affects Webhook signature verification — it is recommended to support both old and new keys for signature validation during the grace period. See Webhook Introduction for details.
Error Handling
When authentication fails, the API returns an HTTP 401 status code. The following table lists common error causes and recommended actions:
Error Cause
What to Do
Missing Authorization header
Ensure your request includes Authorization: Bearer {key}
Invalid or non-existent API Key
Verify the key is correct, or retrieve it again from the dashboard
API Key expired or revoked
Generate a new key from Developer Settings
Malformed Authorization header
Ensure the format is Bearer {key} with exactly one space after Bearer
Error response example
{ "code": "unauthorizedError", "message": "ApiKey authentication is required"}
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Subotiz","description":"Subotiz Developer Documentation","colors":{"primary":"#7700ea","light":"#a968ff","dark":"#430084"},"logo":{"light":"https://mintcdn.com/shoplazza-92a3a725/qE6OW7uXRx_JwZAh/images/Logo.svg?fit=max\u0026auto=format\u0026n=qE6OW7uXRx_JwZAh\u0026q=85\u0026s=f4ba7dc0a1b50b7b7a4aa5042ddfd95f","dark":"https://mintcdn.com/shoplazza-92a3a725/IYhOhkNHboR-yvuO/images/darkLogo.svg?fit=max\u0026auto=format\u0026n=IYhOhkNHboR-yvuO\u0026q=85\u0026s=0c023c7e751ef32188fbd05ca03326dd"},"favicon":"https://mintcdn.com/shoplazza-92a3a725/xi6unjY8U9x8k31B/favicon.png?fit=max\u0026auto=format\u0026n=xi6unjY8U9x8k31B\u0026q=85\u0026s=bab15cd5e241d151f64c11ae16709f03","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","javascript","python","php","go","java","ruby"],"prefill":true}},"navbar":{"links":[{"href":"/llms.txt","label":"llms.txt"}]},"footer":{},"icons":{"library":"lucide"},"contextual":{"options":["assistant","copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en/quick-start/overview"},{"language":"zh","href":"zh/quick-start/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"shoplazza-92a3a725","hasAudioNarration":false,"actualSubdomain":"shoplazza-92a3a725","customDomains":["docs.subotiz.com"],"gitSource":{"type":"github","owner":"shoplazza","repo":"subotiz-docs-mintlify","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10d3539ffae5051c40c14e"},"feedback":{"thumbs":true,"agentFeedback":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afe9c085db5605d838a2ea3","clientVersion":"0.0.4448","searchFilterCounts":[{"language":"en","tag":"API Reference","count":73},{"language":"en","tag":"Subotiz API","count":73},{"language":"zh","tag":"API 参考","count":73},{"language":"zh","tag":"Subotiz API","count":73},{"language":"en","tag":"Documentation","count":30},{"language":"zh","tag":"文档","count":30},{"language":"zh","tag":"常见问题","count":28},{"language":"en","tag":"Webhook","count":18},{"language":"zh","tag":"Webhook","count":18},{"language":"en","tag":"Subscription","count":14},{"language":"en","tag":"FAQ","count":14},{"language":"en","tag":"Frequently Asked Questions","count":14},{"language":"zh","tag":"订阅","count":14},{"language":"en","tag":"Event","count":13},{"language":"zh","tag":"事件","count":13},{"language":"en","tag":"Product","count":9},{"language":"zh","tag":"商品管理","count":9},{"language":"en","tag":"Price","count":8},{"language":"zh","tag":"商品定价","count":8},{"language":"zh","tag":"V2 版本","count":8}],"searchSettings":{"maxResults":6}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content a.link,#content a:not([class]){color:#7700ea!important;font-weight:500!important;text-underline-offset:2px}#content a.link strong,#content a.link b,#content a.link em{color:inherit!important}#content a.link:hover,#content a:not([class]):hover{color:#7700ea!important}.dark #content a.link,.dark #content a:not([class]){color:rgb(var(--primary-light))!important}.dark #content a.link:hover,.dark #content a:not([class]):hover{color:rgb(var(--primary-light))!important}#pagination{gap:3rem;align-items:flex-start}#pagination a:last-child{text-align:right;justify-content:flex-end}#navbar .navbar-link>a{padding:0.375rem 0.6rem;border-radius:0.5rem;color:rgb(var(--gray-900))!important;transition:background-color 0.15s ease, color 0.15s ease}.dark #navbar .navbar-link>a{color:rgb(var(--gray-300))!important}#navbar .navbar-link>a:hover{background-color:rgb(var(--gray-600) / 0.06)}.dark #navbar .navbar-link>a:hover{background-color:rgb(var(--gray-200) / 0.08)}#navbar-transition{border-bottom-color:rgb(var(--gray-950) / 0.04)!important}.dark #navbar-transition{border-bottom-color:rgb(255 255 255 / 0.10)!important}@media (min-width: 1024px){#navbar div.h-16>div.flex-1{border-bottom:0!important}#navbar-transition::after{content:\"\";position:absolute;left:0;right:0;top:4rem;border-top:1px solid rgb(var(--gray-950) / 0.04);pointer-events:none}.dark #navbar-transition::after{border-top-color:rgb(255 255 255 / 0.10)}}@media (min-width: 1024px){#navbar div:has(>#localization-select-trigger){position:absolute;right:3rem;z-index:50}#navbar li.navbar-link:has(a[href$=\".txt\"]){transform:translateX(-7.25rem)}}#content .frame{margin-top:1.25rem;margin-bottom:1.25rem}#table-of-contents-content ul{margin-left:0;padding-left:0}#table-of-contents-content .toc-item>a{border-left:1px solid rgb(var(--gray-950) / 0.05);padding-left:0.75rem;transition:border-color 0.15s ease, color 0.15s ease}#table-of-contents-content .toc-item>a:hover{border-left-color:rgb(var(--gray-950) / 0.2)}.dark #table-of-contents-content .toc-item>a{border-left-color:rgb(255 255 255 / 0.1)}.dark #table-of-contents-content .toc-item>a:hover{border-left-color:rgb(255 255 255 / 0.2)}#table-of-contents-content .toc-item>a.text-primary,#table-of-contents-content .toc-item>a[aria-current=\"true\"]{border-left:2px solid rgb(var(--primary));color:rgb(var(--primary))!important}.dark #table-of-contents-content .toc-item>a.text-primary,.dark #table-of-contents-content .toc-item>a[aria-current=\"true\"]{border-left-color:rgb(var(--primary-light));color:rgb(var(--primary-light))!important}#table-of-contents-content .toc-item[data-depth=\"2\"],#table-of-contents-content .toc-item[data-depth=\"3\"],#table-of-contents-content .toc-item[data-depth=\"4\"],#table-of-contents-content .toc-item[data-depth=\"5\"]{display:none!important}#table-of-contents-content .toc-item[data-depth=\"1\"]>a{padding-left:1.75rem!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) div:has(>div>#content-area){gap:0!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) div:has(>#content-area),html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) #content-area,html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) #content-container{width:100%!important;max-width:100%!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) [aria-label=\"Scrollable table\"] table{width:100%!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) #content-area{padding-right:0!important;margin-right:0!important}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) [aria-label=\"Scrollable table\"] table{font-size:0.8125rem;line-height:1.4}html:is([data-current-path=\"/zh/webhook/event-types-1\"],[data-current-path=\"/zh/webhook/event-types\"],[data-current-path=\"/en/webhook/event-types-1\"],[data-current-path=\"/en/webhook/event-types\"]) [aria-label=\"Scrollable table\"] table :is(th,td,code,a){font-size:0.8125rem}#theme-preference-menu-trigger:hover{background-color:rgb(var(--gray-600) / 0.05)}.dark #sidebar a:hover,.dark #sidebar button:hover,.dark #theme-preference-menu-trigger:hover{background-color:rgb(var(--gray-200) / 0.10)!important}@layer utilities{.dark #localization-select-trigger:hover{background-color:rgb(var(--gray-200) / 0.16)!important}}.dark #search-bar-entry{--tw-ring-color: rgb(var(--gray-400) / 0.6) !important;border-color:rgb(var(--gray-400) / 0.6)!important}.dark #content li::marker{color:rgb(var(--gray-500))!important}.dark [role=\"menu\"]{background-color:rgb(var(--gray-800))!important;border-color:rgb(var(--gray-700))!important}.dark [role=\"menu\"] [role=\"menuitem\"]:hover,.dark [role=\"menu\"] [role=\"menuitem\"][data-highlighted],.dark [role=\"menu\"] [role=\"menuitemradio\"]:hover,.dark [role=\"menu\"] [role=\"menuitemradio\"][data-highlighted],.dark [role=\"menu\"] [role=\"menuitemradio\"][aria-checked=\"true\"],.dark [role=\"menu\"] [data-highlighted]{background-color:rgb(var(--gray-700) / 0.7)!important}.dark #sidebar svg,.dark #localization-select-trigger svg,.dark #page-context-menu svg{color:rgb(var(--gray-400))!important}.dark #sidebar button:hover svg,.dark #localization-select-trigger:hover svg,.dark #page-context-menu button:hover svg{color:rgb(var(--gray-200))!important}#sidebar svg[class~=\"bg-gray-400\"]{background-color:currentColor!important}#sidebar img[src$=\"icon-checkout-v2.svg\"],#sidebar img[src$=\"icon-payment.svg\"]{filter:brightness(0) invert(0.259)!important}.dark #sidebar img[src$=\"icon-checkout-v2.svg\"],.dark #sidebar img[src$=\"icon-payment.svg\"]{filter:brightness(0) invert(0.635)!important}.subotiz-fab{position:fixed;right:var(--subotiz-fab-right, 2.75rem);z-index:60;display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:9999px;background-color:#fff;color:rgb(var(--gray-500));border:1px solid rgb(var(--gray-950) / 0.1);box-shadow:0 2px 10px rgb(var(--gray-950) / 0.1);transition:color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease}#subotiz-feedback-fab{bottom:1.5rem}#subotiz-help-fab{bottom:4.5rem}.subotiz-fab:hover{color:rgb(var(--primary));border-color:rgb(var(--primary) / 0.4);background-color:rgb(var(--primary) / 0.06);transform:translateY(-1px)}.dark .subotiz-fab{background-color:rgb(var(--gray-800));color:rgb(var(--gray-400));border-color:rgb(255 255 255 / 0.12);box-shadow:0 2px 10px rgb(0 0 0 / 0.35)}.dark .subotiz-fab:hover{color:rgb(var(--primary-light));border-color:rgb(var(--primary-light) / 0.5);background-color:rgb(var(--primary-light) / 0.12)}.subotiz-fab::after{content:attr(aria-label);position:absolute;right:calc(100% + 0.5rem);top:50%;transform:translateY(-50%);white-space:nowrap;background-color:rgb(var(--gray-900));color:#fff;font-size:0.75rem;line-height:1;padding:0.375rem 0.5rem;border-radius:0.375rem;opacity:0;pointer-events:none;transition:opacity 0.15s ease}.subotiz-fab:hover::after{opacity:1}html[data-fab-tip=\"right\"] .subotiz-fab::after{right:auto;left:calc(100% + 0.5rem)}html[data-ai-open] .subotiz-fab{display:none!important}#content details.accordion[open]>summary{border-bottom:1px solid rgb(var(--gray-950) / 0.06)}.dark #content details.accordion[open]>summary{border-bottom-color:rgb(255 255 255 / 0.08)}#content details.accordion>div{margin-top:1rem!important}[data-callout-type=\"info\"]{border-color:rgb(var(--primary) / 0.35)!important;background-color:rgb(var(--primary) / 0.06)!important}[data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:rgb(var(--primary))!important}.dark [data-callout-type=\"info\"]{border-color:rgb(var(--primary-light) / 0.4)!important;background-color:rgb(var(--primary-light) / 0.1)!important}.dark [data-callout-type=\"info\"] [data-component-part=\"callout-icon\"] svg{color:rgb(var(--primary-light))!important}[data-callout-type=\"note\"]{border-color:rgb(var(--gray-200))!important;background-color:rgb(var(--gray-50))!important}[data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:rgb(var(--gray-500))!important}.dark [data-callout-type=\"note\"]{border-color:rgb(var(--gray-700))!important;background-color:rgb(255 255 255 / 0.06)!important}.dark [data-callout-type=\"note\"] [data-component-part=\"callout-icon\"] svg{color:rgb(var(--gray-400))!important}.primitive-param-field>.py-6{padding-top:1rem!important;padding-bottom:1rem!important}.expandable-content .primitive-param-field>.py-6{padding-top:0.75rem!important;padding-bottom:0.75rem!important}.mb-14:has(>.api-section){margin-bottom:2rem!important}.api-section [data-as=\"p\"]>code,.api-section li>code,.primitive-param-field [data-as=\"p\"]>code,.primitive-param-field li>code{font-size:0.8125em!important;padding:0.125rem 0.375rem!important;border-radius:0.3rem!important;background-color:rgb(var(--gray-100))!important;border:1px solid rgb(var(--gray-950) / 0.06)!important}.dark .api-section [data-as=\"p\"]>code,.dark .api-section li>code,.dark .primitive-param-field [data-as=\"p\"]>code,.dark .primitive-param-field li>code{background-color:rgb(255 255 255 / 0.06)!important;border-color:rgb(255 255 255 / 0.08)!important}#content .steps{margin-top:1rem!important}#content .frame{background:transparent!important;padding:0!important;border-radius:0!important;overflow:visible!important}#content .frame>.absolute{display:none!important}#content .frame>div.relative:not([data-component-part=\"frame-caption\"]){border:1px solid rgb(var(--gray-950) / 0.1)!important;border-radius:12px!important;padding:12px!important;background:#fff!important}.dark #content .frame>div.relative:not([data-component-part=\"frame-caption\"]){border-color:rgb(255 255 255 / 0.12)!important;background:rgb(var(--gray-800) / 0.35)!important}#content .frame img{border-radius:6px!important}#content .frame [data-component-part=\"frame-caption\"]{text-align:center!important;margin-top:0.5rem!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}[data-component-part=\"code-group-tab-bar\"] [role=\"tab\"][aria-selected=\"true\"]{color:rgb(var(--primary))!important}.dark [data-component-part=\"code-group-tab-bar\"] [role=\"tab\"][aria-selected=\"true\"]{color:rgb(var(--primary-light))!important}[data-component-part=\"card-content-container\"]{display:grid;grid-template-columns:auto 1fr;column-gap:0.625rem;align-items:center}[data-component-part=\"card-content-container\"]>a[data-client-link]{display:contents}[data-component-part=\"card-content-container\"] .w-full{display:contents}[data-component-part=\"card-content-container\"] [data-component-part=\"card-icon\"]{grid-column:1;grid-row:1}[data-component-part=\"card-content-container\"] [data-component-part=\"card-title\"]{grid-column:2;grid-row:1;margin-top:0!important}[data-component-part=\"card-content-container\"] [data-component-part=\"card-content\"]{grid-column:1 / -1;grid-row:2;margin-top:0.5rem!important}.dark #assistant-entry{box-shadow:0 0 0 1px rgba(162, 158, 165, 0.6)}#navigation-items button[data-active-ancestor]{color:rgb(var(--primary))!important}#navigation-items button[data-active-ancestor] svg:not([stroke]){background-color:rgb(var(--primary))!important}.dark #navigation-items button[data-active-ancestor]{color:rgb(var(--primary-light))!important}.dark #navigation-items button[data-active-ancestor] svg:not([stroke]){background-color:rgb(var(--primary-light))!important}#navigation-items button[data-active-ancestor] svg[stroke]{color:rgb(var(--primary))!important}.dark #navigation-items button[data-active-ancestor] svg[stroke]{color:rgb(var(--primary-light))!important}[data-component-part=\"search-input-container\"]{border-color:oklab(0.704767 0.00727233 -0.00827515 / 0.3)!important}.dark [data-component-part=\"search-input-container\"]{border-color:rgba(162, 158, 165, 0.6)!important}#sidebar{top:7rem!important}"}]}
{"page":{"pagePath":"en/api/authentication-1","slug":"/en/api/authentication-1","pageMetadata":{"title":"Authentication","icon":"key-round","description":null,"href":"/en/api/authentication-1"},"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`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedImage,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Subotiz OpenAPI uses `,_jsx(_components.strong,{children:`API Keys`}),` to authenticate requests. Every API call must include a valid API Key in the HTTP request header. The gateway validates the key before forwarding the request to backend services.`]}),`\n`,_jsx(Heading,{level:`2`,id:`get-your-api-key`,children:`Get Your API Key`}),`\n`,_jsxs(_components.p,{children:[`Log in to the Subotiz merchant dashboard and navigate to `,_jsx(_components.strong,{children:`Settings > Developer Settings`}),` to view and manage your API Keys.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Your API Key is shown in full only once at creation time. Store it securely. If lost, you will need to generate a new one — the old key will be immediately invalidated.`})}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8346e310-f6506c2bdf2eb946aaad06d8e371323e3ae9803ce16d7e8664a04083-image.png?fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=2c144067cbcfe9df97d6db110b7edcb3`,\"data-og-width\":`1916`,width:`1916`,\"data-og-height\":`715`,height:`715`,\"data-path\":`images/8346e310-f6506c2bdf2eb946aaad06d8e371323e3ae9803ce16d7e8664a04083-image.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8346e310-f6506c2bdf2eb946aaad06d8e371323e3ae9803ce16d7e8664a04083-image.png?w=280\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=3b679626ac0295a7c092fe1ece200235 280w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8346e310-f6506c2bdf2eb946aaad06d8e371323e3ae9803ce16d7e8664a04083-image.png?w=560\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=110f93fc9e39f3dc59f3027a34348315 560w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8346e310-f6506c2bdf2eb946aaad06d8e371323e3ae9803ce16d7e8664a04083-image.png?w=840\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=073e73085f60bfe6db7dc36e6e7e2cc6 840w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8346e310-f6506c2bdf2eb946aaad06d8e371323e3ae9803ce16d7e8664a04083-image.png?w=1100\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=a4db4f3c04d0014293cd0b8914749285 1100w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8346e310-f6506c2bdf2eb946aaad06d8e371323e3ae9803ce16d7e8664a04083-image.png?w=1650\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=1f03086dc907a9fa49bcc59e68280dc9 1650w, https://mintcdn.com/shoplazza-92a3a725/kRg57qaFxQCCAN8Z/images/8346e310-f6506c2bdf2eb946aaad06d8e371323e3ae9803ce16d7e8664a04083-image.png?w=2500\u0026fit=max\u0026auto=format\u0026n=kRg57qaFxQCCAN8Z\u0026q=85\u0026s=c90d3f86de0f26704b280d7d940fa23d 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`making-authenticated-requests`,children:`Making Authenticated Requests`}),`\n`,_jsx(Heading,{level:`3`,id:`request-header-format`,children:`Request Header Format`}),`\n`,_jsx(_components.p,{children:`All OpenAPI requests must include the following HTTP header:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Bearer {your_api_key}`})}),_jsxs(_components.td,{children:[`Replace `,_jsx(_components.code,{children:`{your_api_key}`}),` with your actual API Key`]})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\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:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.subotiz.com/openapi/v1/orders\"`}),_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 {your_api_key}\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`key-rotation`,children:`Key Rotation`}),`\n`,_jsxs(_components.p,{children:[`When a key is compromised or needs periodic renewal, you can `,_jsx(_components.strong,{children:`rotate`}),` it from the Developer Settings page.`]}),`\n`,_jsx(Heading,{level:`3`,id:`rotation-process`,children:`Rotation Process`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Initiate key rotation in Developer Settings — a new API Key will be generated`}),`\n`,_jsx(_components.li,{children:`The system sets a grace period for the old key (default: 3 minutes, customizable at rotation time)`}),`\n`,_jsxs(_components.li,{children:[`During the grace period, `,_jsx(_components.strong,{children:`both old and new keys are valid`}),` — update your services to use the new key as soon as possible`]}),`\n`,_jsx(_components.li,{children:`After the grace period ends, the old key is automatically invalidated; only the new key remains valid`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Complete the switch to the new key before the grace period ends to avoid request interruptions. If you have Webhooks configured, key rotation also affects Webhook signature verification — it is recommended to support both old and new keys for signature validation during the grace period. See `,_jsx(_components.a,{href:`/en/webhook/introduction-2`,children:`Webhook Introduction`}),` for details.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error Handling`}),`\n`,_jsxs(_components.p,{children:[`When authentication fails, the API returns an HTTP `,_jsx(_components.code,{children:`401`}),` status code. The following table lists common error causes and recommended actions:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Error Cause`}),_jsx(_components.th,{children:`What to Do`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`Authorization`}),` header`]}),_jsxs(_components.td,{children:[`Ensure your request includes `,_jsx(_components.code,{children:`Authorization: Bearer {key}`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invalid or non-existent API Key`}),_jsx(_components.td,{children:`Verify the key is correct, or retrieve it again from the dashboard`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API Key expired or revoked`}),_jsx(_components.td,{children:`Generate a new key from Developer Settings`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Malformed `,_jsx(_components.code,{children:`Authorization`}),` header`]}),_jsxs(_components.td,{children:[`Ensure the format is `,_jsx(_components.code,{children:`Bearer {key}`}),` with exactly one space after `,_jsx(_components.code,{children:`Bearer`})]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`error-response-example`,children:`Error response example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unauthorizedError\"`}),_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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ApiKey authentication is required\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}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":"Authentication","icon":"key-round","description":null,"href":"/en/api/authentication-1"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get Your API Key","slug":"get-your-api-key","depth":2,"children":[]},{"title":"Making Authenticated Requests","slug":"making-authenticated-requests","depth":2,"children":[{"title":"Request Header Format","slug":"request-header-format","depth":3,"children":[]},{"title":"Example","slug":"example","depth":3,"children":[]}]},{"title":"Key Rotation","slug":"key-rotation","depth":2,"children":[{"title":"Rotation Process","slug":"rotation-process","depth":3,"children":[]}]},{"title":"Error Handling","slug":"error-handling","depth":2,"children":[{"title":"Error response example","slug":"error-response-example","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/shoplazza-92a3a725/01e940adff1c3ce9/floating-widgets.js"],"subdomain":"shoplazza-92a3a725","siteName":"Subotiz","title":"Authentication - Subotiz","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/api/authentication-1","matchLevel":0},"zh":{"href":"/zh/api/authentication-1","matchLevel":1}}},"lastModified":"2026-11-12T05:49:28.613Z","originalFileLocation":"en/api/authentication-1.mdx","locale":"en"},"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=\"application-name\" content=\"Subotiz\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - Subotiz\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Subotiz\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.subotiz.com/en/api/authentication-1\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://shoplazza-92a3a725.mintlify.site/_mintlify/api/og/v2?division=Subotiz+API\u0026amp;title=Authentication\u0026amp;theme=d6027fd67d5f3b506383192f\u0026amp;signature=bac2a61f0f7a67d32f2eebc8f63a7e23d592cc0895f0cb58ffc9c18b3e92d5be\">\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=\"Authentication - Subotiz\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://shoplazza-92a3a725.mintlify.site/_mintlify/api/og/v2?division=Subotiz+API\u0026amp;title=Authentication\u0026amp;theme=d6027fd67d5f3b506383192f\u0026amp;signature=bac2a61f0f7a67d32f2eebc8f63a7e23d592cc0895f0cb58ffc9c18b3e92d5be\">\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/shoplazza-92a3a725/MWi9edpZ7nNVtIed/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Subotiz\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7700ea\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.subotiz.com/en/api/authentication-1\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api/authentication-1.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.subotiz.com/en/api/authentication-1\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.subotiz.com/zh/api/authentication-1\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.subotiz.com/en/api/authentication-1\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.subotiz.com/#organization\",\"name\":\"Subotiz\",\"url\":\"https://docs.subotiz.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/shoplazza-92a3a725/qE6OW7uXRx_JwZAh/images/Logo.svg?fit=max\u0026auto=format\u0026n=qE6OW7uXRx_JwZAh\u0026q=85\u0026s=f4ba7dc0a1b50b7b7a4aa5042ddfd95f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.subotiz.com#website\",\"name\":\"Subotiz\",\"url\":\"https://docs.subotiz.com\",\"publisher\":{\"@id\":\"https://docs.subotiz.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.subotiz.com/en/api/authentication-1#webpage\",\"url\":\"https://docs.subotiz.com/en/api/authentication-1\",\"name\":\"Authentication\",\"dateModified\":\"2026-11-12T05:49:28.613Z\",\"isPartOf\":{\"@id\":\"https://docs.subotiz.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.subotiz.com/en/api/authentication-1#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.subotiz.com/en/api/authentication-1#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Subotiz API\",\"item\":\"https://docs.subotiz.com/en/api/introduction-1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://docs.subotiz.com/en/api/authentication-1\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.subotiz.com/en/api/authentication-1#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"url\":\"https://docs.subotiz.com/en/api/authentication-1\",\"mainEntityOfPage\":{\"@id\":\"https://docs.subotiz.com/en/api/authentication-1#webpage\"},\"dateModified\":\"2026-11-12T05:49:28.613Z\",\"publisher\":{\"@id\":\"https://docs.subotiz.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.subotiz.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Subotiz\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Subotiz\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api/authentication-1.md","siteName":"Subotiz","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en/quick-start/overview"}]},{"tab":"API Reference","groups":[{"group":"Subotiz API","pages":[{"title":"Introduction","icon":"mouse-pointer-click","description":null,"href":"/en/api/introduction-1"},{"title":"Authentication","icon":"key-round","href":"/en/api/authentication-1"},{"title":"Errors","icon":"git-merge-conflict","description":null,"href":"/en/api/errors"},{"title":"Metadata","icon":"code-xml","href":"/en/api/metadata"},{"group":"Product","icon":"box","pages":[{"title":"Object","href":"/en/api/product-object"},{"title":"List Product Categories","openapi":"openapi/v1-en.yaml GET /api/v1/product-categories","href":"/en/api/v1-product-list-product-categories"},{"title":"Change Product Status","openapi":"openapi/v1-en.yaml POST /api/v1/products/{product_version_id}/status","href":"/en/api/v1-product-change-product-status"},{"title":"List Product Version","openapi":"openapi/v1-en.yaml GET /api/v1/products/version","href":"/en/api/v1-product-list-product-version"},{"title":"Get Product Version","openapi":"openapi/v1-en.yaml GET /api/v1/products/version/{product_version_id}","href":"/en/api/v1-product-get-product-version"},{"title":"Create Product","openapi":"openapi/v1-en.yaml POST /api/v1/products","href":"/en/api/v1-product-create-product"},{"title":"Get Product","openapi":"openapi/v1-en.yaml GET /api/v1/products/{product_id}","href":"/en/api/v1-product-get-product"},{"title":"List Produc","openapi":"openapi/v1-en.yaml GET /api/v1/products","href":"/en/api/v1-product-list-product"},{"title":"Update Product","openapi":"openapi/v1-en.yaml POST /api/v1/products/{product_id}","href":"/en/api/v1-product-update-product"}]},{"group":"Price","icon":"receipt","pages":[{"title":"Object","href":"/en/api/price-object"},{"title":"Get Price","openapi":"openapi/v1-en.yaml GET /api/v1/prices/{price_id}","href":"/en/api/v1-price-get-price"},{"title":"List Pricing","openapi":"openapi/v1-en.yaml GET /api/v1/prices","href":"/en/api/v1-price-list-price"},{"title":"Create Pricing","openapi":"openapi/v1-en.yaml POST /api/v1/prices","href":"/en/api/v1-price-create-price"},{"title":"Get Price Version","openapi":"openapi/v1-en.yaml GET /api/v1/prices/version/{price_version_id}","href":"/en/api/v1-price-get-price-version"},{"title":"List Pricing Version","openapi":"openapi/v1-en.yaml GET /api/v1/prices/version","href":"/en/api/v1-price-list-price-version"},{"title":"Change Pricing Status","openapi":"openapi/v1-en.yaml POST /api/v1/prices/{price_version_id}/status","href":"/en/api/v1-price-change-price-status"},{"title":"Update Price","openapi":"openapi/v1-en.yaml POST /api/v1/prices/{price_id}","href":"/en/api/v1-price-update-price"}]},{"group":"Discount","icon":"ticket-percent","pages":[{"title":"Object","href":"/en/api/discount-object"},{"title":"Get Discount","openapi":"openapi/v1-en.yaml GET /api/v1/discount/{id}","href":"/en/api/v1-discount-get-discount"},{"title":"List Discounts","openapi":"openapi/v1-en.yaml GET /api/v1/discount","href":"/en/api/v1-discount-list-discount"},{"title":"End Discount","openapi":"openapi/v1-en.yaml POST /api/v1/discount/{id}/end","href":"/en/api/v1-discount-end-discount"}]},{"group":"Checkout Session","icon":"/images/icon-checkout-v2.svg","pages":[{"title":"Object","href":"/en/api/checkout-session-object"},{"title":"Create Checkout Session","openapi":"openapi/v1-en.yaml POST /api/v1/session","href":"/en/api/v1-checkout-session-create-checkout-session"},{"title":"List Checkout Session","openapi":"openapi/v1-en.yaml GET /api/v1/session","href":"/en/api/v1-checkout-session-list-checkout-session"},{"title":"Get Checkout Session","openapi":"openapi/v1-en.yaml GET /api/v1/session/{session_id}","href":"/en/api/v1-checkout-session-get-checkout-session"},{"title":"Expire Checkout Session","openapi":"openapi/v1-en.yaml POST /api/v1/session/{session_id}/expire","href":"/en/api/v1-checkout-session-expire-checkout-session"}]},{"group":"Trade","icon":"handshake","pages":[{"title":"Object","href":"/en/api/trade-object"},{"title":"List Trades","openapi":"openapi/v1-en.yaml GET /api/v1/trades","href":"/en/api/v1-trade-list-trade"},{"title":"Create Trade","openapi":"openapi/v1-en.yaml POST /api/v1/trades","href":"/en/api/v1-trade-create-trade"},{"title":"Get Trade","openapi":"openapi/v1-en.yaml GET /api/v1/trades/{trade_id}","href":"/en/api/v1-trade-get-trade"}]},{"group":"Payment","icon":"/images/icon-payment.svg","pages":[{"title":"Object","href":"/en/api/payment-object"},{"title":"List Payments by Trade ID","openapi":"openapi/v1-en.yaml GET /api/v1/payments","href":"/en/api/v1-payment-list-payments-by-trade-id"},{"title":"List Payments by Time Range","openapi":"openapi/v1-en.yaml GET /api/v1/payments/list","href":"/en/api/v1-payment-query-payments"}]},{"group":"Invoice","icon":"receipt-text","pages":[{"title":"Object","href":"/en/api/invoice-object"},{"title":"List Invoices","openapi":"openapi/v1-en.yaml GET /api/v1/invoices","href":"/en/api/v1-invoice-list-invoice"},{"title":"Get Invoice","openapi":"openapi/v1-en.yaml GET /api/v1/invoices/{invoice_id}","href":"/en/api/v1-invoice-get-invoice"}]},{"group":"Subscription","icon":"rss","pages":[{"title":"Object","href":"/en/api/subscription-object"},{"title":"Get Subscription","openapi":"openapi/v1-en.yaml GET /api/v1/subscription/{subscription_id}","href":"/en/api/v1-subscription-get-subscription"},{"title":"Update Subscription","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}","href":"/en/api/v1-subscription-update-subscription"},{"title":"List Subscriptions","openapi":"openapi/v1-en.yaml GET /api/v1/subscription","href":"/en/api/v1-subscription-list-subscription"},{"title":"Record Subscription Usage","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/record_usage","href":"/en/api/v1-subscription-record-subscription-usage"},{"title":"Renewal Subscription","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/renewal","href":"/en/api/v1-subscription-renewal-subscription"},{"title":"Get Subscription Usage","openapi":"openapi/v1-en.yaml GET /api/v1/subscription/{subscription_id}/usage","href":"/en/api/v1-subscription-get-subscription-usage"},{"title":"Cancel Subscription","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/cancel","href":"/en/api/v1-subscription-cancel-subscription"},{"title":"Pause Subscription","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/pause","href":"/en/api/v1-subscription-pause-subscription"},{"title":"Resume Subscription","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/resume","href":"/en/api/v1-subscription-resume-subscription"},{"title":"Update subscription fixed term","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/update/fixed_term","href":"/en/api/v1-subscription-update-subscription-fixed-term"},{"title":"Revoke Cancel Subscription","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/revoke-cancel","href":"/en/api/v1-subscription-revoke-cancel-subscription"},{"title":"Revoke Pending Price Change","openapi":"openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/revoke-price-change","href":"/en/api/v1-subscription-revoke-price-change"},{"title":"Preview Subscription Quantity","openapi":"openapi/v1-en.yaml GET /api/v1/subscription/{subscription_id}/quantity-preview","href":"/en/api/v1-subscription-preview-subscription-quantity"}]},{"group":"Customer","icon":"users-round","pages":[{"title":"Object","href":"/en/api/customer-object"},{"title":"Create Customer","openapi":"openapi/v1-en.yaml POST /api/v1/front/customer/create","href":"/en/api/v1-customer-create-customer"},{"title":"Update Customer","openapi":"openapi/v1-en.yaml POST /api/v1/front/customer/update","href":"/en/api/v1-customer-update-customer"},{"title":"Get Customer","openapi":"openapi/v1-en.yaml GET /api/v1/front/customer/{customer_id}","href":"/en/api/v1-customer-get-customer"},{"title":"List Customer","openapi":"openapi/v1-en.yaml GET /api/v1/front/customer","href":"/en/api/v1-customer-list-customer"},{"title":"Delete Customer","openapi":"openapi/v1-en.yaml POST /api/v1/front/customer/delete","href":"/en/api/v1-customer-delete-customer"}]},{"group":"Customer Portal","icon":"circle-user-round","pages":[{"title":"Object","href":"/en/api/customer-portal-object"},{"title":"Customer Portal Api Auth","openapi":"openapi/v1-en.yaml POST /api/v1/customer_portal/auth","href":"/en/api/v1-customer-portal-api-auth"}]},{"group":"Refund","icon":"reply-all","pages":[{"title":"Object","href":"/en/api/refund-object"},{"title":"Create Refund","openapi":"openapi/v1-en.yaml POST /api/v1/trades/{trade_id}/refunds","href":"/en/api/v1-refund-create-refund"},{"title":"Get Refund","openapi":"openapi/v1-en.yaml GET /api/v1/trades/{trade_id}/refunds/{refund_id}","href":"/en/api/v1-refund-get-refund"},{"title":"List Refunds","openapi":"openapi/v1-en.yaml GET /api/v1/trades/{trade_id}/refunds","href":"/en/api/v1-refund-list-refund"}]},{"group":"Dispute","icon":"file-exclamation-point","pages":[{"title":"Object","href":"/en/api/dispute-object"},{"title":"List disputes","openapi":"openapi/v1-en.yaml GET /api/v1/disputes","href":"/en/api/v1-dispute-list-dispute"},{"title":"Get dispute details","openapi":"openapi/v1-en.yaml GET /api/v1/disputes/{dispute_id}","href":"/en/api/v1-dispute-get-dispute"}]},{"group":"Webhook","icon":"webhook","pages":[{"title":"Object","href":"/en/api/webhook-object"},{"title":"List Webhook Events","openapi":"openapi/v1-en.yaml GET /api/v1/webhook-event","href":"/en/api/v1-webhook-list-webhook-event"},{"title":"List Webhook Endpoints","openapi":"openapi/v1-en.yaml GET /api/v2/webhook/endpoints","href":"/en/api/v1-webhook-list-endpoint"},{"title":"List Webhook Events V2","openapi":"openapi/v1-en.yaml GET /api/v2/webhook/events","href":"/en/api/v2-webhook-list-event"}]}]}]},{"tab":"FAQ","pages":[{"title":"FAQ","href":"/en/faq/workspace-basics"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api/authentication-1"}]}]},"basePath":"","title":"Authentication - Subotiz","deploymentId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","buildId":"dpl_XLevHnGPjzxq9mbREha5Faad63Sp","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-Dt3ifMRv.js","DynamicMarkdown-Dgh_e4rL.js","zoom-image-lightbox-DJOZ-2Ph.js","lightbox-handle-r17bVUz3.js"]}