{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Clink Documentation","colors":{"primary":"#FF9472"},"logo":{"light":"https://mintcdn.com/clink/SmNnnZK50PsVdBCU/logo/light_new.svg?fit=max\u0026auto=format\u0026n=SmNnnZK50PsVdBCU\u0026q=85\u0026s=9956e279765b6e968dcc19748a3ee896","dark":"https://mintcdn.com/clink/SmNnnZK50PsVdBCU/logo/dark_new.svg?fit=max\u0026auto=format\u0026n=SmNnnZK50PsVdBCU\u0026q=85\u0026s=e447d25bef8f25b8da7fbbe78e04ef92"},"favicon":"https://mintcdn.com/clink/peBNaRlFWIQS8vOQ/favicon.svg?fit=max\u0026auto=format\u0026n=peBNaRlFWIQS8vOQ\u0026q=85\u0026s=c6eb5684668bd21139f01cb68bd69932","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","java","python","javascript"]}},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://uat-dashboard.clinkbill.com","label":"Sandbox"},{"href":"mailto:contact@clinkbill.com","label":"Support"},{"href":"https://github.com/clinkbillcom/clink-integ-skills","label":"Integration-skill"},{"href":"https://docs.clinkbill.com/llms.txt","label":"llms.txt"},{"href":"https://docs.clinkbill.com/llms-full.txt","label":"llms-full.txt"}],"primary":{"type":"button","label":"Dashboard","href":"https://dashboard.clinkbill.com"}},"footer":{"socials":{"x":"https://x.com/clink_bill","linkedin":"https://linkedin.com/company/clinkbill"}},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":""},{"language":"cn","href":"cn"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"clink","hasAudioNarration":false,"actualSubdomain":"clink","customDomains":["docs.clinkbill.com"],"gitSource":{"type":"github","owner":"pppatrickkkk","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af4694a8aa693fcd6be42fd","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"en","tag":"Documentation","count":41},{"language":"cn","tag":"知识库","count":41},{"language":"default","tag":"API Reference","count":36},{"language":"en","tag":"API Reference","count":35},{"language":"cn","tag":"API 文档","count":35},{"language":"en","tag":"Guides","count":14},{"language":"cn","tag":"介绍","count":14},{"language":"en","tag":"Agent Solutions","count":11},{"language":"cn","tag":"Agent 解决方案","count":11},{"language":"default","tag":"Webhook Endpoint Management","count":10},{"language":"default","tag":"Webhooks","count":7},{"language":"en","tag":"Core Resource","count":6},{"language":"cn","tag":"资源说明","count":6},{"language":"en","tag":"Integration","count":5},{"language":"en","tag":"Promotion Code","count":5},{"language":"en","tag":"Clink MCP","count":5},{"language":"en","tag":"Get Started","count":5},{"language":"en","tag":"Choose your integration","count":5},{"language":"default","tag":"Test Clock","count":5},{"language":"cn","tag":"接入","count":5},{"language":"cn","tag":"Promotion Code","count":5},{"language":"cn","tag":"Clink MCP","count":5},{"language":"cn","tag":"开始使用","count":5},{"language":"cn","tag":"选择接入方案","count":5},{"language":"default","tag":"Subscription","count":3},{"language":"default","tag":"Checkout Session","count":3},{"language":"default","tag":"Agent Payment Session","count":2},{"language":"default","tag":"Price","count":2},{"language":"default","tag":"Product","count":2},{"language":"default","tag":"Order","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/create-coupon","slug":"/api-reference/endpoint/create-coupon","pageMetadata":{"title":"Create Coupon","openapi":"POST /coupon","description":"Create a coupon and optionally create promotion codes for it.","href":"/api-reference/endpoint/create-coupon"},"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 coupon and optionally create promotion codes for it.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Coupon","openapi":"POST /coupon","description":"Create a coupon and optionally create promotion codes for it.","href":"/api-reference/endpoint/create-coupon"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create Coupon","description":"Create a coupon and optionally create promotion codes for it.","operationId":"createCoupon","requestBody":"ea33a307-28f2-4b93-aaf9-11e3272eef90","parameters":["56865ca6-b32f-45a6-9de8-d96b57ae7d94"],"responses":{"200":"2b6a891a-0dbb-4391-8616-5705f3518588","401":"18d3f9df-d283-43d1-8414-6cfb68963e4a"},"method":"post","type":"path","servers":["7ce95461-a04d-43b4-a136-137963aec4b4"],"security":["bc97af99-5993-453f-b36b-014447336e1a"],"path":"/coupon","baseUrlOptions":["https://uat-api.clinkbill.com/api/"],"title":"Create Coupon","codeSamples":[],"requestExampleLanguages":["bash","java","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"56865ca6-b32f-45a6-9de8-d96b57ae7d94":{"name":"X-Timestamp","in":"header","required":true,"description":"Current timestamp in milliseconds since Unix epoch (required for request signing)","schema":{"type":"string","example":"1783513683000","isRequired":true,"description":"Current timestamp in milliseconds since Unix epoch (required for request signing)","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Parameters required to create a coupon","required":["couponName","discountType","applyType","durationType"],"properties":{"couponName":{"type":"string","maxLength":40,"description":"Coupon name","isRequired":true,"uniqueKey":"couponName","typeLabel":"string"},"discountType":{"type":"string","description":"Discount type","enum":["percentage","fixed_amount"],"isRequired":true,"uniqueKey":"discountType","typeLabel":"enum\u003cstring>"},"applyType":{"type":"string","description":"Coupon applicability type","enum":["none","product","price"],"isRequired":true,"uniqueKey":"applyType","typeLabel":"enum\u003cstring>"},"durationType":{"type":"string","description":"Discount duration type","enum":["once","repeating","forever"],"isRequired":true,"uniqueKey":"durationType","typeLabel":"enum\u003cstring>"},"percentage":{"type":"number","minimum":0,"maximum":100,"description":"Percentage discount. Used when discountType is percentage.","uniqueKey":"percentage","typeLabel":"number"},"fixedAmounts":{"type":"object","description":"Fixed discount amount by currency. Used when discountType is fixed_amount.","additionalProperties":{"type":"number","uniqueKey":"fixedAmounts.additionalProperties","typeLabel":"number"},"example":{"USD":5,"EUR":4.5},"uniqueKey":"fixedAmounts","typeLabel":"object"},"applicableProducts":{"type":"array","description":"Product IDs this coupon applies to","items":{"type":"string","uniqueKey":"applicableProducts.items.[INDEX]","typeLabel":"string"},"uniqueKey":"applicableProducts","typeLabel":"string[]"},"applicablePrices":{"type":"object","description":"Price IDs this coupon applies to, grouped by product ID","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"applicablePrices.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"applicablePrices.additionalProperties","typeLabel":"string[]"},"uniqueKey":"applicablePrices","typeLabel":"object"},"durationMonths":{"type":"integer","format":"int32","description":"Number of billing periods for repeating coupons","uniqueKey":"durationMonths","typeLabel":"integer\u003cint32>"},"maxRedemptionCount":{"type":"integer","format":"int32","description":"Maximum total redemptions for this coupon","uniqueKey":"maxRedemptionCount","typeLabel":"integer\u003cint32>"},"validPeriodStart":{"type":"integer","format":"int64","description":"Coupon validity start time as a 13-digit Unix timestamp in milliseconds","example":1780660800000,"uniqueKey":"validPeriodStart","typeLabel":"integer\u003cint64>"},"validPeriodEnd":{"type":"integer","format":"int64","description":"Coupon validity end time as a 13-digit Unix timestamp in milliseconds","example":1780660800000,"uniqueKey":"validPeriodEnd","typeLabel":"integer\u003cint64>"},"promotionCodes":{"type":"array","maxItems":20,"description":"Promotion codes to create together with the coupon","items":{"type":"object","description":"Parameters required to create a promotion code","properties":{"code":{"type":"string","description":"Customer-facing promotion code. If omitted, a code can be generated by the platform.","pattern":"^[a-zA-Z0-9]{1,32}$","example":"SUMMER2026","uniqueKey":"promotionCodes.items.[INDEX].code","typeLabel":"string"},"firstOrderOnly":{"type":"boolean","description":"Whether this promotion code is limited to first orders only","uniqueKey":"promotionCodes.items.[INDEX].firstOrderOnly","typeLabel":"boolean"},"restrictedCustomerIds":{"type":"array","description":"Customer IDs allowed to redeem this promotion code. Empty means unrestricted.","items":{"type":"string","uniqueKey":"promotionCodes.items.[INDEX].restrictedCustomerIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"promotionCodes.items.[INDEX].restrictedCustomerIds","typeLabel":"string[]"},"minimumSpend":{"type":"object","description":"Minimum spend by currency. Key is an ISO currency code.","additionalProperties":{"type":"number","uniqueKey":"promotionCodes.items.[INDEX].minimumSpend.additionalProperties","typeLabel":"number"},"example":{"USD":10,"EUR":9},"uniqueKey":"promotionCodes.items.[INDEX].minimumSpend","typeLabel":"object"},"perCustomerRedemptionLimit":{"type":"integer","format":"int32","description":"Redemption limit per customer","uniqueKey":"promotionCodes.items.[INDEX].perCustomerRedemptionLimit","typeLabel":"integer\u003cint32>"},"maxRedemptionLimit":{"type":"integer","format":"int32","description":"Maximum total redemptions for this promotion code","uniqueKey":"promotionCodes.items.[INDEX].maxRedemptionLimit","typeLabel":"integer\u003cint32>"},"validPeriodStart":{"type":"integer","format":"int64","description":"Promotion code validity start time as a 13-digit Unix timestamp in milliseconds","example":1780660800000,"uniqueKey":"promotionCodes.items.[INDEX].validPeriodStart","typeLabel":"integer\u003cint64>"},"validPeriodEnd":{"type":"integer","format":"int64","description":"Promotion code validity end time as a 13-digit Unix timestamp in milliseconds","example":1780660800000,"uniqueKey":"promotionCodes.items.[INDEX].validPeriodEnd","typeLabel":"integer\u003cint64>"}},"uniqueKey":"promotionCodes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"promotionCodes","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"percentageCoupon":{"title":"percentageCoupon","value":{"couponName":"Summer Sale","discountType":"percentage","percentage":20,"applyType":"product","applicableProducts":["prd_xxxxx"],"durationType":"once","maxRedemptionCount":100,"validPeriodStart":1780660800000,"validPeriodEnd":1783252800000,"promotionCodes":[{"code":"SUMMER2026","maxRedemptionLimit":100}]}},"fixedAmountCoupon":{"title":"fixedAmountCoupon","value":{"couponName":"USD 5 Off","discountType":"fixed_amount","fixedAmounts":{"USD":5},"applyType":"none","durationType":"forever"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"2b6a891a-0dbb-4391-8616-5705f3518588":{"description":"Coupon created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Response status code, 200 when success","format":"int32","example":200,"uniqueKey":"code","typeLabel":"integer\u003cint32>"},"msg":{"type":"string","example":"success","description":"Brief description of what happened, 'success' when happy case","uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","properties":{"couponId":{"type":"string","description":"Unique identifier of the coupon","uniqueKey":"data.couponId","typeLabel":"string"},"couponName":{"type":"string","description":"Coupon name","uniqueKey":"data.couponName","typeLabel":"string"},"discountType":{"type":"string","description":"Discount type","enum":["percentage","fixed_amount"],"uniqueKey":"data.discountType","typeLabel":"enum\u003cstring>"},"percentage":{"type":"number","description":"Percentage discount","uniqueKey":"data.percentage","typeLabel":"number"},"fixedAmounts":{"type":"object","description":"Fixed discount amount by currency","additionalProperties":{"type":"number","uniqueKey":"data.fixedAmounts.additionalProperties","typeLabel":"number"},"uniqueKey":"data.fixedAmounts","typeLabel":"object"},"durationType":{"type":"string","description":"Discount duration type","enum":["once","repeating","forever"],"uniqueKey":"data.durationType","typeLabel":"enum\u003cstring>"},"durationMonths":{"type":"integer","format":"int32","description":"Number of billing periods for repeating coupons","uniqueKey":"data.durationMonths","typeLabel":"integer\u003cint32>"},"maxRedemptionCount":{"type":"integer","format":"int32","description":"Maximum total redemptions for this coupon","uniqueKey":"data.maxRedemptionCount","typeLabel":"integer\u003cint32>"},"redeemedCount":{"type":"integer","format":"int32","description":"Number of times this coupon has been redeemed","uniqueKey":"data.redeemedCount","typeLabel":"integer\u003cint32>"},"validPeriodEnd":{"type":"integer","format":"int64","description":"Coupon validity end time as a 13-digit Unix timestamp in milliseconds","example":1754819711382,"uniqueKey":"data.validPeriodEnd","typeLabel":"integer\u003cint64>"},"mirroring":{"type":"boolean","description":"Whether this record is mirrored data","uniqueKey":"data.mirroring","typeLabel":"boolean"},"terms":{"type":"string","description":"Human-readable coupon terms","uniqueKey":"data.terms","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"description":"Body of the response message","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"couponId":"\u003cstring>","couponName":"\u003cstring>","discountType":"percentage","percentage":123,"fixedAmounts":{},"durationType":"once","durationMonths":123,"maxRedemptionCount":123,"redeemedCount":123,"validPeriodEnd":1754819711382,"mirroring":true,"terms":"\u003cstring>"}}}},"exampleType":"generated"},"*/*":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Response status code, 200 when success","format":"int32","example":200,"uniqueKey":"code","typeLabel":"integer\u003cint32>"},"msg":{"type":"string","example":"success","description":"Brief description of what happened, 'success' when happy case","uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","properties":{"couponId":{"type":"string","description":"Unique identifier of the coupon","uniqueKey":"data.couponId","typeLabel":"string"},"couponName":{"type":"string","description":"Coupon name","uniqueKey":"data.couponName","typeLabel":"string"},"discountType":{"type":"string","description":"Discount type","enum":["percentage","fixed_amount"],"uniqueKey":"data.discountType","typeLabel":"enum\u003cstring>"},"percentage":{"type":"number","description":"Percentage discount","uniqueKey":"data.percentage","typeLabel":"number"},"fixedAmounts":{"type":"object","description":"Fixed discount amount by currency","additionalProperties":{"type":"number","uniqueKey":"data.fixedAmounts.additionalProperties","typeLabel":"number"},"uniqueKey":"data.fixedAmounts","typeLabel":"object"},"durationType":{"type":"string","description":"Discount duration type","enum":["once","repeating","forever"],"uniqueKey":"data.durationType","typeLabel":"enum\u003cstring>"},"durationMonths":{"type":"integer","format":"int32","description":"Number of billing periods for repeating coupons","uniqueKey":"data.durationMonths","typeLabel":"integer\u003cint32>"},"maxRedemptionCount":{"type":"integer","format":"int32","description":"Maximum total redemptions for this coupon","uniqueKey":"data.maxRedemptionCount","typeLabel":"integer\u003cint32>"},"redeemedCount":{"type":"integer","format":"int32","description":"Number of times this coupon has been redeemed","uniqueKey":"data.redeemedCount","typeLabel":"integer\u003cint32>"},"validPeriodEnd":{"type":"integer","format":"int64","description":"Coupon validity end time as a 13-digit Unix timestamp in milliseconds","example":1754819711382,"uniqueKey":"data.validPeriodEnd","typeLabel":"integer\u003cint64>"},"mirroring":{"type":"boolean","description":"Whether this record is mirrored data","uniqueKey":"data.mirroring","typeLabel":"boolean"},"terms":{"type":"string","description":"Human-readable coupon terms","uniqueKey":"data.terms","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"description":"Body of the response message","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"couponId":"\u003cstring>","couponName":"\u003cstring>","discountType":"percentage","percentage":123,"fixedAmounts":{},"durationType":"once","durationMonths":123,"maxRedemptionCount":123,"redeemedCount":123,"validPeriodEnd":1754819711382,"mirroring":true,"terms":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"18d3f9df-d283-43d1-8414-6cfb68963e4a":{"description":"Unauthorized","content":{"*/*":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"bc97af99-5993-453f-b36b-014447336e1a":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your secret API key obtained from the Clink dashboard (Developers section)","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"7ce95461-a04d-43b4-a136-137963aec4b4":{"url":"https://uat-api.clinkbill.com/api/"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-KEY","description":"Your secret API key obtained from the Clink dashboard (Developers section)","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-API-KEY","type":"string","description":"Your secret API key obtained from the Clink dashboard (Developers section)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-KEY"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"clink","siteName":"Clink Documentation","title":"Create Coupon - Clink Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoint/create-coupon","matchLevel":0},"cn":{"href":"/cn/api-reference/endpoint/create-coupon","matchLevel":1}}},"lastModified":"2026-06-05T14:13:47.292Z","originalFileLocation":"api-reference/endpoint/create-coupon.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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 coupon and optionally create promotion codes for it.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Clink 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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_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/clink/ur0VwNJVZSsj7vK4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Coupon - Clink Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a coupon and optionally create promotion codes for it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Clink Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://clink.mintlify.site/_mintlify/api/og/v2?division=Coupon\u0026amp;title=Create+Coupon\u0026amp;description=Create+a+coupon+and+optionally+create+promotion+codes+for+it.\u0026amp;theme=be5a6376d6c12292dd7b4d25\u0026amp;signature=d763822764f546b59e6fb4b137741fc513bee359794fc62f1d9526d9c9b89aea\">\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=\"Create Coupon - Clink Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a coupon and optionally create promotion codes for it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://clink.mintlify.site/_mintlify/api/og/v2?division=Coupon\u0026amp;title=Create+Coupon\u0026amp;description=Create+a+coupon+and+optionally+create+promotion+codes+for+it.\u0026amp;theme=be5a6376d6c12292dd7b4d25\u0026amp;signature=d763822764f546b59e6fb4b137741fc513bee359794fc62f1d9526d9c9b89aea\">\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/clink/ur0VwNJVZSsj7vK4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Clink Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF9472\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/create-coupon.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.clinkbill.com/cn/api-reference/endpoint/create-coupon\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.clinkbill.com/#organization\",\"name\":\"Clink Documentation\",\"url\":\"https://docs.clinkbill.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/clink/SmNnnZK50PsVdBCU/logo/light_new.svg?fit=max\u0026auto=format\u0026n=SmNnnZK50PsVdBCU\u0026q=85\u0026s=9956e279765b6e968dcc19748a3ee896\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.clinkbill.com#website\",\"name\":\"Clink Documentation\",\"url\":\"https://docs.clinkbill.com\",\"publisher\":{\"@id\":\"https://docs.clinkbill.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon#webpage\",\"url\":\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon\",\"name\":\"Create Coupon\",\"description\":\"Create a coupon and optionally create promotion codes for it.\",\"dateModified\":\"2026-06-05T14:13:47.292Z\",\"isPartOf\":{\"@id\":\"https://docs.clinkbill.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Clink Documentation\",\"item\":\"https://docs.clinkbill.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Coupon\",\"item\":\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon#apireference\",\"headline\":\"Create Coupon\",\"name\":\"Create Coupon\",\"description\":\"Create a coupon and optionally create promotion codes for it.\",\"url\":\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon\",\"mainEntityOfPage\":{\"@id\":\"https://docs.clinkbill.com/api-reference/endpoint/create-coupon#webpage\"},\"dateModified\":\"2026-06-05T14:13:47.292Z\",\"publisher\":{\"@id\":\"https://docs.clinkbill.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.clinkbill.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Clink Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Clink Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/create-coupon.md","siteName":"Clink Documentation","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","icon":"chevrons-left-right-ellipsis","href":"/api-reference/introduction"},{"title":"TypeScript SDK","icon":"npm","href":"/api-reference/SDK"},{"title":"JavaScript SDK","icon":"code","href":"/api-reference/javascript_sdk"},{"title":"Clink CLI","icon":"terminal","href":"/api-reference/clink_cli"}]},{"group":"Clink MCP","pages":[{"title":"Wallet MCP tools","icon":"wallet","href":"/api-reference/mcp/wallet"},{"title":"Browser Pay tools","icon":"app-window","href":"/api-reference/mcp/browser_pay"},{"title":"Operations and recovery","icon":"refresh-cw","href":"/api-reference/mcp/operations"},{"title":"Catalog and UCP Checkout","icon":"shopping-cart","href":"/api-reference/mcp/commerce"},{"title":"Agent Platform MCP Login","icon":"key-round","href":"/api-reference/mcp/agent_platform_login"}]},{"group":"Agent Portal","icon":"layout-dashboard","pages":[{"title":"Agent Portal","sidebarTitle":"Agent Portal","icon":"layout-dashboard","href":"/api-reference/agent-portal/overview"},{"title":"Portal token","icon":"key-round","href":"/api-reference/agent-portal/portal_token"},{"title":"Portal APIs","icon":"database","href":"/api-reference/agent-portal/portal_apis"}]},{"group":"Checkout Session","pages":[{"title":"Create Checkout Session","openapi":"POST /checkout/session","href":"/api-reference/endpoint/create-checkout-session"},{"title":"Get Checkout Session","openapi":"GET /checkout/session/{id}","href":"/api-reference/endpoint/get-checkout-session"},{"title":"Expire Checkout Session","openapi":"POST /checkout/session/{id}/expire","href":"/api-reference/endpoint/expire-checkout-session"}]},{"group":"Payment","pages":[{"title":"Create Payment","openapi":"POST /payment","href":"/api-reference/endpoint/create-payment"},{"title":"Refresh Wallet QR Code","openapi":"POST /payment/{orderId}/qrcode/refresh","href":"/api-reference/endpoint/refresh-wallet-qrcode"}]},{"group":"Payment Instrument","pages":[{"title":"Create Payment Instrument","openapi":"POST /payment-instrument","href":"/api-reference/endpoint/create-payment-instrument"}]},{"group":"Order","pages":[{"title":"List Orders","openapi":"GET /order","href":"/api-reference/endpoint/list-orders"},{"title":"Get Order","openapi":"GET /order/{id}","href":"/api-reference/endpoint/get-order"}]},{"group":"Agent Payment Session","pages":[{"title":"Create Agent Payment Session","openapi":"POST /order/payment-session","href":"/api-reference/endpoint/create-agent-payment-session"},{"title":"Get Agent Payment Session","openapi":"GET /order/payment-session/{sessionId}","href":"/api-reference/endpoint/get-agent-payment-session"}]},{"group":"Refund","pages":[{"title":"Create Refund","openapi":"POST /refund","href":"/api-reference/endpoint/create-refund"},{"title":"Get Refund","openapi":"GET /refund/{id}","href":"/api-reference/endpoint/get-refund"}]},{"group":"Product","pages":[{"title":"Upload Product Image","openapi":"POST /product/image/upload","href":"/api-reference/endpoint/upload-product-image"},{"title":"Create Product","openapi":"POST /product","href":"/api-reference/endpoint/create-product"},{"title":"Get Product","openapi":"GET /product/{id}","href":"/api-reference/endpoint/get-product"},{"title":"Get Product List","openapi":"GET /product","href":"/api-reference/endpoint/get-product-list"}]},{"group":"Price","pages":[{"title":"Create Price","openapi":"POST /price","href":"/api-reference/endpoint/create-price"},{"title":"Get Price","openapi":"GET /price/{id}","href":"/api-reference/endpoint/get-price"},{"title":"Get Price List","openapi":"GET /price","href":"/api-reference/endpoint/get-price-list"},{"title":"Update Price","openapi":"PUT /price/{id}","description":"Update a price under your current merchant account based on the price ID.","href":"/api-reference/endpoint/update-price"}]},{"group":"Coupon","pages":[{"title":"Create Coupon","openapi":"POST /coupon","href":"/api-reference/endpoint/create-coupon"},{"title":"List Coupons","openapi":"GET /coupon","description":"List coupons under your current merchant account with optional filters.","href":"/api-reference/endpoint/list-coupons"},{"title":"Get Coupon","openapi":"GET /coupon/{couponId}","href":"/api-reference/endpoint/get-coupon"},{"title":"Rename Coupon","openapi":"PUT /coupon/{couponId}/name","href":"/api-reference/endpoint/rename-coupon"}]},{"group":"Promotion Code","pages":[{"title":"Create Promotion Code","openapi":"POST /promotion-code/{id}","href":"/api-reference/endpoint/create-promotion-code"},{"title":"Get Promotion Code","openapi":"GET /promotion-code/{id}","href":"/api-reference/endpoint/get-promotion-code"},{"title":"List Promotion Codes by Coupon","openapi":"GET /promotion-code/coupon/{couponId}","href":"/api-reference/endpoint/list-promotion-codes-by-coupon"},{"title":"Activate Promotion Code","openapi":"PUT /promotion-code/{promotionCodeId}/active","href":"/api-reference/endpoint/activate-promotion-code"},{"title":"Deactivate Promotion Code","openapi":"PUT /promotion-code/{promotionCodeId}/deactivate","href":"/api-reference/endpoint/deactivate-promotion-code"}]},{"group":"Subscription","pages":[{"title":"Create Subscription","openapi":"POST /subscription","href":"/api-reference/endpoint/create-subscription"},{"title":"Get Subscription","openapi":"GET /subscription/{id}","href":"/api-reference/endpoint/get-subscription"},{"title":"Preview Subscription Update","openapi":"POST /subscription/{id}/update/preview","href":"/api-reference/endpoint/preview-subscription-update"},{"title":"Confirm Subscription Update","openapi":"POST /subscription/{id}/update/confirm","href":"/api-reference/endpoint/confirm-subscription-update"},{"title":"Cancel Subscription Update","openapi":"POST /subscription/{id}/update/cancel","href":"/api-reference/endpoint/cancel-subscription-update"},{"title":"Cancel Subscription","openapi":"POST /subscription/{id}/cancel","href":"/api-reference/endpoint/cancel-subscription"},{"title":"Get Invoice","openapi":"GET /subscription/invoice/{id}","href":"/api-reference/endpoint/get-invoice"}]},{"group":"Test Clock","pages":[{"title":"List Test Clocks","openapi":"GET /subscription/test-clocks/list","href":"/api-reference/endpoint/list-test-clocks"},{"title":"Create Test Clock","openapi":"POST /subscription/test-clocks","href":"/api-reference/endpoint/create-test-clock"},{"title":"Get Test Clock","openapi":"GET /subscription/test-clocks/{clockId}","href":"/api-reference/endpoint/get-test-clock"},{"title":"Advance Test Clock","openapi":"POST /subscription/test-clocks/{clockId}/advance","href":"/api-reference/endpoint/advance-test-clock"},{"title":"Complete Test Clock","openapi":"POST /subscription/test-clocks/{clockId}/complete","href":"/api-reference/endpoint/complete-test-clock"}]},{"group":"Customer Portal","pages":[{"title":"Customer Portal Session","openapi":"POST /billing/session","href":"/api-reference/endpoint/create-customer-portal"}]},{"group":"Webhook Endpoint Management","pages":[{"title":"List Webhook Events","openapi":"GET /webhook/events","href":"/api-reference/endpoint/list-webhook-events"},{"title":"List Webhook Endpoints","openapi":"GET /webhook/endpoints","href":"/api-reference/endpoint/list-webhook-endpoints"},{"title":"Create Webhook Endpoint","openapi":"POST /webhook/endpoints","href":"/api-reference/endpoint/create-webhook-endpoint"},{"title":"Ensure Webhook Endpoint","openapi":"PUT /webhook/endpoints/ensure","href":"/api-reference/endpoint/ensure-webhook-endpoint"},{"title":"Get Webhook Endpoint","openapi":"GET /webhook/endpoints/{id}","href":"/api-reference/endpoint/get-webhook-endpoint"},{"title":"Update Webhook Endpoint","openapi":"PATCH /webhook/endpoints/{id}","href":"/api-reference/endpoint/update-webhook-endpoint"},{"title":"Enable Webhook Endpoint","openapi":"POST /webhook/endpoints/{id}/enable","href":"/api-reference/endpoint/enable-webhook-endpoint"},{"title":"Disable Webhook Endpoint","openapi":"POST /webhook/endpoints/{id}/disable","href":"/api-reference/endpoint/disable-webhook-endpoint"},{"title":"Rotate Webhook Signing Secret","openapi":"POST /webhook/endpoints/{id}/rotate-secret","href":"/api-reference/endpoint/rotate-webhook-signing-secret"},{"title":"Delete Webhook Endpoint","openapi":"DELETE /webhook/endpoints/{id}","href":"/api-reference/endpoint/delete-webhook-endpoint"}]},{"group":"Webhooks","pages":[{"title":"order","openapi":"WEBHOOK order","href":"/api-reference/webhook/order"},{"title":"refund","openapi":"WEBHOOK refund","href":"/api-reference/webhook/refund"},{"title":"subscription","openapi":"WEBHOOK subscription","href":"/api-reference/webhook/subscription"},{"title":"invoice","openapi":"WEBHOOK invoice","href":"/api-reference/webhook/invoice"},{"title":"session","openapi":"WEBHOOK session","href":"/api-reference/webhook/session"},{"title":"customer.verify","openapi":"WEBHOOK customer.verify","href":"/api-reference/webhook/customer.verify"},{"title":"dispute","openapi":"WEBHOOK dispute","href":"/api-reference/webhook/dispute"}]}]}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/api-reference/endpoint/create-coupon"}]}]},"basePath":"","title":"Create Coupon - Clink Documentation","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}