AdvanceConfig, 0-false,1-true, will enable all advance config if set true
billingType
integer
Yes
The billing type of the discount code, 1-one-time, 2-recurring, define the situation the code can be used, the code of one-time billing_type can used for all situation that effect only once, the code of recurring billing_tye can only used for subscription purchase
code
string
Yes
The discount’s unique code, customize by merchant
currency
string
No
The discount currency of discount code, available when discount_type is fixed_amount
cycleLimit
integer
No
The count limitation of subscription cycle, each subscription is valid separately , 0-no limit
discountAmount
integer
No
The discount amount of the discount code, available when discount_type is fixed_amount
discountPercentage
integer
No
The discount percentage of discount code, 100=1%, available when discount_type is percentage
discountType
integer
Yes
The discount type of the discount code, 1-percentage, 2-fixed_amount, the discountType of code, the discountPercentage will be effect when discountType is percentage, the discountAmount and currency will be effect when discountTYpe is fixed_amount
endTime
integer
Yes
The end time of discount code can effect, utc time
metadata
object
No
Metadata,Map
name
string
No
The discount’s name
planApplyGroup
string
No
planApplyType
integer
No
plan apply type, 0-apply for all, 1-apply for plans specified, 2-exclude for plans specified, 3-Apply to Plans by Groups(Billing Period Included), 4-Apply to Plans except by Groups(Billing Period Included)
planIds
array
No
Ids of plan which discount code can effect, default effect all plans if not set
quantity
integer
No
Quantity of code, default 0, set 0 to disable quantity management
startTime
integer
Yes
The start time of discount code can effect, utc time
upgradeLongPlanOnly
boolean
No
AdvanceConfig, true or false, will forbid for all except upgrade to longer plan if set true
upgradeOnly
boolean
No
AdvanceConfig, true or false, will forbid for all except same interval upgrade action if set true
userLimit
integer
No
AdvanceConfig, The limit of every customer can apply, the recurring apply not involved, 0-unlimited
userScope
integer
No
AdvanceConfig, Apply user scope,0-for all, 1-for only new user, 2-for only renewals, renewals is upgrade&downgrade&renew
The billing type of the discount code, 1-one-time, 2-recurring, define the situation the code can be used, the code of one-time billing_type can used for all situation that effect only once, the code of recurring billing_tye can only used for subscription purchase
The discount type of the discount code, 1-percentage, 2-fixed_amount, the discountType of code, the discountPercentage will be effect when discountType is percentage, the discountAmount and currency will be effect when discountTYpe is fixed_amount
plan apply type, 0-apply for all, 1-apply for plans specified, 2-exclude for plans specified, 3-Apply to Plans by Groups(Billing Period Included), 4-Apply to Plans except by Groups(Billing Period Included)
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"UniBee Documentation","colors":{"primary":"#EBC414","light":"#EBC414","dark":"#EBC414"},"favicon":"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/favicon.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=112d45cfc3e0323dbde8cca2a58f0729","logo":{"light":"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/logo/light.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=e36e2bf3ee7aa0192915208acf4cb2f6","dark":"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/logo/dark.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=d26411d58a3cf9dd6b459a562d5c9bb4"},"background":{"image":"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/images/bg-element.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=226c835d8aae1e695dd0314ede835052","decoration":null},"navbar":{"links":[{"label":"About","href":"https://unibee.dev"},{"label":"Contact","href":"https://unibee.dev/contact"}],"primary":null},"footer":{"socials":{"website":"https://unibee.dev/","github":"https://github.com/unibee-billing","linkedin":"https://www.linkedin.com/company/unibee-billing/"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/unibee-billing","icon":"github"},{"anchor":"Community","href":"https://github.com/unibee-billing","icon":"discord"},{"anchor":"Official website","href":"https://unibee.dev/","icon":"earth-americas"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aaaabmero","hasAudioNarration":false,"actualSubdomain":"aaaabmero","customDomains":["docs.unibee.dev"],"gitSource":{"type":"github","owner":"unibee-billing","repo":"unibee-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a8dbc7957e7f1206a6e72cd","collectionId":"b4af5490-8de5-4f39-9f6b-e0d81f734d93","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a8dbc7957e7f1206a6e72cd"},"entitlements":{},"buildId":"6a8dbc7957e7f1206a6e72cd","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"Documentation","count":406},{"language":"default","tag":"Reference","count":317},{"language":"default","tag":"Guides","count":56},{"language":"default","tag":"Invoice","count":25},{"language":"default","tag":"Payment","count":21},{"language":"default","tag":"Core Concepts","count":21},{"language":"default","tag":"Member Authentication","count":19},{"language":"default","tag":"Subscription","count":19},{"language":"default","tag":"Admin Member","count":18},{"language":"default","tag":"User","count":17}]},"assistantConfig":{},"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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"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":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/discount/new-discount-code","slug":"/api-reference/discount/new-discount-code","pageMetadata":{"openapi":"post /merchant/discount/new","title":"New Discount Code","description":"Create a new discount code, code can used in onetime or subscription purchase to make discount","href":"/api-reference/discount/new-discount-code"},"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: \"Create a new discount code, code can used in onetime or subscription purchase to make discount\"\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`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`endpoint-overview`,children:`Endpoint Overview`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`POST`}),` `,_jsx(_components.code,{children:`https://api.unibee.dev/merchant/discount/new`})]}),`\n`,_jsx(_components.p,{children:`Create a new discount code, code can used in onetime or subscription purchase to make discount`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsx(_components.p,{children:`All UniBee Merchant API requests require authentication via API key.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Header`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Authorization`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Bearer `,_jsx(_components.code,{children:`\u003cyour_api_key>`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Content-Type`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`application/json`}),` (for request body)`]})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`parameters`,children:`Parameters`}),`\n`,_jsx(_components.p,{children:`Parameters for this endpoint are listed below. The schema is also shown in the Try it panel.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Name`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`advance`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`AdvanceConfig, 0-false,1-true, will enable all advance config if set true`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`billingType`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The billing type of the discount code, 1-one-time, 2-recurring, define the situation the code can be used, the code of one-time billing_type can used for all situation that effect only once, the code of recurring billing_tye can only used for subscription purchase`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The discount’s unique code, customize by merchant`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`currency`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The discount currency of discount code, available when discount_type is fixed_amount`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cycleLimit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The count limitation of subscription cycle, each subscription is valid separately , 0-no limit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`discountAmount`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The discount amount of the discount code, available when discount_type is fixed_amount`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`discountPercentage`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The discount percentage of discount code, 100=1%, available when discount_type is percentage`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`discountType`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The discount type of the discount code, 1-percentage, 2-fixed_amount, the discountType of code, the discountPercentage will be effect when discountType is percentage, the discountAmount and currency will be effect when discountTYpe is fixed_amount`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`endTime`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The end time of discount code can effect, utc time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`metadata`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Metadata,Map`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`The discount’s name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`planApplyGroup`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`planApplyType`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`plan apply type, 0-apply for all, 1-apply for plans specified, 2-exclude for plans specified, 3-Apply to Plans by Groups(Billing Period Included), 4-Apply to Plans except by Groups(Billing Period Included)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`planIds`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Ids of plan which discount code can effect, default effect all plans if not set`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quantity`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Quantity of code, default 0, set 0 to disable quantity management`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startTime`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The start time of discount code can effect, utc time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`upgradeLongPlanOnly`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`AdvanceConfig, true or false, will forbid for all except upgrade to longer plan if set true`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`upgradeOnly`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`AdvanceConfig, true or false, will forbid for all except same interval upgrade action if set true`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`userLimit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`AdvanceConfig, The limit of every customer can apply, the recurring apply not involved, 0-unlimited`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`userScope`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`AdvanceConfig, Apply user scope,0-for all, 1-for only new user, 2-for only renewals, renewals is upgrade\u0026downgrade\u0026renew`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`request-examples`,children:`Request examples`}),`\n`,_jsx(Heading,{level:`3`,id:`curl`,children:`cURL`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,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:`25`,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://api.unibee.dev/merchant/discount/new\"`}),_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\"`}),_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:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"advance\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"billingType\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"code\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cycleLimit\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discountAmount\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discountPercentage\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discountType\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endTime\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"planApplyGroup\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"planApplyType\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"planIds\": [],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startTime\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"upgradeLongPlanOnly\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"upgradeOnly\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userLimit\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userScope\": 0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`sandbox`,children:`Sandbox`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,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:`25`,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://api-sandbox.unibee.top/merchant/discount/new\"`}),_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_SANDBOX_API_KEY\"`}),_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:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"advance\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"billingType\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"code\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"currency\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"cycleLimit\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discountAmount\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discountPercentage\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"discountType\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"endTime\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {},`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"planApplyGroup\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"planApplyType\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"planIds\": [],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"quantity\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"startTime\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"upgradeLongPlanOnly\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"upgradeOnly\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userLimit\": 0,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userScope\": 0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Success responses return a JSON envelope with `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`data`}),`, `,_jsx(_components.code,{children:`message`}),`, `,_jsx(_components.code,{children:`redirect`}),`, and `,_jsx(_components.code,{children:`requestId`}),`. `,_jsx(_components.code,{children:`code`}),` `,_jsx(_components.code,{children:`0`}),` indicates success.`]}),`\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,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Response code. `,_jsx(_components.code,{children:`0`}),` = success`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Response payload`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.discount`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Human-readable message`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`requestId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Request ID for support`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`error-handling`,children:`Error handling`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsxs(_components.td,{children:[`Bad request — invalid or missing parameters. Check `,_jsx(_components.code,{children:`message`}),` in the body.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Unauthorized — missing or invalid API key.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Not found — invalid path or resource.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Server error — retry with backoff.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`code`}),` in the response body is non-zero, check `,_jsx(_components.code,{children:`message`}),` for details. Use `,_jsx(_components.code,{children:`requestId`}),` when contacting support.`]})]})}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":{"openapi":"post /merchant/discount/new","title":"New Discount Code","description":"Create a new discount code, code can used in onetime or subscription purchase to make discount","href":"/api-reference/discount/new-discount-code"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Endpoint Overview","slug":"endpoint-overview","depth":2,"children":[]},{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Parameters","slug":"parameters","depth":2,"children":[{"title":"Request body","slug":"request-body","depth":3,"children":[]}]},{"title":"Request examples","slug":"request-examples","depth":2,"children":[{"title":"cURL","slug":"curl","depth":3,"children":[]},{"title":"Sandbox","slug":"sandbox","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Error handling","slug":"error-handling","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Create a new discount code, code can used in onetime or subscription purchase to make discount","requestBody":"79dbed54-64ca-4ef3-bd95-6c5e92f06364","responses":{"200":"d77a0cf6-8d88-4020-94f9-743efc6b5481"},"summary":"New Discount Code","tags":["Discount"],"method":"post","type":"path","servers":["75789b68-5973-4ba3-92da-0924615d428f","5637436d-a7fe-4176-b59d-c0d00970ec4f"],"security":["9d6da29d-526a-407f-a8a5-71b401f04868"],"path":"/merchant/discount/new","baseUrlOptions":["https://api.unibee.dev","https://api-sandbox.unibee.top"],"title":"New Discount Code","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"description":"Create a new discount code, code can used in onetime or subscription purchase to make discount","properties":{"billingType":{"description":"The billing type of the discount code, 1-one-time, 2-recurring, define the situation the code can be used, the code of one-time billing_type can used for all situation that effect only once, the code of recurring billing_tye can only used for subscription purchase","format":"int","properties":{},"type":"integer","isRequired":true,"uniqueKey":"billingType","typeLabel":"integer\u003cint>"},"code":{"description":"The discount's unique code, customize by merchant","format":"string","properties":{},"type":"string","isRequired":true,"uniqueKey":"code","typeLabel":"string\u003cstring>"},"discountType":{"description":"The discount type of the discount code, 1-percentage, 2-fixed_amount, the discountType of code, the discountPercentage will be effect when discountType is percentage, the discountAmount and currency will be effect when discountTYpe is fixed_amount","format":"int","properties":{},"type":"integer","isRequired":true,"uniqueKey":"discountType","typeLabel":"integer\u003cint>"},"endTime":{"description":"The end time of discount code can effect, utc time","format":"*int64","properties":{},"type":"integer","isRequired":true,"uniqueKey":"endTime","typeLabel":"integer\u003c*int64>"},"startTime":{"description":"The start time of discount code can effect, utc time","format":"*int64","properties":{},"type":"integer","isRequired":true,"uniqueKey":"startTime","typeLabel":"integer\u003c*int64>"},"advance":{"description":"AdvanceConfig, 0-false,1-true, will enable all advance config if set true","format":"*bool","properties":{},"type":"boolean","uniqueKey":"advance","typeLabel":"boolean\u003c*bool>"},"currency":{"description":"The discount currency of discount code, available when discount_type is fixed_amount","format":"string","properties":{},"type":"string","uniqueKey":"currency","typeLabel":"string\u003cstring>"},"cycleLimit":{"description":"The count limitation of subscription cycle, each subscription is valid separately , 0-no limit","format":"int","properties":{},"type":"integer","uniqueKey":"cycleLimit","typeLabel":"integer\u003cint>"},"discountAmount":{"description":"The discount amount of the discount code, available when discount_type is fixed_amount","format":"int64","properties":{},"type":"integer","uniqueKey":"discountAmount","typeLabel":"integer\u003cint64>"},"discountPercentage":{"description":"The discount percentage of discount code, 100=1%, available when discount_type is percentage","format":"int64","properties":{},"type":"integer","uniqueKey":"discountPercentage","typeLabel":"integer\u003cint64>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"metadata.additionalProperties","typeLabel":"object"},"description":"Metadata,Map","format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"metadata","typeLabel":"object"},"name":{"description":"The discount's name","format":"*string","properties":{},"type":"string","uniqueKey":"name","typeLabel":"string\u003c*string>"},"planApplyGroup":{"properties":{"currency":{"format":"[]string","items":{"format":"string","properties":{},"type":"string","uniqueKey":"planApplyGroup.currency.items.[INDEX]","typeLabel":"string\u003cstring>"},"properties":{},"type":"array","uniqueKey":"planApplyGroup.currency","typeLabel":"string\u003cstring>[]"},"groupPlanIntervalSelector":{"format":"[]*bean.GroupPlanIntervalSelector","items":{"properties":{"intervalCount":{"description":"Number Of IntervalUnit,em: day|month|year|week","format":"int","properties":{},"type":"integer","uniqueKey":"planApplyGroup.groupPlanIntervalSelector.items.[INDEX].intervalCount","typeLabel":"integer\u003cint>"},"intervalUnit":{"description":"Plan Interval Unit,em: day|month|year|week","format":"string","properties":{},"type":"string","uniqueKey":"planApplyGroup.groupPlanIntervalSelector.items.[INDEX].intervalUnit","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"planApplyGroup.groupPlanIntervalSelector.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"planApplyGroup.groupPlanIntervalSelector","typeLabel":"object[]"},"type":{"description":"1-main plan,2-addon plan,3-onetime","format":"[]int","items":{"format":"int","properties":{},"type":"integer","uniqueKey":"planApplyGroup.type.items.[INDEX]","typeLabel":"integer\u003cint>"},"properties":{},"type":"array","uniqueKey":"planApplyGroup.type","typeLabel":"integer\u003cint>[]"}},"type":"object","uniqueKey":"planApplyGroup","typeLabel":"object"},"planApplyType":{"description":"plan apply type, 0-apply for all, 1-apply for plans specified, 2-exclude for plans specified, 3-Apply to Plans by Groups(Billing Period Included), 4-Apply to Plans except by Groups(Billing Period Included)","format":"*int","properties":{},"type":"integer","uniqueKey":"planApplyType","typeLabel":"integer\u003c*int>"},"planIds":{"description":"Ids of plan which discount code can effect, default effect all plans if not set","format":"[]int64","items":{"format":"int64","properties":{},"type":"integer","uniqueKey":"planIds.items.[INDEX]","typeLabel":"integer\u003cint64>"},"properties":{},"type":"array","uniqueKey":"planIds","typeLabel":"integer\u003cint64>[]"},"quantity":{"description":"Quantity of code, default 0, set 0 to disable quantity management","format":"*int64","properties":{},"type":"integer","uniqueKey":"quantity","typeLabel":"integer\u003c*int64>"},"upgradeLongPlanOnly":{"description":"AdvanceConfig, true or false, will forbid for all except upgrade to longer plan if set true","format":"*bool","properties":{},"type":"boolean","uniqueKey":"upgradeLongPlanOnly","typeLabel":"boolean\u003c*bool>"},"upgradeOnly":{"description":"AdvanceConfig, true or false, will forbid for all except same interval upgrade action if set true","format":"*bool","properties":{},"type":"boolean","uniqueKey":"upgradeOnly","typeLabel":"boolean\u003c*bool>"},"userIds":{"description":"Ids of user which discount code can effect, default effect all users if not set","format":"[]int64","items":{"format":"int64","properties":{},"type":"integer","uniqueKey":"userIds.items.[INDEX]","typeLabel":"integer\u003cint64>"},"properties":{},"type":"array","uniqueKey":"userIds","typeLabel":"integer\u003cint64>[]"},"userLimit":{"description":"AdvanceConfig, The limit of every customer can apply, the recurring apply not involved, 0-unlimited","format":"*int","properties":{},"type":"integer","uniqueKey":"userLimit","typeLabel":"integer\u003c*int>"},"userScope":{"description":"AdvanceConfig, Apply user scope,0-for all, 1-for only new user, 2-for only renewals, renewals is upgrade\u0026downgrade\u0026renew","format":"*int","properties":{},"type":"integer","uniqueKey":"userScope","typeLabel":"integer\u003c*int>"}},"required":["code","billingType","discountType","startTime","endTime"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"billingType":123,"code":"\u003cstring>","discountType":123,"endTime":123,"startTime":123,"advance":true,"currency":"\u003cstring>","cycleLimit":123,"discountAmount":123,"discountPercentage":123,"metadata":{},"name":"\u003cstring>","planApplyGroup":{"currency":["\u003cstring>"],"groupPlanIntervalSelector":[{"intervalCount":123,"intervalUnit":"\u003cstring>"}],"type":[123]},"planApplyType":123,"planIds":[123],"quantity":123,"upgradeLongPlanOnly":true,"upgradeOnly":true,"userIds":[123],"userLimit":123,"userScope":123}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"d77a0cf6-8d88-4020-94f9-743efc6b5481":{"content":{"application/json":{"schema":{"properties":{"code":{"format":"int","properties":{},"type":"integer","uniqueKey":"code","typeLabel":"integer\u003cint>"},"data":{"properties":{"discount":{"properties":{"advance":{"description":"AdvanceConfig, 0-false,1-true, will enable all advance config if set true","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.discount.advance","typeLabel":"boolean\u003cbool>"},"billingType":{"description":"billing_type, 1-one-time, 2-recurring","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.billingType","typeLabel":"integer\u003cint>"},"code":{"description":"code","format":"string","properties":{},"type":"string","uniqueKey":"data.discount.code","typeLabel":"string\u003cstring>"},"createTime":{"description":"create utc time","format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.createTime","typeLabel":"integer\u003cint64>"},"currency":{"description":"currency of discount, available when discount_type is fixed_amount","format":"string","properties":{},"type":"string","uniqueKey":"data.discount.currency","typeLabel":"string\u003cstring>"},"cycleLimit":{"description":"the count limitation of subscription cycle , 0-no limit","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.cycleLimit","typeLabel":"integer\u003cint>"},"discountAmount":{"description":"amount of discount, available when discount_type is fixed_amount","format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.discountAmount","typeLabel":"integer\u003cint64>"},"discountPercentage":{"description":"percentage of discount, 100=1%, available when discount_type is percentage","format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.discountPercentage","typeLabel":"integer\u003cint64>"},"discountType":{"description":"discount_type, 1-percentage, 2-fixed_amount","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.discountType","typeLabel":"integer\u003cint>"},"endTime":{"description":"end of discount available utc time, 0-invalid","format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.endTime","typeLabel":"integer\u003cint64>"},"id":{"description":"Id","format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.id","typeLabel":"integer\u003cint64>"},"isDeleted":{"description":"0-UnDeleted,> 0, Deleted, the deleted utc time","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.isDeleted","typeLabel":"integer\u003cint>"},"merchantId":{"description":"merchantId","format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.merchantId","typeLabel":"integer\u003cint64>"},"metadata":{"additionalProperties":{"properties":{},"type":"object","uniqueKey":"data.discount.metadata.additionalProperties","typeLabel":"object"},"format":"map[string]interface {}","properties":{},"type":"object","uniqueKey":"data.discount.metadata","typeLabel":"object"},"name":{"description":"name","format":"string","properties":{},"type":"string","uniqueKey":"data.discount.name","typeLabel":"string\u003cstring>"},"planApplyGroup":{"properties":{"currency":{"format":"[]string","items":{"format":"string","properties":{},"type":"string","uniqueKey":"data.discount.planApplyGroup.currency.items.[INDEX]","typeLabel":"string\u003cstring>"},"properties":{},"type":"array","uniqueKey":"data.discount.planApplyGroup.currency","typeLabel":"string\u003cstring>[]"},"groupPlanIntervalSelector":{"format":"[]*bean.GroupPlanIntervalSelector","items":{"properties":{"intervalCount":{"description":"Number Of IntervalUnit,em: day|month|year|week","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.planApplyGroup.groupPlanIntervalSelector.items.[INDEX].intervalCount","typeLabel":"integer\u003cint>"},"intervalUnit":{"description":"Plan Interval Unit,em: day|month|year|week","format":"string","properties":{},"type":"string","uniqueKey":"data.discount.planApplyGroup.groupPlanIntervalSelector.items.[INDEX].intervalUnit","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"data.discount.planApplyGroup.groupPlanIntervalSelector.items.[INDEX]","typeLabel":"object"},"properties":{},"type":"array","uniqueKey":"data.discount.planApplyGroup.groupPlanIntervalSelector","typeLabel":"object[]"},"type":{"description":"1-main plan,2-addon plan,3-onetime","format":"[]int","items":{"format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.planApplyGroup.type.items.[INDEX]","typeLabel":"integer\u003cint>"},"properties":{},"type":"array","uniqueKey":"data.discount.planApplyGroup.type","typeLabel":"integer\u003cint>[]"}},"type":"object","uniqueKey":"data.discount.planApplyGroup","typeLabel":"object"},"planApplyType":{"description":"plan apply type, 0-apply for all, 1-apply for plans specified, 2-exclude for plans specified, 3-Apply to Plans by Groups(Billing Period Included), 4-Apply to Plans except by Groups(Billing Period Included)","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.planApplyType","typeLabel":"integer\u003cint>"},"planIds":{"description":"Ids of plan which discount code can effect, default effect all plans if not set","format":"[]int64","items":{"format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.planIds.items.[INDEX]","typeLabel":"integer\u003cint64>"},"properties":{},"type":"array","uniqueKey":"data.discount.planIds","typeLabel":"integer\u003cint64>[]"},"quantity":{"description":"quantity of code, 0-no limit","format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.quantity","typeLabel":"integer\u003cint64>"},"startTime":{"description":"start of discount available utc time","format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.startTime","typeLabel":"integer\u003cint64>"},"status":{"description":"status, 1-editable, 2-active, 3-deactivate, 4-expire, 10-archive","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.status","typeLabel":"integer\u003cint>"},"upgradeLongerOnly":{"description":"AdvanceConfig, 0-false,1-true, will forbid for all except upgrade to longer plan if set true","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.discount.upgradeLongerOnly","typeLabel":"boolean\u003cbool>"},"upgradeOnly":{"description":"AdvanceConfig, 0-false,1-true, will forbid for all except same interval upgrade action if set true","format":"bool","properties":{},"type":"boolean","uniqueKey":"data.discount.upgradeOnly","typeLabel":"boolean\u003cbool>"},"userIds":{"description":"Ids of user which discount code can effect, default effect all users if not set","format":"[]int64","items":{"format":"int64","properties":{},"type":"integer","uniqueKey":"data.discount.userIds.items.[INDEX]","typeLabel":"integer\u003cint64>"},"properties":{},"type":"array","uniqueKey":"data.discount.userIds","typeLabel":"integer\u003cint64>[]"},"userLimit":{"description":"AdvanceConfig, The limit of every customer can apply, the recurring apply not involved, 0-unlimited","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.userLimit","typeLabel":"integer\u003cint>"},"userScope":{"description":"AdvanceConfig, Apply user scope,0-for all, 1-for only new user, 2-for only renewals, renewals is upgrade\u0026downgrade\u0026renew","format":"int","properties":{},"type":"integer","uniqueKey":"data.discount.userScope","typeLabel":"integer\u003cint>"}},"type":"object","uniqueKey":"data.discount","typeLabel":"object"}},"type":"object","uniqueKey":"data","typeLabel":"object"},"merchantId":{"format":"int64","properties":{},"type":"integer","uniqueKey":"merchantId","typeLabel":"integer\u003cint64>"},"message":{"format":"string","properties":{},"type":"string","uniqueKey":"message","typeLabel":"string\u003cstring>"},"redirect":{"format":"string","properties":{},"type":"string","uniqueKey":"redirect","typeLabel":"string\u003cstring>"},"requestId":{"format":"string","properties":{},"type":"string","uniqueKey":"requestId","typeLabel":"string\u003cstring>"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"data":{"discount":{"advance":true,"billingType":123,"code":"\u003cstring>","createTime":123,"currency":"\u003cstring>","cycleLimit":123,"discountAmount":123,"discountPercentage":123,"discountType":123,"endTime":123,"id":123,"isDeleted":123,"merchantId":123,"metadata":{},"name":"\u003cstring>","planApplyGroup":{"currency":["\u003cstring>"],"groupPlanIntervalSelector":[{"intervalCount":123,"intervalUnit":"\u003cstring>"}],"type":[123]},"planApplyType":123,"planIds":[123],"quantity":123,"startTime":123,"status":123,"upgradeLongerOnly":true,"upgradeOnly":true,"userIds":[123],"userLimit":123,"userScope":123}},"merchantId":123,"message":"\u003cstring>","redirect":"\u003cstring>","requestId":"\u003cstring>"}}},"exampleType":"generated"}},"description":"","exampleType":"generated"}},"security":{"9d6da29d-526a-407f-a8a5-71b401f04868":{"Authorization":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[]}}},"servers":{"75789b68-5973-4ba3-92da-0924615d428f":{"url":"https://api.unibee.dev"},"5637436d-a7fe-4176-b59d-c0d00970ec4f":{"url":"https://api-sandbox.unibee.top"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"bearerFormat":"JWT","scheme":"bearer","type":"http","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"Authorization","name":"Authorization"}],"title":"Authorization"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"aaaabmero","siteName":"UniBee Documentation","title":"New Discount Code - UniBee Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-25T10:07:18.456Z","originalFileLocation":"api-reference/discount/new-discount-code.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=\"Create a new discount code, code can used in onetime or subscription purchase to make discount\">\u003cmeta data-mint-head name=\"application-name\" content=\"UniBee Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_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/aaaabmero/AVvA7WC5Y2C-QM12/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"New Discount Code - UniBee Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new discount code, code can used in onetime or subscription purchase to make discount\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"UniBee Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.unibee.dev/api-reference/discount/new-discount-code\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aaaabmero.mintlify.app/_mintlify/api/og/v2?division=Discount\u0026amp;title=New+Discount+Code\u0026amp;description=Create+a+new+discount+code%2C+code+can+used+in+onetime+or+subscription+purchase+to+make+discount\u0026amp;theme=3a23fbc2bb7200e98b3b8c0e\u0026amp;signature=28d7842cd26ad6dff518645845c7722fcf4ecbd332b8bf67ce5f6dcb684075bf\">\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=\"New Discount Code - UniBee Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new discount code, code can used in onetime or subscription purchase to make discount\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aaaabmero.mintlify.app/_mintlify/api/og/v2?division=Discount\u0026amp;title=New+Discount+Code\u0026amp;description=Create+a+new+discount+code%2C+code+can+used+in+onetime+or+subscription+purchase+to+make+discount\u0026amp;theme=3a23fbc2bb7200e98b3b8c0e\u0026amp;signature=28d7842cd26ad6dff518645845c7722fcf4ecbd332b8bf67ce5f6dcb684075bf\">\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/aaaabmero/AVvA7WC5Y2C-QM12/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"UniBee Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EBC414\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.unibee.dev/api-reference/discount/new-discount-code\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/discount/new-discount-code.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.unibee.dev/#organization\",\"name\":\"UniBee Documentation\",\"url\":\"https://docs.unibee.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aaaabmero/PAQKVjj86U1Qa7E1/logo/light.png?fit=max\u0026auto=format\u0026n=PAQKVjj86U1Qa7E1\u0026q=85\u0026s=e36e2bf3ee7aa0192915208acf4cb2f6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.unibee.dev#website\",\"name\":\"UniBee Documentation\",\"url\":\"https://docs.unibee.dev\",\"publisher\":{\"@id\":\"https://docs.unibee.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.unibee.dev/api-reference/discount/new-discount-code#webpage\",\"url\":\"https://docs.unibee.dev/api-reference/discount/new-discount-code\",\"name\":\"New Discount Code\",\"description\":\"Create a new discount code, code can used in onetime or subscription purchase to make discount\",\"dateModified\":\"2026-03-25T10:07:18.456Z\",\"isPartOf\":{\"@id\":\"https://docs.unibee.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.unibee.dev/api-reference/discount/new-discount-code#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.unibee.dev/api-reference/discount/new-discount-code#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.unibee.dev/api-reference/merchant/amount-multi-currencies-exchange\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Discount\",\"item\":\"https://docs.unibee.dev/api-reference/discount/activate-discount-code\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"New Discount Code\",\"item\":\"https://docs.unibee.dev/api-reference/discount/new-discount-code\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.unibee.dev/api-reference/discount/new-discount-code#apireference\",\"headline\":\"New Discount Code\",\"name\":\"New Discount Code\",\"description\":\"Create a new discount code, code can used in onetime or subscription purchase to make discount\",\"url\":\"https://docs.unibee.dev/api-reference/discount/new-discount-code\",\"mainEntityOfPage\":{\"@id\":\"https://docs.unibee.dev/api-reference/discount/new-discount-code#webpage\"},\"dateModified\":\"2026-03-25T10:07:18.456Z\",\"publisher\":{\"@id\":\"https://docs.unibee.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.unibee.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"UniBee Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"UniBee Documentation","nav":{"global":{"anchors":[{"anchor":"GitHub","href":"https://github.com/unibee-billing","icon":"github"},{"anchor":"Community","href":"https://github.com/unibee-billing","icon":"discord"},{"anchor":"Official website","href":"https://unibee.dev/","icon":"earth-americas"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Start Here","pages":[{"title":null,"href":"/documentation/overview/introduction"},{"title":"Integration Workflow Guide","href":"/documentation/business-integration/integration-workflow"},{"title":"Checkout Purchases (Hosted Mode)","href":"/documentation/business-integration/checkout-purchases"},{"title":"Supported Payment Gateways and Payment Types","href":"/documentation/business-integration/supported-payment-gateways"},{"title":"Testing Cards (Sandbox)","href":"/documentation/business-integration/testing-cards"},{"title":"Simulate Subscriptions (Sandbox)","href":"/documentation/business-integration/simulate-subscriptions"}]},{"group":"Core Concepts","pages":[{"group":"Products and Plans","pages":[{"title":null,"href":"/documentation/product-and-plan/what-is-product-and-plan"},{"title":null,"href":"/documentation/product-and-plan/subscription-plan"},{"title":null,"href":"/documentation/product-and-plan/recurring-addon"},{"title":null,"href":"/documentation/product-and-plan/onetime-payment"},{"title":null,"href":"/documentation/product-and-plan/trial-plan"}]},{"group":"Subscriptions","pages":[{"title":"Subscription auto-charge workflow","href":"/documentation/subscription/subscription-auto-charge-workflow"},{"title":"The subscription billing renewal date","href":"/documentation/subscription/billing-cycle-anchor"},{"title":null,"href":"/documentation/subscription/status"},{"title":"Understanding Subscription Incomplete Status","href":"/documentation/subscription/incomplete-status"}]},{"group":"Invoices","pages":[{"title":null,"href":"/documentation/invoices/status-and-workflow"},{"title":null,"href":"/documentation/invoices/invoice-computation"}]},{"group":"Transactions","pages":[{"title":"Transaction type and status","href":"/documentation/transaction/transaction-type-and-status"}]},{"group":"Metrics","pages":[{"title":"What is billable metric","href":"/documentation/billable-metric/what-is-billable-metric"},{"title":"Work with Limited-Type Metric (Limit Metered)","href":"/documentation/billable-metric/limited-metric"},{"title":"Work with Limit Recurring Metric","href":"/documentation/billable-metric/limit-recurring-metric"},{"title":"Work with charged-type metric","href":"/documentation/billable-metric/charged-metric"}]},{"group":"Promotions","pages":[{"title":"Discount Codes","href":"/documentation/discount-code/discount-code-introduction"},{"title":"Promo Credit","href":"/documentation/promo-credits/promo-credits"},{"title":"Introduction","href":"/documentation/promo-credits/Introduction"}]},{"group":"Webhooks","pages":[{"title":"UniBee webhooks","href":"/documentation/webhooks/webhooks"},{"title":"UniBee webhook events","href":"/documentation/webhooks/webhook-events"}]}]},{"group":"Guides","pages":[{"group":"Checkout and Hosted Pages","pages":[{"title":"Custom Checkout Page","href":"/documentation/business-integration/custom-checkout-page"},{"title":null,"href":"/documentation/business-integration/hosted-page-custom-domain"},{"title":"Custom Domain (CNAME) Configuration","href":"/documentation/business-integration/custom-domain-CNAME-configuration"},{"title":"Change Subscription After Purchases (Hosted Mode)","href":"/documentation/business-integration/change-subscription-hosted-page-after-purchases"},{"title":"Customer Portal After Purchases (Hosted Mode)","href":"/documentation/business-integration/customer-portal-after-purchases"},{"title":null,"href":"/documentation/business-integration/portal-settings"},{"title":"Payment iframe integration (Embedded)","href":"/documentation/business-integration/payment-iframe-integration"}]},{"group":"Payments and API","pages":[{"title":"External Gateway Integration Guide","href":"/documentation/business-integration/external-gateway-integration"},{"title":"Make Billing API calls","href":"/documentation/business-integration/billing-api-call"},{"title":"Export data with an API key","href":"/documentation/business-integration/api-key-export-tasks"},{"title":"OpenAPI MCP Server","href":"/documentation/business-integration/openapi-mcp"}]},{"group":"Taxes and Currencies","pages":[{"title":"Collect taxes","href":"/documentation/business-integration/collect-tax"},{"title":"US VAT \u0026 TaxJar Setup","href":"/documentation/business-integration/us-vat-and-taxjar"},{"title":"UniBee Multi-Currencies Module","href":"/documentation/business-integration/multi-currencies-module"}]},{"group":"Third-party Integrations","pages":[{"title":"Zapier Integration Guide","href":"/documentation/business-integration/zapier-integration"}]},{"group":"Billable Metric","pages":[{"title":"How To Create A UniBee Billable Metric","href":"/documentation/billable-metric/how-to-create-billable-metric"},{"title":"Setting Billable Metric Pricing","href":"/documentation/billable-metric/setting-billable-metric-pricing"},{"title":"Viewing User Usage Billing","href":"/documentation/billable-metric/viewing-user-usage-billing"}]},{"group":"Products and Plans","pages":[{"title":null,"href":"/documentation/product-and-plan/how-to-add-a-new-product"},{"title":null,"href":"/documentation/product-and-plan/add-a-plan-and-archive-a-plan-in-product-tab"},{"title":"How to Sync UniBee Plans to an External Pricing Catalog","href":"/documentation/product-and-plan/sync-plans-to-external-pricing-catalog"}]},{"group":"Multi-Phase Subscriptions","pages":[{"title":null,"href":"/documentation/multi-phase/understanding-multi-phase-subscriptions"},{"title":null,"href":"/documentation/multi-phase/creating-multi-phase-plans"},{"title":null,"href":"/documentation/multi-phase/customer-experience"}]},{"group":"Discount Codes","pages":[{"title":"Set Up a Discount Code","href":"/documentation/discount-code/setup-discount-code"},{"title":"Create, edit, copy and archive","href":"/documentation/discount-code/create-edit-copy-and-archive"},{"title":"Batch Discount Codes","href":"/documentation/discount-code/batch-discount-codes"},{"title":"External Discount Codes","href":"/documentation/discount-code/external-discount-codes"},{"title":"View the usage of a discount code","href":"/documentation/discount-code/view-the-usage-of-a-discount-code"},{"title":"Inquiry and Export","href":"/documentation/discount-code/inquiry-and-export"}]},{"group":"Subscriptions","pages":[{"title":null,"href":"/documentation/subscription/change-subscription-plan"},{"title":"Assign Subscription to user","href":"/documentation/subscription/assign-plan-to-user"},{"title":"Subscription Configuration Guide","href":"/documentation/subscription/subscription_configs"}]},{"group":"Invoices","pages":[{"title":null,"href":"/documentation/invoices/advanced-invoice-management"},{"title":"Offline Refund Process","href":"/documentation/invoices/offline-refund-process"},{"title":"Customized Invoice PDF Issued by","href":"/documentation/invoices/customize-invoice-pdf-issued-by"},{"title":"Configure invoice entities for payment gateways","href":"/documentation/invoices/payment-gateway-invoice-entity-configuration"},{"title":"Split Payment on Invoice Hosted Page","href":"/documentation/invoices/split-payment"},{"title":"External Gateway Invoices","href":"/documentation/invoices/external-gateway-invoices"}]},{"group":"Transactions","pages":[{"title":"Transaction list download","href":"/documentation/transaction/transaction-list-download"}]},{"group":"User Management","pages":[{"title":"View, edit user information","href":"/documentation/user-management/view-edit-user-info"},{"title":"Assign a subscription plan to a user","href":"/documentation/user-management/assign-sub-to-user"},{"title":"Export and import user data","href":"/documentation/user-management/export-import-user-data"}]},{"group":"Admin Management","pages":[{"title":null,"href":"/documentation/admin-management/activity-logs"},{"title":"Invite more billing admins","href":"/documentation/admin-management/invite-more-billing-admins"},{"title":" Define roles and permissions for billing admins","href":"/documentation/admin-management/define-roles-permissions"}]},{"group":"Email","pages":[{"title":"Email Settings Configuration","href":"/documentation/email-settings/email-settings-configuration"}]},{"group":"Promo Credits","pages":[{"title":"Enabling the Promo Credit System","href":"/documentation/promo-credits/Enabling-the-Promo-Credit-System"},{"title":"Adding or Modifying a User's Promo Credit","href":"/documentation/promo-credits/Adding-or-Modifying-a-User's-Promo-Credit"},{"title":"Viewing and Exporting the Promo Credit List","href":"/documentation/promo-credits/Viewing-and-Exporting-the-Promo-Credit-List"},{"title":"How to Integrate Promo Credit for Customers via OpenAPI","href":"/documentation/promo-credits/promo_credit_integration"}]},{"group":"Analytics","pages":[{"title":"Analytics Overview","href":"/documentation/analytics/analytics-overview"},{"title":"Configurable Settings","href":"/documentation/analytics/configurable-settings"},{"title":"Customer Metrics","href":"/documentation/analytics/customer-metrics"},{"title":"Revenue Metrics","href":"/documentation/analytics/revenue-metrics"}]},{"group":"Reports","pages":[{"title":"Define and export customizable reports","href":"/documentation/reports-and-export-reports/reports-and-export-reports"}]}]},{"group":"Reference","pages":[{"group":"Merchant","pages":[{"openapi":"post /merchant/amount_multi_currencies_exchange","title":"Amount Multi Currencies Exchange","href":"/api-reference/merchant/amount-multi-currencies-exchange"},{"openapi":"post /merchant/country_config_list","title":"Edit Country Config","href":"/api-reference/merchant/edit-country-config"},{"openapi":"post /merchant/edit_country_config","title":"Get Country Config List","href":"/api-reference/merchant/get-country-config-list"},{"openapi":"post /merchant/edit_totp_config","title":"Admin Edit 2FA Config","href":"/api-reference/merchant/admin-edit-2fa-config"},{"openapi":"get /merchant/get","title":"Get Profile","href":"/api-reference/merchant/get-profile"},{"openapi":"get /merchant/get_license","title":"Get License","href":"/api-reference/merchant/get-license"},{"openapi":"get /merchant/get_license_update_url","title":"Get License Update Url","href":"/api-reference/merchant/get-license-update-url"},{"openapi":"post /merchant/get_license_update_url","title":"Get License Update Url","href":"/api-reference/merchant/get-license-update-url-1"},{"openapi":"post /merchant/new_apikey","title":"Generate New APIKey","href":"/api-reference/merchant/generate-new-apikey"},{"openapi":"get /merchant/overview_statistics","title":"Get Merchant Overview Statistics","href":"/api-reference/merchant/get-merchant-overview-statistics"},{"openapi":"post /merchant/setup_multi_currencies","title":"Multi Currencies Setup","href":"/api-reference/merchant/multi-currencies-setup"},{"openapi":"post /merchant/update","title":"Update Profile","href":"/api-reference/merchant/update-profile"},{"openapi":"post /merchant/update_cname_domain","title":"Update Merchant CNAME Domain","href":"/api-reference/merchant/update-merchant-cname-domain"},{"openapi":"post /merchant/update_portal_host_domain","title":"Update Profile Portal Host Domain","href":"/api-reference/merchant/update-profile-portal-host-domain"}]},{"group":"Member Authentication","pages":[{"openapi":"post /merchant/auth/session_login","title":"Session Login","href":"/api-reference/member-authentication/session-login"},{"openapi":"post /merchant/auth/sso/clear_totp","title":"Admin Member Clear Member 2FA Key With ResumeCode","href":"/api-reference/member-authentication/admin-member-clear-member-2fa-key-with-resumecode"},{"openapi":"post /merchant/auth/sso/login","title":"Merchant Password Login","href":"/api-reference/member-authentication/merchant-password-login"},{"openapi":"post /merchant/auth/sso/loginOTP","title":"OTP Login","href":"/api-reference/member-authentication/otp-login"},{"openapi":"post /merchant/auth/sso/loginOTPVerify","title":"OTP Login Code Verification","href":"/api-reference/member-authentication/otp-login-code-verification"},{"openapi":"get /merchant/auth/sso/oauth/github","title":"Get Oauth Github","href":"/api-reference/member-authentication/get-oauth-github"},{"openapi":"get /merchant/auth/sso/oauth/google","title":"Get Oauth Google","href":"/api-reference/member-authentication/get-oauth-google"},{"openapi":"post /merchant/auth/sso/oauth/login","title":"OAuth Login","href":"/api-reference/member-authentication/oauth-login"},{"openapi":"get /merchant/auth/sso/oauth/members","title":"Get Oauth Members","href":"/api-reference/member-authentication/get-oauth-members"},{"openapi":"post /merchant/auth/sso/oauth/register","title":"Register OAuth","href":"/api-reference/member-authentication/register-oauth"},{"openapi":"post /merchant/auth/sso/oauth/setup","title":"OAuth Setup","href":"/api-reference/member-authentication/oauth-setup"},{"openapi":"post /merchant/auth/sso/passwordForgetOTP","title":"OTP Password Forget","href":"/api-reference/member-authentication/otp-password-forget"},{"openapi":"post /merchant/auth/sso/passwordForgetOTPVerify","title":"OTP Password Forget Code Verification","href":"/api-reference/member-authentication/otp-password-forget-code-verification"},{"openapi":"post /merchant/auth/sso/passwordForgetTotpVerify","title":"2FA Password Forget Code Verification","href":"/api-reference/member-authentication/2fa-password-forget-code-verification"},{"openapi":"post /merchant/auth/sso/passwordSetup","title":"Password Setup","href":"/api-reference/member-authentication/password-setup"},{"openapi":"post /merchant/auth/sso/register","title":"Register","href":"/api-reference/member-authentication/register"},{"openapi":"post /merchant/auth/sso/register_email_check","title":"Register Email Check","href":"/api-reference/member-authentication/register-email-check"},{"openapi":"post /merchant/auth/sso/register_without_verification","title":"RegisterWithoutCode","href":"/api-reference/member-authentication/registerwithoutcode"},{"openapi":"post /merchant/auth/sso/registerVerify","title":"Register Verify","href":"/api-reference/member-authentication/register-verify"}]},{"group":"Checkout Setup","pages":[{"openapi":"post /merchant/checkout/archive","title":"Archive Merchant Checkout","href":"/api-reference/checkout-setup/archive-merchant-checkout"},{"openapi":"get /merchant/checkout/detail","title":"Get Merchant Checkout Detail","href":"/api-reference/checkout-setup/get-merchant-checkout-detail"},{"openapi":"post /merchant/checkout/detail","title":"Get Merchant Checkout Detail","href":"/api-reference/checkout-setup/get-merchant-checkout-detail-1"},{"openapi":"post /merchant/checkout/edit_checkout","title":"Edit Merchant Checkout","href":"/api-reference/checkout-setup/edit-merchant-checkout"},{"openapi":"get /merchant/checkout/get_link","title":"Get Merchant Checkout Link","href":"/api-reference/checkout-setup/get-merchant-checkout-link"},{"openapi":"post /merchant/checkout/get_link","title":"Get Merchant Checkout Link","href":"/api-reference/checkout-setup/get-merchant-checkout-link-1"},{"openapi":"get /merchant/checkout/list","title":"Get Merchant Checkout list","href":"/api-reference/checkout-setup/get-merchant-checkout-list"},{"openapi":"post /merchant/checkout/list","title":"Get Merchant Checkout list","href":"/api-reference/checkout-setup/get-merchant-checkout-list-1"},{"openapi":"post /merchant/checkout/new_checkout","title":"New Merchant Checkout","href":"/api-reference/checkout-setup/new-merchant-checkout"}]},{"group":"Credit","pages":[{"openapi":"get /merchant/credit/config_list","title":"Get Credit Config list","href":"/api-reference/credit/get-credit-config-list"},{"openapi":"post /merchant/credit/config_list","title":"Get Credit Config list","href":"/api-reference/credit/get-credit-config-list-1"},{"openapi":"get /merchant/credit/credit_account_list","title":"Get Credit Account List","href":"/api-reference/credit/get-credit-account-list"},{"openapi":"get /merchant/credit/credit_transaction_list","title":"Get Credit Transaction List","href":"/api-reference/credit/get-credit-transaction-list"},{"openapi":"post /merchant/credit/credit_transaction_list","title":"Get Credit Transaction List","href":"/api-reference/credit/get-credit-transaction-list-1"},{"openapi":"get /merchant/credit/detail","title":"Credit Account Detail","href":"/api-reference/credit/credit-account-detail"},{"openapi":"post /merchant/credit/detail","title":"Credit Account Detail","href":"/api-reference/credit/credit-account-detail-1"},{"openapi":"post /merchant/credit/edit_config","title":"Edit Credit Config","href":"/api-reference/credit/edit-credit-config"},{"openapi":"post /merchant/credit/edit_credit_account","title":"Edit User Credit Account Config","href":"/api-reference/credit/edit-user-credit-account-config"},{"openapi":"post /merchant/credit/new_config","title":"Setup Credit Config","href":"/api-reference/credit/setup-credit-config"},{"openapi":"post /merchant/credit/new_credit_recharge","title":"New Credit Recharge","href":"/api-reference/credit/new-credit-recharge"}]},{"group":"Promo Credit","pages":[{"openapi":"post /merchant/credit/edit_promo_config","title":"Edit Promo Credit Config","href":"/api-reference/promo-credit/edit-promo-credit-config"},{"openapi":"get /merchant/credit/get_promo_config","title":"Get Promo Credit Config","href":"/api-reference/promo-credit/get-promo-credit-config"},{"openapi":"post /merchant/credit/get_promo_config","title":"Get Promo Credit Config","href":"/api-reference/promo-credit/get-promo-credit-config-1"},{"openapi":"get /merchant/credit/get_promo_config_statistics","title":"Get Promo Credit Config Statistics","href":"/api-reference/promo-credit/get-promo-credit-config-statistics"},{"openapi":"post /merchant/credit/get_promo_config_statistics","title":"Get Promo Credit Config Statistics","href":"/api-reference/promo-credit/get-promo-credit-config-statistics-1"},{"openapi":"post /merchant/credit/promo_credit_decrement","title":"Promo Credit Decrement","href":"/api-reference/promo-credit/promo-credit-decrement"},{"openapi":"post /merchant/credit/promo_credit_increment","title":"Promo Credit Increment","href":"/api-reference/promo-credit/promo-credit-increment"},{"openapi":"post /merchant/credit/promo_credit_refund_from_invoice","title":"Promo Credit Refund","href":"/api-reference/promo-credit/promo-credit-refund"}]},{"group":"Discount","pages":[{"openapi":"post /merchant/discount/activate","title":"Activate Discount Code","href":"/api-reference/discount/activate-discount-code"},{"openapi":"post /merchant/discount/deactivate","title":"Deactivate Discount Code","href":"/api-reference/discount/deactivate-discount-code"},{"openapi":"post /merchant/discount/decrease_quantity","title":"Quantity Decrement","href":"/api-reference/discount/quantity-decrement"},{"openapi":"post /merchant/discount/delete","title":"Delete Discount Code","href":"/api-reference/discount/delete-discount-code"},{"openapi":"get /merchant/discount/detail","title":"Get Merchant Discount Detail","href":"/api-reference/discount/get-merchant-discount-detail"},{"openapi":"post /merchant/discount/detail","title":"Get Merchant Discount Detail","href":"/api-reference/discount/get-merchant-discount-detail-1"},{"openapi":"post /merchant/discount/edit","title":"Edit Discount Code","href":"/api-reference/discount/edit-discount-code"},{"openapi":"get /merchant/discount/list","title":"Get Discount Code List","description":"Get discountCode list","href":"/api-reference/discount/get-discount-code-list"},{"openapi":"post /merchant/discount/new","title":"New Discount Code","href":"/api-reference/discount/new-discount-code"},{"openapi":"post /merchant/discount/quantity_increment","title":"Quantity Increment","description":"Increase discount code quantity, if original quantity is 0, increase greater than 0 will enable quantity control","href":"/api-reference/discount/quantity-increment"}]},{"group":"Batch Discount","pages":[{"openapi":"get /merchant/discount/batch/children/detail","title":"Get Batch Child Code Detail","href":"/api-reference/batch-discount/get-batch-child-code-detail"},{"openapi":"post /merchant/discount/batch/children/detail","title":"Get Batch Child Code Detail","href":"/api-reference/batch-discount/get-batch-child-code-detail-1"},{"openapi":"post /merchant/discount/batch/children/generate","title":"Generate Batch Child Codes","href":"/api-reference/batch-discount/generate-batch-child-codes"},{"openapi":"get /merchant/discount/batch/children/list","title":"Get Batch Child Codes List","href":"/api-reference/batch-discount/get-batch-child-codes-list"},{"openapi":"get /merchant/discount/batch/template/detail","title":"Get Batch Template Detail","href":"/api-reference/batch-discount/get-batch-template-detail"},{"openapi":"post /merchant/discount/batch/template/detail","title":"Get Batch Template Detail","href":"/api-reference/batch-discount/get-batch-template-detail-1"},{"openapi":"post /merchant/discount/batch/template/edit","title":"Edit Batch Discount Template","href":"/api-reference/batch-discount/edit-batch-discount-template"},{"openapi":"get /merchant/discount/batch/template/list","title":"Get Batch Template List","href":"/api-reference/batch-discount/get-batch-template-list"},{"openapi":"post /merchant/discount/batch/template/new","title":"Create Batch Discount Template","href":"/api-reference/batch-discount/create-batch-discount-template"},{"openapi":"post /merchant/discount/batch/template/quantity_increment","title":"Increment Template Quantity","href":"/api-reference/batch-discount/increment-template-quantity"}]},{"group":"User Discount","pages":[{"openapi":"post /merchant/discount/plan_apply_preview","title":"Plan Apply Preview","href":"/api-reference/user-discount/plan-apply-preview"},{"openapi":"get /merchant/discount/user_discount_list","title":"Get User Discount Code List","href":"/api-reference/user-discount/get-user-discount-code-list"}]},{"group":"Email Template","pages":[{"openapi":"post /merchant/email/custom_localization_template_sync","title":"Customize Localization Template Sync","href":"/api-reference/email-template/customize-localization-template-sync"},{"openapi":"post /merchant/email/template_activate_localization_version","title":"Activate Email Template Localization Version","href":"/api-reference/email-template/activate-email-template-localization-version"},{"openapi":"post /merchant/email/template_add_localization_version","title":"Add Email Template Localization Version","href":"/api-reference/email-template/add-email-template-localization-version"},{"openapi":"post /merchant/email/template_delete_localization_version","title":"Delete Email Template Localization Version","href":"/api-reference/email-template/delete-email-template-localization-version"},{"openapi":"post /merchant/email/template_edit_localization_version","title":"Edit Email Template Localization Version","href":"/api-reference/email-template/edit-email-template-localization-version"},{"openapi":"get /merchant/email/template_list","title":"Get Email Template List","href":"/api-reference/email-template/get-email-template-list"},{"openapi":"post /merchant/email/template_test_localization_version","title":"Test Email Template Localization Version","href":"/api-reference/email-template/test-email-template-localization-version"}]},{"group":"Email","pages":[{"openapi":"post /merchant/email/email_sender_setup","title":"Email Sender Setup","href":"/api-reference/email/email-sender-setup"},{"openapi":"post /merchant/email/gateway_set_default","title":"Email Gateway Set Default","href":"/api-reference/email/email-gateway-set-default"},{"openapi":"post /merchant/email/gateway_setup","title":"Email Gateway Setup(Sendgrid)","href":"/api-reference/email/email-gateway-setupsendgrid"},{"openapi":"post /merchant/email/gateway_setup_v2","title":"Email Gateway Setup V2(Sendgrid|smtp)","href":"/api-reference/email/email-gateway-setup-v2sendgrid|smtp"},{"openapi":"get /merchant/email/history_list","title":"Get Email History List","href":"/api-reference/email/get-email-history-list"},{"openapi":"post /merchant/email/send_email_to_user","title":"Send Email To User","href":"/api-reference/email/send-email-to-user"},{"openapi":"post /merchant/email/send_email_via_api_credential","title":"Send Email Via API Credential","href":"/api-reference/email/send-email-via-api-credential"},{"openapi":"post /merchant/email/send_template_email_to_user","title":"Send Template Email To User","href":"/api-reference/email/send-template-email-to-user"}]},{"group":"Gateway","pages":[{"openapi":"post /merchant/gateway/archive","title":"Payment Gateway Archive","href":"/api-reference/gateway/payment-gateway-archive"},{"openapi":"get /merchant/gateway/detail","title":"Payment Gateway","href":"/api-reference/gateway/payment-gateway"},{"openapi":"post /merchant/gateway/detail","title":"Payment Gateway","href":"/api-reference/gateway/payment-gateway-1"},{"openapi":"post /merchant/gateway/edit","title":"Payment Gateway Edit","href":"/api-reference/gateway/payment-gateway-edit"},{"openapi":"post /merchant/gateway/edit_country_config","title":"Payment Gateway Country Config Edit","href":"/api-reference/gateway/payment-gateway-country-config-edit"},{"openapi":"post /merchant/gateway/edit_sort","title":"Edit Payment Gateway Sort","href":"/api-reference/gateway/edit-payment-gateway-sort"},{"openapi":"get /merchant/gateway/list","title":"Get Payment Gateway List","href":"/api-reference/gateway/get-payment-gateway-list"},{"openapi":"post /merchant/gateway/restore","title":"Payment Gateway Restore","href":"/api-reference/gateway/payment-gateway-restore"},{"openapi":"post /merchant/gateway/set_default","title":"Payment Gateway Set Default","href":"/api-reference/gateway/payment-gateway-set-default"},{"openapi":"post /merchant/gateway/setup","title":"Payment Gateway Setup","href":"/api-reference/gateway/payment-gateway-setup"},{"openapi":"post /merchant/gateway/setup_exchange_rate_api","title":"Exchange Rate Api Setup","href":"/api-reference/gateway/exchange-rate-api-setup"},{"openapi":"get /merchant/gateway/setup_list","title":"Get Payment Gateway Setup List","href":"/api-reference/gateway/get-payment-gateway-setup-list"},{"openapi":"post /merchant/gateway/setup_webhook","title":"Payment Gateway Webhook Setup","href":"/api-reference/gateway/payment-gateway-webhook-setup"},{"openapi":"post /merchant/gateway/wire_transfer_edit","title":"Wire Transfer Edit","href":"/api-reference/gateway/wire-transfer-edit"},{"openapi":"post /merchant/gateway/wire_transfer_setup","title":"Wire Transfer Setup","href":"/api-reference/gateway/wire-transfer-setup"},{"openapi":"post /merchant/track/setup_segment","title":"Segment Setup","href":"/api-reference/gateway/segment-setup"}]},{"group":"Integrations","pages":[{"openapi":"get /merchant/integration/quickbooks/disconnection","title":"Disconnection Quickbooks","href":"/api-reference/integrations/disconnection-quickbooks"},{"openapi":"get /merchant/integration/quickbooks/get_authorization_url","title":"Get Quickbooks Authorization Connection URL","href":"/api-reference/integrations/get-quickbooks-authorization-connection-url"}]},{"group":"Invoice","pages":[{"openapi":"post /merchant/invoice/cancel","title":"Admin Cancel Invoice","href":"/api-reference/invoice/admin-cancel-invoice"},{"openapi":"post /merchant/invoice/clearPayment","title":"Admin Clear Invoice Current Pending Payment","href":"/api-reference/invoice/admin-clear-invoice-current-pending-payment"},{"openapi":"post /merchant/invoice/create_mark_refund","title":"Create And Mark Manual Refund (Crypto/WireTransfer/External)","href":"/api-reference/invoice/create-and-mark-manual-refund-cryptowiretransferexternal"},{"openapi":"post /merchant/invoice/credit_note/list","title":"Bulk CreditNote(Refund Invoice) Invoice List","href":"/api-reference/invoice/bulk-creditnoterefund-invoice-invoice-list"},{"openapi":"post /merchant/invoice/delete","title":"Delete Pending Invoice","href":"/api-reference/invoice/delete-pending-invoice"},{"openapi":"get /merchant/invoice/detail","title":"Invoice Detail","href":"/api-reference/invoice/invoice-detail"},{"openapi":"post /merchant/invoice/detail","title":"Invoice Detail","href":"/api-reference/invoice/invoice-detail-1"},{"openapi":"post /merchant/invoice/edit","title":"Invoice Edit","href":"/api-reference/invoice/invoice-edit"},{"openapi":"post /merchant/invoice/external_gateway_invoice/mark_paid","title":"[Deprecated] Mark External Gateway Invoice As Paid","href":"/api-reference/invoice/[deprecated]-mark-external-gateway-invoice-as-paid"},{"openapi":"post /merchant/invoice/external_gateway_invoice/mark_refunded","title":"[Deprecated] Mark External Gateway Invoice As Refunded","href":"/api-reference/invoice/[deprecated]-mark-external-gateway-invoice-as-refunded"},{"openapi":"post /merchant/invoice/external_gateway_invoice/update_payment_link","title":"[Deprecated] Update External Gateway Invoice Payment Link","href":"/api-reference/invoice/[deprecated]-update-external-gateway-invoice-payment-link"},{"openapi":"post /merchant/invoice/finish","title":"Finish Invoice","href":"/api-reference/invoice/finish-invoice"},{"openapi":"get /merchant/invoice/list","title":"Get Invoice List","href":"/api-reference/invoice/get-invoice-list"},{"openapi":"post /merchant/invoice/list","title":"Get Invoice List","href":"/api-reference/invoice/get-invoice-list-1"},{"openapi":"post /merchant/invoice/mark_refund_success","title":"Mark Manual Invoice Refund As Success","href":"/api-reference/invoice/mark-manual-invoice-refund-as-success"},{"openapi":"post /merchant/invoice/mark_wire_transfer_success","title":"Mark Wire Transfer Invoice As Paid (Manual)","href":"/api-reference/invoice/mark-wire-transfer-invoice-as-paid-manual"},{"openapi":"post /merchant/invoice/new","title":"New Invoice","href":"/api-reference/invoice/new-invoice"},{"openapi":"post /merchant/invoice/pdf_generate","title":"Generate Invoice PDF","href":"/api-reference/invoice/generate-invoice-pdf"},{"openapi":"post /merchant/invoice/pdf_update","title":"Update Invoice PDF","href":"/api-reference/invoice/update-invoice-pdf"},{"openapi":"post /merchant/invoice/reconvert_crypto_and_send_email","title":"Admin Reconvert Crypto Data and Send Invoice Email","href":"/api-reference/invoice/admin-reconvert-crypto-data-and-send-invoice-email"},{"openapi":"post /merchant/invoice/refund","title":"Create InvoiceRefund","href":"/api-reference/invoice/create-invoicerefund"},{"openapi":"post /merchant/invoice/send_email","title":"Send Invoice Email","href":"/api-reference/invoice/send-invoice-email"},{"openapi":"get /merchant/invoice/split_payments","title":"Get Split Payments","href":"/api-reference/invoice/get-split-payments"},{"openapi":"post /merchant/invoice/split_payments","title":"Get Split Payments","href":"/api-reference/invoice/get-split-payments-1"},{"openapi":"post /merchant/invoice/sync_user_snapshot","title":"Sync Invoice User Snapshot With Latest User Info","href":"/api-reference/invoice/sync-invoice-user-snapshot-with-latest-user-info"}]},{"group":"Admin Member","pages":[{"openapi":"post /merchant/member/clear_member_totp","title":"Admin Owner Clear Member 2FA Key","href":"/api-reference/admin-member/admin-owner-clear-member-2fa-key"},{"openapi":"post /merchant/member/clear_oauth","title":"Clear Member OAuth Account","href":"/api-reference/admin-member/clear-member-oauth-account"},{"openapi":"post /merchant/member/confirm_totp_key","title":"Admin Member Confirm 2FA Key","href":"/api-reference/admin-member/admin-member-confirm-2fa-key"},{"openapi":"post /merchant/member/delete_totp_device","title":"Admin Owner Or Admin Delete Own's' 2FA Device","href":"/api-reference/admin-member/admin-owner-or-admin-delete-owns-2fa-device"},{"openapi":"post /merchant/member/get_totp_key","title":"Admin Member Get 2FA Key","href":"/api-reference/admin-member/admin-member-get-2fa-key"},{"openapi":"get /merchant/member/list","title":"Get Member List","href":"/api-reference/admin-member/get-member-list"},{"openapi":"post /merchant/member/list","title":"Get Member List","href":"/api-reference/admin-member/get-member-list-1"},{"openapi":"post /merchant/member/logout","title":"Logout","href":"/api-reference/admin-member/logout"},{"openapi":"post /merchant/member/new_member","title":"Invite member","href":"/api-reference/admin-member/invite-member"},{"openapi":"get /merchant/member/operation_log_list","title":"Get Member Operation Log List","href":"/api-reference/admin-member/get-member-operation-log-list"},{"openapi":"post /merchant/member/passwordReset","title":"Member Reset Password","href":"/api-reference/admin-member/member-reset-password"},{"openapi":"get /merchant/member/profile","title":"Get Member Profile","href":"/api-reference/admin-member/get-member-profile"},{"openapi":"post /merchant/member/reset_totp","title":"Admin Member Reset Member 2FA Key","href":"/api-reference/admin-member/admin-member-reset-member-2fa-key"},{"openapi":"post /merchant/member/resume_member","title":"Resume Member","href":"/api-reference/admin-member/resume-member"},{"openapi":"post /merchant/member/suspend_member","title":"Suspend Member","href":"/api-reference/admin-member/suspend-member"},{"openapi":"post /merchant/member/update","title":"Update Member Profile","href":"/api-reference/admin-member/update-member-profile"},{"openapi":"post /merchant/member/update_member_role","title":"Update Member Role","href":"/api-reference/admin-member/update-member-role"},{"openapi":"post /merchant/member/update_oauth","title":"Update Member OAuth Account","href":"/api-reference/admin-member/update-member-oauth-account"}]},{"group":"Metric Limit Quota","pages":[{"openapi":"post /merchant/metric/carryover/reprocess","title":"Reprocess Metric Carry Over (Admin Tool)","href":"/api-reference/metric-limit-quota/reprocess-metric-carry-over-admin-tool"},{"openapi":"post /merchant/metric/limit_adjust","title":"Manual Adjust Metric Limit","href":"/api-reference/metric-limit-quota/manual-adjust-metric-limit"}]},{"group":"Metric","pages":[{"openapi":"post /merchant/metric/delete","title":"Delete Merchant Metric","href":"/api-reference/metric/delete-merchant-metric"},{"openapi":"post /merchant/metric/detail","title":"Merchant Metric Detail","href":"/api-reference/metric/merchant-metric-detail"},{"openapi":"post /merchant/metric/edit","title":"Edit Merchant Metric","href":"/api-reference/metric/edit-merchant-metric"},{"openapi":"get /merchant/metric/list","title":"Get Merchant Metric list","href":"/api-reference/metric/get-merchant-metric-list"},{"openapi":"post /merchant/metric/list","title":"Get Merchant Metric list","href":"/api-reference/metric/get-merchant-metric-list-1"},{"openapi":"post /merchant/metric/new","title":"New Merchant Metric","href":"/api-reference/metric/new-merchant-metric"},{"openapi":"post /merchant/metric/plan/limit/delete","title":"Delete Merchant Metric Plan TotalLimit","href":"/api-reference/metric/delete-merchant-metric-plan-totallimit"},{"openapi":"post /merchant/metric/plan/limit/edit","title":"Edit Merchant Metric Plan TotalLimit","href":"/api-reference/metric/edit-merchant-metric-plan-totallimit"},{"openapi":"post /merchant/metric/plan/limit/new","title":"New Merchant Metric Plan TotalLimit","href":"/api-reference/metric/new-merchant-metric-plan-totallimit"}]},{"group":"Metric Event","pages":[{"openapi":"post /merchant/metric/event/current_value","title":"Get Merchant Metric Event Current Value","href":"/api-reference/metric-event/get-merchant-metric-event-current-value"},{"openapi":"post /merchant/metric/event/delete","title":"Del Merchant Metric Event","href":"/api-reference/metric-event/del-merchant-metric-event"},{"openapi":"post /merchant/metric/event/new","title":"New Merchant Metric Event","href":"/api-reference/metric-event/new-merchant-metric-event"},{"openapi":"get /merchant/metric/event_list","title":"Metric Event List","href":"/api-reference/metric-event/metric-event-list"},{"openapi":"post /merchant/metric/event_list","title":"Metric Event List","href":"/api-reference/metric-event/metric-event-list-1"}]},{"group":"User Metric","pages":[{"openapi":"get /merchant/metric/user/history/invoices_metric_queryable","title":"List invoices that can be used for metric_by_invoice (paid, subscription cycle only)","href":"/api-reference/user-metric/list-invoices-that-can-be-used-for-metric_by_invoice-paid-subscription-cycle-only"},{"openapi":"get /merchant/metric/user/history/metric_by_invoice","title":"Query User History Limit Metric By Invoice (History Query Mode, limit_metered and limit_recurring only)","href":"/api-reference/user-metric/query-user-history-limit-metric-by-invoice-history-query-mode-limit_metered-and-limit_recurring-only"},{"openapi":"get /merchant/metric/user/history/metric_by_subscription","title":"Query User History Limit Metric By Subscription (History Query Mode, limit_metered and limit_recurring only, non-active subscription only)","href":"/api-reference/user-metric/query-user-history-limit-metric-by-subscription-history-query-mode-limit_metered-and-limit_recurring-only-non-active-subscription-only"},{"openapi":"get /merchant/metric/user/metric","title":"Query User Metric","href":"/api-reference/user-metric/query-user-metric"},{"openapi":"get /merchant/metric/user/sub/metric","title":"Query User Metric By Subscription","href":"/api-reference/user-metric/query-user-metric-by-subscription"}]},{"group":"Payment","pages":[{"openapi":"post /merchant/payment/cancel","title":"Cancel Payment","href":"/api-reference/payment/cancel-payment"},{"openapi":"post /merchant/payment/capture","title":"Capture Payment","href":"/api-reference/payment/capture-payment"},{"openapi":"get /merchant/payment/detail","title":"Payment Detail","href":"/api-reference/payment/payment-detail"},{"openapi":"post /merchant/payment/external_gateway_payment/mark_failed","title":"Mark External Gateway Payment As Failed","href":"/api-reference/payment/mark-external-gateway-payment-as-failed"},{"openapi":"post /merchant/payment/external_gateway_payment/mark_paid","title":"Mark External Gateway Payment As Paid","href":"/api-reference/payment/mark-external-gateway-payment-as-paid"},{"openapi":"post /merchant/payment/external_gateway_payment/update_link","title":"Update External Gateway Payment Link","href":"/api-reference/payment/update-external-gateway-payment-link"},{"openapi":"post /merchant/payment/external_gateway_refund/mark_failed","title":"Mark External Gateway Refund As Failed","href":"/api-reference/payment/mark-external-gateway-refund-as-failed"},{"openapi":"post /merchant/payment/external_gateway_refund/mark_success","title":"Mark External Gateway Refund As Success","href":"/api-reference/payment/mark-external-gateway-refund-as-success"},{"openapi":"get /merchant/payment/item/list","title":"Get OneTime Payment Item List","href":"/api-reference/payment/get-onetime-payment-item-list"},{"openapi":"get /merchant/payment/list","title":"Get Payment List","href":"/api-reference/payment/get-payment-list"},{"openapi":"post /merchant/payment/method_delete","title":"Delete Payment Method","href":"/api-reference/payment/delete-payment-method"},{"openapi":"get /merchant/payment/method_get","title":"Payment Method","href":"/api-reference/payment/payment-method"},{"openapi":"get /merchant/payment/method_list","title":"Payment Method List","href":"/api-reference/payment/payment-method-list"},{"openapi":"post /merchant/payment/method_new","title":"Create New Payment Method","href":"/api-reference/payment/create-new-payment-method"},{"openapi":"post /merchant/payment/new","title":"New Payment","href":"/api-reference/payment/new-payment"},{"openapi":"post /merchant/payment/refund/cancel","title":"Cancel Payment Refund","href":"/api-reference/payment/cancel-payment-refund"},{"openapi":"get /merchant/payment/refund/detail","title":"Payment Refund Detail","href":"/api-reference/payment/payment-refund-detail"},{"openapi":"get /merchant/payment/refund/list","title":"Get Payment Refund List","href":"/api-reference/payment/get-payment-refund-list"},{"openapi":"post /merchant/payment/refund/new","title":"New Payment Refund","href":"/api-reference/payment/new-payment-refund"},{"openapi":"get /merchant/payment/timeline/list","title":"Get Payment TimeLine List","href":"/api-reference/payment/get-payment-timeline-list"},{"openapi":"post /merchant/payment/timeline/list","title":"Get Payment TimeLine List","href":"/api-reference/payment/get-payment-timeline-list-1"}]},{"group":"Plan","pages":[{"openapi":"post /merchant/plan/activate","title":"Activate Plan","href":"/api-reference/plan/activate-plan"},{"openapi":"post /merchant/plan/active_price_change/confirm","title":"Confirm Active Plan Price Change","href":"/api-reference/plan/confirm-active-plan-price-change"},{"openapi":"post /merchant/plan/active_price_change/preview","title":"Preview Active Plan Price Change","href":"/api-reference/plan/preview-active-plan-price-change"},{"openapi":"post /merchant/plan/addons_binding","title":"Addon Binding","href":"/api-reference/plan/addon-binding"},{"openapi":"post /merchant/plan/archive","title":"Archive Plan","href":"/api-reference/plan/archive-plan"},{"openapi":"post /merchant/plan/copy","title":"Copy Plan","href":"/api-reference/plan/copy-plan"},{"openapi":"post /merchant/plan/delete","title":"Delete Plan","href":"/api-reference/plan/delete-plan"},{"openapi":"get /merchant/plan/detail","title":"Plan Detail","href":"/api-reference/plan/plan-detail"},{"openapi":"post /merchant/plan/detail","title":"Plan Detail","href":"/api-reference/plan/plan-detail-1"},{"openapi":"post /merchant/plan/edit","title":"Edit Plan","href":"/api-reference/plan/edit-plan"},{"openapi":"get /merchant/plan/list","title":"Get Plan List","href":"/api-reference/plan/get-plan-list"},{"openapi":"post /merchant/plan/list","title":"Get Plan List","href":"/api-reference/plan/get-plan-list-1"},{"openapi":"post /merchant/plan/metric_limit_override","title":"Override Metric Limits Of Plan","href":"/api-reference/plan/override-metric-limits-of-plan"},{"openapi":"post /merchant/plan/new","title":"Create Plan","href":"/api-reference/plan/create-plan"},{"openapi":"post /merchant/plan/publish","title":"Publish Plan","href":"/api-reference/plan/publish-plan"},{"openapi":"post /merchant/plan/unpublished","title":"UnPublish Plan","href":"/api-reference/plan/unpublish-plan"}]},{"group":"Product","pages":[{"openapi":"post /merchant/product/activate","title":"Activate Product","href":"/api-reference/product/activate-product"},{"openapi":"post /merchant/product/copy","title":"Copy Product","href":"/api-reference/product/copy-product"},{"openapi":"post /merchant/product/delete","title":"Delete Product","href":"/api-reference/product/delete-product"},{"openapi":"get /merchant/product/detail","title":"Product Detail","href":"/api-reference/product/product-detail"},{"openapi":"post /merchant/product/detail","title":"Product Detail","href":"/api-reference/product/product-detail-1"},{"openapi":"post /merchant/product/edit","title":"Edit Product","href":"/api-reference/product/edit-product"},{"openapi":"post /merchant/product/inactivate","title":"Inactivate Product","href":"/api-reference/product/inactivate-product"},{"openapi":"get /merchant/product/list","title":"Get Product List","href":"/api-reference/product/get-product-list"},{"openapi":"post /merchant/product/list","title":"Get Product List","href":"/api-reference/product/get-product-list-1"},{"openapi":"post /merchant/product/new","title":"Create Product","href":"/api-reference/product/create-product"}]},{"group":"Admin Role","pages":[{"openapi":"post /merchant/role/delete","title":"Delete Role","href":"/api-reference/admin-role/delete-role"},{"openapi":"post /merchant/role/edit","title":"Edit Role","href":"/api-reference/admin-role/edit-role"},{"openapi":"get /merchant/role/list","title":"Get Role List","href":"/api-reference/admin-role/get-role-list"},{"openapi":"post /merchant/role/new","title":"New Role","href":"/api-reference/admin-role/new-role"}]},{"group":"Search","pages":[{"openapi":"get /merchant/search/key_search","title":"Search","href":"/api-reference/search/search"},{"openapi":"post /merchant/search/key_search","title":"Search","href":"/api-reference/search/search-1"}]},{"group":"Session","pages":[{"openapi":"get /merchant/session/customer_portal_url","title":"Get Customer Portal Url","href":"/api-reference/session/get-customer-portal-url"},{"openapi":"post /merchant/session/customer_portal_url","title":"Get Customer Portal Url","href":"/api-reference/session/get-customer-portal-url-1"},{"openapi":"post /merchant/session/new_session","title":"New Checkout Session","href":"/api-reference/session/new-checkout-session"},{"openapi":"get /merchant/session/user_sub_update_url","title":"Get User Subscription Update Page Url","href":"/api-reference/session/get-user-subscription-update-page-url"},{"openapi":"post /merchant/session/user_sub_update_url","title":"Get User Subscription Update Page Url","href":"/api-reference/session/get-user-subscription-update-page-url-1"}]},{"group":"Subscription Update","pages":[{"openapi":"post /merchant/subscription/active_temporarily","title":"Subscription Active Temporarily","href":"/api-reference/subscription-update/subscription-active-temporarily"},{"openapi":"post /merchant/subscription/metadata_update","title":"Update Subscription Metadata","href":"/api-reference/subscription-update/update-subscription-metadata"},{"openapi":"get /merchant/subscription/pending_update_detail","title":"Subscription Pending Update Detail","href":"/api-reference/subscription-update/subscription-pending-update-detail"},{"openapi":"get /merchant/subscription/pending_update_list","title":"Get Subscription Pending Update List","href":"/api-reference/subscription-update/get-subscription-pending-update-list"},{"openapi":"post /merchant/subscription/pending_update_list","title":"Get Subscription Pending Update List","href":"/api-reference/subscription-update/get-subscription-pending-update-list-1"},{"openapi":"post /merchant/subscription/renew","title":"Renew Subscription","href":"/api-reference/subscription-update/renew-subscription"},{"openapi":"post /merchant/subscription/renew_preview","title":"Renew Subscription Preview","href":"/api-reference/subscription-update/renew-subscription-preview"},{"openapi":"post /merchant/subscription/update_preview","title":"Update Subscription Preview","href":"/api-reference/subscription-update/update-subscription-preview"},{"openapi":"post /merchant/subscription/update_submit","title":"Update Subscription","href":"/api-reference/subscription-update/update-subscription"}]},{"group":"Subscription","pages":[{"openapi":"post /merchant/subscription/add_new_trial_start","title":"Append Subscription TrialEnd","href":"/api-reference/subscription/append-subscription-trialend"},{"openapi":"post /merchant/subscription/apply_subscription_next_invoice","title":"Apply Discount Or Premo Credit To Next Invoice","href":"/api-reference/subscription/apply-discount-or-premo-credit-to-next-invoice"},{"openapi":"post /merchant/subscription/cancel","title":"Cancel Subscription Immediately","href":"/api-reference/subscription/cancel-subscription-immediately"},{"openapi":"post /merchant/subscription/cancel_at_period_end","title":"Cancel Subscription At Period End","href":"/api-reference/subscription/cancel-subscription-at-period-end"},{"openapi":"post /merchant/subscription/cancel_last_cancel_at_period_end","title":"Cancel Last Cancel Subscription At Period End","href":"/api-reference/subscription/cancel-last-cancel-subscription-at-period-end"},{"openapi":"post /merchant/subscription/change_currency","title":"Change Subscription Currency","href":"/api-reference/subscription/change-subscription-currency"},{"openapi":"post /merchant/subscription/change_due_day","title":"Change Subscription Due Day","href":"/api-reference/subscription/change-subscription-due-day"},{"openapi":"post /merchant/subscription/change_gateway","title":"Change Subscription Gateway","href":"/api-reference/subscription/change-subscription-gateway"},{"openapi":"post /merchant/subscription/create_preview","title":"Create Subscription Preview","href":"/api-reference/subscription/create-subscription-preview"},{"openapi":"post /merchant/subscription/create_submit","title":"Create Subscription","href":"/api-reference/subscription/create-subscription"},{"openapi":"get /merchant/subscription/detail","title":"Subscription Detail","href":"/api-reference/subscription/subscription-detail"},{"openapi":"post /merchant/subscription/detail","title":"Subscription Detail","href":"/api-reference/subscription/subscription-detail-1"},{"openapi":"get /merchant/subscription/list","title":"Get Subscription List","href":"/api-reference/subscription/get-subscription-list"},{"openapi":"post /merchant/subscription/list","title":"Get Subscription List","href":"/api-reference/subscription/get-subscription-list-1"},{"openapi":"get /merchant/subscription/preview_subscription_next_invoice","title":"Subscription Next Invoice Preview","href":"/api-reference/subscription/subscription-next-invoice-preview"},{"openapi":"get /merchant/subscription/user_pending_crypto_subscription_detail","title":"User Pending Crypto Subscription Detail","href":"/api-reference/subscription/user-pending-crypto-subscription-detail"},{"openapi":"post /merchant/subscription/user_pending_crypto_subscription_detail","title":"User Pending Crypto Subscription Detail","href":"/api-reference/subscription/user-pending-crypto-subscription-detail-1"},{"openapi":"get /merchant/subscription/user_subscription_detail","title":"User Subscription Detail","href":"/api-reference/subscription/user-subscription-detail"},{"openapi":"post /merchant/subscription/user_subscription_detail","title":"User Subscription Detail","href":"/api-reference/subscription/user-subscription-detail-1"}]},{"group":"Subscription Note","pages":[{"openapi":"get /merchant/subscription/admin_note_list","title":"Get Subscription Note List","href":"/api-reference/subscription-note/get-subscription-note-list"},{"openapi":"post /merchant/subscription/admin_note_list","title":"Get Subscription Note List","href":"/api-reference/subscription-note/get-subscription-note-list-1"},{"openapi":"post /merchant/subscription/new_admin_note","title":"New Subscription Note","href":"/api-reference/subscription-note/new-subscription-note"}]},{"group":"Subscription Config","pages":[{"openapi":"get /merchant/subscription/config","title":"Subscription Config","href":"/api-reference/subscription-config/subscription-config"},{"openapi":"post /merchant/subscription/config/update","title":"Update Merchant Subscription Config","href":"/api-reference/subscription-config/update-merchant-subscription-config"}]},{"group":"Subscription Payment","pages":[{"openapi":"post /merchant/subscription/new_onetime_addon_payment","title":"New Subscription Onetime Addon Payment","href":"/api-reference/subscription-payment/new-subscription-onetime-addon-payment"},{"openapi":"post /merchant/subscription/new_onetime_addon_preview","title":"New Subscription Onetime Addon Preview","href":"/api-reference/subscription-payment/new-subscription-onetime-addon-preview"},{"openapi":"get /merchant/subscription/onetime_addon_purchase_list","title":"Get Subscription Onetime Addon Purchase History List","href":"/api-reference/subscription-payment/get-subscription-onetime-addon-purchase-history-list"},{"openapi":"post /merchant/subscription/payment/new","title":"New Subscription Payment","href":"/api-reference/subscription-payment/new-subscription-payment"}]},{"group":"Subscription Timeline","pages":[{"openapi":"get /merchant/subscription/timeline_list","title":"Get Subscription TimeLine List","href":"/api-reference/subscription-timeline/get-subscription-timeline-list"},{"openapi":"post /merchant/subscription/timeline_list","title":"Get Subscription TimeLine List","href":"/api-reference/subscription-timeline/get-subscription-timeline-list-1"}]},{"group":"User","pages":[{"openapi":"get /merchant/user/admin_note_list","title":"Get User Admin Note List","href":"/api-reference/user/get-user-admin-note-list"},{"openapi":"post /merchant/user/admin_note_list","title":"Get User Admin Note List","href":"/api-reference/user/get-user-admin-note-list-1"},{"openapi":"post /merchant/user/change_email","title":"Change User Email","href":"/api-reference/user/change-user-email"},{"openapi":"post /merchant/user/change_gateway","title":"Change User Default Gateway","href":"/api-reference/user/change-user-default-gateway"},{"openapi":"post /merchant/user/clear_auto_charge_method","title":"Clear AutoCharge Method","href":"/api-reference/user/clear-autocharge-method"},{"openapi":"get /merchant/user/count","title":"User Count","href":"/api-reference/user/user-count"},{"openapi":"post /merchant/user/delete","title":"Delete User","href":"/api-reference/user/delete-user"},{"openapi":"get /merchant/user/get","title":"Get User Profile","href":"/api-reference/user/get-user-profile"},{"openapi":"get /merchant/user/list","title":"User List","href":"/api-reference/user/user-list"},{"openapi":"post /merchant/user/list","title":"User List","href":"/api-reference/user/user-list-1"},{"openapi":"post /merchant/user/new","title":"New User","href":"/api-reference/user/new-user"},{"openapi":"post /merchant/user/new_admin_note","title":"New Admin Note","href":"/api-reference/user/new-admin-note"},{"openapi":"post /merchant/user/resume_user","title":"Resume User","href":"/api-reference/user/resume-user"},{"openapi":"get /merchant/user/search","title":"User Search","href":"/api-reference/user/user-search"},{"openapi":"post /merchant/user/search","title":"User Search","href":"/api-reference/user/user-search-1"},{"openapi":"post /merchant/user/suspend_user","title":"Suspend User","href":"/api-reference/user/suspend-user"},{"openapi":"post /merchant/user/update","title":"Update User Profile","href":"/api-reference/user/update-user-profile"}]},{"group":"Vat Gateway","pages":[{"openapi":"get /merchant/vat/country_list","title":"Get Vat Country List","href":"/api-reference/vat-gateway/get-vat-country-list"},{"openapi":"post /merchant/vat/country_list","title":"Get Vat Country List","href":"/api-reference/vat-gateway/get-vat-country-list-1"},{"openapi":"post /merchant/vat/init_default_gateway","title":"Init Default Vat Gateway","href":"/api-reference/vat-gateway/init-default-vat-gateway"},{"openapi":"post /merchant/vat/setup_gateway","title":"Vat Gateway Setup","href":"/api-reference/vat-gateway/vat-gateway-setup"},{"openapi":"post /merchant/vat/setup_global_us_vat_config","title":"US Vat Config Setup","href":"/api-reference/vat-gateway/us-vat-config-setup"},{"openapi":"post /merchant/vat/setup_us_vat_gateway","title":"US Vat Gateway Setup","href":"/api-reference/vat-gateway/us-vat-gateway-setup"},{"openapi":"get /merchant/vat/us_vat_category_list","title":"Get US Vat Category List","href":"/api-reference/vat-gateway/get-us-vat-category-list"},{"openapi":"post /merchant/vat/us_vat_validate_address","title":"Validate US Vat Address","href":"/api-reference/vat-gateway/validate-us-vat-address"},{"openapi":"post /merchant/vat/vat_number_validate","title":"Vat Number Validation","href":"/api-reference/vat-gateway/vat-number-validation"},{"openapi":"post /merchant/vat/vat_number_validate_history","title":"Vat Number Validation History","href":"/api-reference/vat-gateway/vat-number-validation-history"},{"openapi":"post /merchant/vat/vat_number_validate_history_activate","title":"Vat Number Validation History Activate","href":"/api-reference/vat-gateway/vat-number-validation-history-activate"},{"openapi":"post /merchant/vat/vat_number_validate_history_deactivate","title":"Vat Number Validation History Deactivate","href":"/api-reference/vat-gateway/vat-number-validation-history-deactivate"}]},{"group":"Webhook","pages":[{"openapi":"get /merchant/vat/us_vat_upload_history_list","title":"Get US VAT Upload History List","href":"/api-reference/webhook/get-us-vat-upload-history-list"},{"openapi":"post /merchant/webhook/delete_endpoint","title":"Delete Webhook Endpoint","href":"/api-reference/webhook/delete-webhook-endpoint"},{"openapi":"get /merchant/webhook/endpoint_list","title":"Get Webhook Endpoint list","href":"/api-reference/webhook/get-webhook-endpoint-list"},{"openapi":"get /merchant/webhook/endpoint_log_list","title":"Get Webhook Endpoint Log List","href":"/api-reference/webhook/get-webhook-endpoint-log-list"},{"openapi":"get /merchant/webhook/event_list","title":"Webhook Event List","href":"/api-reference/webhook/webhook-event-list"},{"openapi":"get /merchant/webhook/get_webhook_secret","title":"Get Webhook Secret","href":"/api-reference/webhook/get-webhook-secret"},{"openapi":"post /merchant/webhook/new_endpoint","title":"New Webhook Endpoint","href":"/api-reference/webhook/new-webhook-endpoint"},{"openapi":"post /merchant/webhook/remove_webhook_zapier_connect","title":"Remove Webhook Zapier Connnect","href":"/api-reference/webhook/remove-webhook-zapier-connnect"},{"openapi":"post /merchant/webhook/resend","title":"Resent Webhook","href":"/api-reference/webhook/resent-webhook"},{"openapi":"post /merchant/webhook/update_endpoint","title":"Update Webhook Endpoint","href":"/api-reference/webhook/update-webhook-endpoint"},{"openapi":"post /merchant/webhook/webhook_zapier_connect_url","title":"Get Webhook Zapier Connect Url","href":"/api-reference/webhook/get-webhook-zapier-connect-url"}]}]},{"group":"Migration and Deployment","pages":[{"title":"Transaction Data Storage","href":"/documentation/business-integration/data-storage"},{"title":"Data migration guide","href":"/documentation/business-integration/data-migration-guide"},{"group":"Invoice Import","pages":[{"openapi":"post /merchant/invoice/history_invoice_import","title":"History Invoice Import (supports override)","href":"/api-reference/invoice-import/history-invoice-import-supports-override"},{"openapi":"post /merchant/invoice/history_invoice_import/delete","title":"Delete imported history invoice","href":"/api-reference/invoice-import/delete-imported-history-invoice"}]},{"group":"Subscription Import","pages":[{"openapi":"post /merchant/subscription/active_subscription_import","title":"Active Subscription Import(allows repetition imports)","href":"/api-reference/subscription-import/active-subscription-importallows-repetition-imports"},{"openapi":"post /merchant/subscription/history_subscription_import","title":"History Subscription Import(Allows repetition imports)","href":"/api-reference/subscription-import/history-subscription-importallows-repetition-imports"}]}]}]}]},"title":"New Discount Code - UniBee Documentation","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}