Authenticate with an API key that belongs to the product’s organization and has Full access or the products:payment_links:write permission (Payment links under Can create and change in the dashboard). Only the Owner and Admin roles can grant it.
id is the ID of a product in your organization, whether it was created through the API or in the dashboard. A product from another organization, or one that doesn’t exist, returns 404.
Each call creates a new price for the product and its payment link, so one product can have several prices.
Send a unique Idempotency-Key header (required; 1–255 ASCII characters from 0x21 to 0x7E, no spaces), the same rule as checkout sessions. The same key with the same body returns the link created the first time (201) and creates nothing new. The same key with a different body, or for another product, returns 409. If the link created with that key was later removed, a retry also returns 409; send a new key.
pricingType is ONE_TIME or SUBSCRIPTION. pricing is a string in major units, such as "9.99". Omit pricing for a flexible “pay what you want” amount; this works for ONE_TIME only, and minAmount and maxAmount are then optional.
A SUBSCRIPTION price needs billingInterval (DAY, MONTH or YEAR). billingIntervalCount is optional and defaults to 1.
successUrl is an absolute HTTPS URL to send the customer to after they pay. If you leave it out, the customer sees the Anyway receipt.
Payments are collected on Anyway’s platform account. Links created through the API are card payment links only; crypto payment links are not available.
Unknown fields are rejected with 400.
Share the returned paymentLinkUrl as provided. The response has the same shape as an item from Get product payment links.
Checkout sessions can’t sell a flexible amount. To let the customer choose what to pay, create a flexible one-time payment link here instead.
Status
Code
Meaning
400
Validation failed: bad currency, a subscription without an interval, a flexible subscription, an amount of 0 or less, a successUrl that isn’t an absolute HTTPS URL, an unknown field, or a missing or invalid Idempotency-Key.
401
The API key is missing or invalid.
403
INSUFFICIENT_SCOPE
The key lacks products:payment_links:write.
403
ORG_FROZEN
The organization’s payments are frozen.
403
CARD_USD_VERIFICATION_REQUIRED
Business verification must be completed before creating USD card payment links.
404
The product doesn’t exist or belongs to another organization.
409
PRODUCT_CONFLICT
The Idempotency-Key was already used with a different body or another product, or the link it created was removed.
413
PAYLOAD_TOO_LARGE
The request body is larger than 64 KB.
503
CARD_USD_CAPABILITY_UNAVAILABLE
Business verification status is temporarily unavailable. Try again later.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Anyway","colors":{"primary":"#2D2D2D","light":"#FFF861","dark":"#8F8800"},"logo":{"light":"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/logo/light-logo.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=ead8b3bc1589dc138b30ef3db4eccd19","dark":"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/logo/dark-logo.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=a72b31cae40b75ef38b97277be463458"},"favicon":{"light":"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/favicon.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=01fedcfc4d0754a2d89c79ceaf98df31","dark":"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/favicon-white.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=0ea64c8d600f4ab98310dc9f268e1008"},"footer":{"socials":{"x":"https://x.com/aianyway","linkedin":"https://linkedin.com/company/aianyway"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Anyway.sh","icon":"house","href":"https://anyway.sh"},{"anchor":"AI Agent Skill","icon":"wand-magic-sparkles","href":"/skills"}]},"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"mailto:support@anyway.sh","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.anyway.sh"}},"href":"concepts"},{"language":"cn","navbar":{"links":[{"href":"mailto:support@anyway.sh","label":"支持"}],"primary":{"type":"button","label":"打开控制台","href":"https://app.anyway.sh"}},"href":"zh/concepts"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"anyway","hasAudioNarration":false,"actualSubdomain":"anyway","customDomains":["docs.anyway.sh"],"gitSource":{"type":"github","owner":"anyway-platform","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af66c068aa37d91255af7cc","clientVersion":"0.0.4124","searchFilterCounts":[{"language":"en","tag":"API Reference","count":34},{"language":"cn","tag":"API 参考","count":34},{"language":"en","tag":"Merchant API endpoints","count":23},{"language":"cn","tag":"Merchant API 端点","count":23},{"language":"en","tag":"Business","count":20},{"language":"cn","tag":"Business","count":20},{"language":"en","tag":"Start","count":10},{"language":"cn","tag":"开始使用","count":10},{"language":"en","tag":"Agents","count":7},{"language":"cn","tag":"Agents","count":7},{"language":"en","tag":"Payment","count":6},{"language":"cn","tag":"支付","count":6},{"language":"en","tag":"Changelog","count":5},{"language":"en","tag":"MoR","count":5},{"language":"cn","tag":"更新日志","count":5},{"language":"cn","tag":"MoR","count":5},{"language":"en","tag":"Merchant API","count":4},{"language":"cn","tag":"Merchant API","count":4},{"language":"en","tag":"Wallets \u0026 funding","count":3},{"language":"cn","tag":"钱包与资金","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1024px){#sidebar.fixed.bottom-0{top:7rem;height:calc(100vh - 7rem);height:calc(100dvh - 7rem)}}.cl-page{max-width:64rem!important;margin:0 auto;padding:4rem 1.5rem 6rem}.cl-hero{padding-bottom:3rem;border-bottom:1px solid rgb(0 0 0 / 0.08)}.dark .cl-hero{border-color:rgb(255 255 255 / 0.08)}.cl-hero h1{margin:0;font-size:3.5rem;line-height:1.1;font-weight:700;letter-spacing:-0.02em}.cl-hero p{margin-top:1rem;font-size:1.25rem}.cl-page .cl-back{border-bottom:0;display:inline-block;margin-bottom:1.5rem;font-size:0.95rem}.cl-page .update{padding:3.5rem 0}@media (min-width: 1024px){.cl-page .update{position:relative;gap:3rem}.cl-page .update::before{content:\"\";position:absolute;top:0;bottom:0;left:4px;width:1px;background:rgb(0 0 0 / 0.1)}.dark .cl-page .update::before{background:rgb(255 255 255 / 0.12)}.cl-hero+.update::before,.cl-page .update:first-of-type::before{top:4.25rem}.cl-page .update [data-component-part=\"update-label\"]{position:relative;padding-left:1.75rem}.cl-page [data-component-part=\"update-label\"]::before{content:\"\";position:absolute;top:50%;left:0;width:9px;height:9px;border-radius:9999px;background:rgb(156 163 175);transform:translateY(-50%)}.cl-page .update>div:has([data-component-part=\"update-label\"]){width:16rem}}.cl-page [data-component-part=\"update-label\"]{padding:0;background:none;font-size:1rem;font-weight:400;color:rgb(107 114 128)}.cl-page [data-component-part=\"update-content\"]{font-size:1.125rem;line-height:1.75}.cl-page [data-component-part=\"update-content\"]>:is(h1,h2):first-child{margin-top:0;font-size:2.5rem;line-height:1.2;letter-spacing:-0.02em}.cl-page [data-component-part=\"update-content\"]>:is(h1,h2):first-child a{border-bottom:0;text-decoration:none}"}],"page":{"pagePath":"api-reference/endpoint/create-product-payment-link","slug":"/api-reference/endpoint/create-product-payment-link","pageMetadata":{"title":"Create a payment link","description":"Add a price and a shareable payment link to an existing product.","icon":"link","openapi":"api-reference/openapi.json POST /v1/product/{id}/payment-link","href":"/api-reference/endpoint/create-product-payment-link"},"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: \"Add a price and a shareable payment link to an existing product.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Note,Table}=_components;if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Authenticate with an API key that belongs to the product’s organization and has Full access or the `,_jsx(_components.code,{children:`products:payment_links:write`}),` permission (`,_jsx(_components.strong,{children:`Payment links`}),` under `,_jsx(_components.strong,{children:`Can create and change`}),` in the dashboard). Only the Owner and Admin roles can grant it.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`id`}),` is the ID of a product in your organization, whether it was created through the API or in the dashboard. A product from another organization, or one that doesn’t exist, returns `,_jsx(_components.code,{children:`404`}),`.`]}),`\n`,_jsx(_components.li,{children:`Each call creates a new price for the product and its payment link, so one product can have several prices.`}),`\n`,_jsxs(_components.li,{children:[`Send a unique `,_jsx(_components.code,{children:`Idempotency-Key`}),` header (required; 1–255 ASCII characters from `,_jsx(_components.code,{children:`0x21`}),` to `,_jsx(_components.code,{children:`0x7E`}),`, no spaces), the same rule as checkout sessions. The same key with the same body returns the link created the first time (`,_jsx(_components.code,{children:`201`}),`) and creates nothing new. The same key with a different body, or for another product, returns `,_jsx(_components.code,{children:`409`}),`. If the link created with that key was later removed, a retry also returns `,_jsx(_components.code,{children:`409`}),`; send a new key.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pricingType`}),` is `,_jsx(_components.code,{children:`ONE_TIME`}),` or `,_jsx(_components.code,{children:`SUBSCRIPTION`}),`. `,_jsx(_components.code,{children:`pricing`}),` is a string in major units, such as `,_jsx(_components.code,{children:`\"9.99\"`}),`. Omit `,_jsx(_components.code,{children:`pricing`}),` for a flexible “pay what you want” amount; this works for `,_jsx(_components.code,{children:`ONE_TIME`}),` only, and `,_jsx(_components.code,{children:`minAmount`}),` and `,_jsx(_components.code,{children:`maxAmount`}),` are then optional.`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.code,{children:`SUBSCRIPTION`}),` price needs `,_jsx(_components.code,{children:`billingInterval`}),` (`,_jsx(_components.code,{children:`DAY`}),`, `,_jsx(_components.code,{children:`MONTH`}),` or `,_jsx(_components.code,{children:`YEAR`}),`). `,_jsx(_components.code,{children:`billingIntervalCount`}),` is optional and defaults to `,_jsx(_components.code,{children:`1`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`successUrl`}),` is an absolute HTTPS URL to send the customer to after they pay. If you leave it out, the customer sees the Anyway receipt.`]}),`\n`,_jsx(_components.li,{children:`Payments are collected on Anyway’s platform account. Links created through the API are card payment links only; crypto payment links are not available.`}),`\n`,_jsxs(_components.li,{children:[`Unknown fields are rejected with `,_jsx(_components.code,{children:`400`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Share the returned `,_jsx(_components.code,{children:`paymentLinkUrl`}),` as provided. The response has the same shape as an item from `,_jsx(_components.a,{href:`/api-reference/endpoint/get-product-payment-links`,children:`Get product payment links`}),`.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Checkout sessions can’t sell a flexible amount. To let the customer choose what to pay, create a flexible one-time payment link here instead.`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{}),_jsxs(_components.td,{children:[`Validation failed: bad currency, a subscription without an interval, a flexible subscription, an amount of 0 or less, a `,_jsx(_components.code,{children:`successUrl`}),` that isn’t an absolute HTTPS URL, an unknown field, or a missing or invalid `,_jsx(_components.code,{children:`Idempotency-Key`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The API key is missing or invalid.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INSUFFICIENT_SCOPE`})}),_jsxs(_components.td,{children:[`The key lacks `,_jsx(_components.code,{children:`products:payment_links:write`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ORG_FROZEN`})}),_jsx(_components.td,{children:`The organization’s payments are frozen.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CARD_USD_VERIFICATION_REQUIRED`})}),_jsx(_components.td,{children:`Business verification must be completed before creating USD card payment links.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The product doesn’t exist or belongs to another organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PRODUCT_CONFLICT`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`Idempotency-Key`}),` was already used with a different body or another product, or the link it created was removed.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`413`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PAYLOAD_TOO_LARGE`})}),_jsx(_components.td,{children:`The request body is larger than 64 KB.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CARD_USD_CAPABILITY_UNAVAILABLE`})}),_jsx(_components.td,{children:`Business verification status is temporarily unavailable. Try again later.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a payment link","description":"Add a price and a shareable payment link to an existing product.","icon":"link","openapi":"api-reference/openapi.json POST /v1/product/{id}/payment-link","href":"/api-reference/endpoint/create-product-payment-link"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"security":["e74fa0dd-3768-452e-84e1-2e73ff8fead4"],"description":"Add a price and a shareable payment link to an existing product.","tags":["products"],"summary":"Create a payment link","parameters":["fde10168-093b-4b0c-a2c3-851a9d0df7b8","c0af7f46-b0c4-40fe-8465-e099faf3306c"],"requestBody":"f41871c2-23a9-490f-bedc-c1b207eb563c","responses":{"201":"654373da-29d3-469b-97a4-9c24efb9d7d9","400":"d86cabbd-b2ce-4a20-ba83-52cff1b2b3a0","401":"75472c2d-d50a-4c84-b716-1652cf65ede5","403":"afb6fd71-8a0e-471f-9265-7d330efe6e16","404":"6a8e32d2-f1a5-406f-94b5-d0da9a420cd1","409":"709a4ec7-e544-48f0-9a70-069cca81ca08","413":"4dcc49b9-bbd3-4186-96ea-2ad37954f972"},"method":"post","type":"path","servers":["90c12a96-1344-418b-bde1-d9313ed9e8fe"],"path":"/v1/product/{id}/payment-link","baseUrlOptions":["https://merchant-api-prod.anyway.sh"],"title":"Create a payment link","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"fde10168-093b-4b0c-a2c3-851a9d0df7b8":{"description":"Product ID","name":"id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Product ID","uniqueKey":"","typeLabel":"string"}},"c0af7f46-b0c4-40fe-8465-e099faf3306c":{"description":"Unique creation request key: 1-255 ASCII characters in the range 0x21-0x7E (no spaces or control characters)","name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":true,"description":"Unique creation request key: 1-255 ASCII characters in the range 0x21-0x7E (no spaces or control characters)","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"description":"Price and payment link","content":{"application/json":{"schema":{"type":"object","required":["pricingType","currency"],"properties":{"pricingType":{"type":"string","enum":["SUBSCRIPTION","ONE_TIME"],"x-enum-varnames":["PricingTypeSubscription","PricingTypeOneTime"],"isRequired":true,"uniqueKey":"pricingType","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","description":"Currency code, for example USD","isRequired":true,"uniqueKey":"currency","typeLabel":"string"},"pricing":{"type":"string","description":"Fixed amount in major units, for example \"9.99\". Omit for a flexible (pay what you want) amount, which is ONE_TIME only.","uniqueKey":"pricing","typeLabel":"string"},"minAmount":{"description":"Optional minimum for a flexible amount (ONE_TIME only)","type":"number","uniqueKey":"minAmount","typeLabel":"number"},"maxAmount":{"description":"Optional maximum for a flexible amount (ONE_TIME only)","type":"number","uniqueKey":"maxAmount","typeLabel":"number"},"billingInterval":{"type":"string","enum":["DAY","MONTH","YEAR"],"x-enum-varnames":["BillingIntervalDay","BillingIntervalMonth","BillingIntervalYear"],"uniqueKey":"billingInterval","typeLabel":"enum\u003cstring>"},"billingIntervalCount":{"type":"integer","description":"Number of intervals between charges (SUBSCRIPTION). Defaults to 1.","uniqueKey":"billingIntervalCount","typeLabel":"integer"},"pricingName":{"type":"string","description":"Name of the price","uniqueKey":"pricingName","typeLabel":"string"},"successUrl":{"type":"string","description":"Absolute HTTPS URL to send the customer to after paying. Defaults to the Anyway receipt.","uniqueKey":"successUrl","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"currency":"\u003cstring>","pricing":"\u003cstring>","minAmount":123,"maxAmount":123,"billingIntervalCount":123,"pricingName":"\u003cstring>","successUrl":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"654373da-29d3-469b-97a4-9c24efb9d7d9":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"amount":{"oneOf":[{"type":"number","uniqueKey":"data.amount.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.amount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.amount","typeLabel":"number | null"},"createdAt":{"type":"string","uniqueKey":"data.createdAt","typeLabel":"string"},"currency":{"type":"string","uniqueKey":"data.currency","typeLabel":"string"},"flexibleAmount":{"type":"boolean","uniqueKey":"data.flexibleAmount","typeLabel":"boolean"},"isActive":{"type":"boolean","uniqueKey":"data.isActive","typeLabel":"boolean"},"name":{"type":"string","uniqueKey":"data.name","typeLabel":"string"},"paymentLinkUrl":{"type":"string","uniqueKey":"data.paymentLinkUrl","typeLabel":"string"},"pricingId":{"type":"string","uniqueKey":"data.pricingId","typeLabel":"string"},"pricingType":{"type":"string","uniqueKey":"data.pricingType","typeLabel":"string"},"provider":{"type":"string","uniqueKey":"data.provider","typeLabel":"string"},"title":{"type":"string","uniqueKey":"data.title","typeLabel":"string"},"description":{"type":"string","uniqueKey":"data.description","typeLabel":"string"},"minAmount":{"oneOf":[{"type":"number","uniqueKey":"data.minAmount.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.minAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.minAmount","typeLabel":"number | null"},"maxAmount":{"oneOf":[{"type":"number","uniqueKey":"data.maxAmount.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.maxAmount.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.maxAmount","typeLabel":"number | null"},"successUrl":{"type":"string","description":"Where the customer is sent after paying. Empty when the Anyway receipt is used.","uniqueKey":"data.successUrl","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"},"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"amount":123,"createdAt":"\u003cstring>","currency":"\u003cstring>","flexibleAmount":true,"isActive":true,"name":"\u003cstring>","paymentLinkUrl":"\u003cstring>","pricingId":"\u003cstring>","pricingType":"\u003cstring>","provider":"\u003cstring>","title":"\u003cstring>","description":"\u003cstring>","minAmount":123,"maxAmount":123,"successUrl":"\u003cstring>"},"error":{"code":"\u003cstring>","message":"\u003cstring>"},"message":"\u003cstring>","success":true}}},"exampleType":"generated"}},"exampleType":"generated"},"d86cabbd-b2ce-4a20-ba83-52cff1b2b3a0":{"description":"Bad Request. Invalid currency, a subscription without a billing interval, a flexible subscription, an amount of 0 or less, a successUrl that is not an absolute HTTPS URL, an unknown field, or an invalid Idempotency-Key.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{}],"uniqueKey":"data","typeLabel":"any"},"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":"\u003cunknown>","error":{"code":"\u003cstring>","message":"\u003cstring>"},"message":"\u003cstring>","success":true}}},"exampleType":"generated"}},"exampleType":"generated"},"75472c2d-d50a-4c84-b716-1652cf65ede5":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{}],"uniqueKey":"data","typeLabel":"any"},"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":"\u003cunknown>","error":{"code":"\u003cstring>","message":"\u003cstring>"},"message":"\u003cstring>","success":true}}},"exampleType":"generated"}},"exampleType":"generated"},"afb6fd71-8a0e-471f-9265-7d330efe6e16":{"description":"Forbidden. The API key lacks the required permission (INSUFFICIENT_SCOPE), or the organization is frozen.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{}],"uniqueKey":"data","typeLabel":"any"},"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":"\u003cunknown>","error":{"code":"\u003cstring>","message":"\u003cstring>"},"message":"\u003cstring>","success":true}}},"exampleType":"generated"}},"exampleType":"generated"},"6a8e32d2-f1a5-406f-94b5-d0da9a420cd1":{"description":"Not Found. The product does not exist or belongs to another organization.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{}],"uniqueKey":"data","typeLabel":"any"},"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":"\u003cunknown>","error":{"code":"\u003cstring>","message":"\u003cstring>"},"message":"\u003cstring>","success":true}}},"exampleType":"generated"}},"exampleType":"generated"},"709a4ec7-e544-48f0-9a70-069cca81ca08":{"description":"Conflict. The Idempotency-Key was already used with a different body (PRODUCT_CONFLICT).","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{}],"uniqueKey":"data","typeLabel":"any"},"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":"\u003cunknown>","error":{"code":"\u003cstring>","message":"\u003cstring>"},"message":"\u003cstring>","success":true}}},"exampleType":"generated"}},"exampleType":"generated"},"4dcc49b9-bbd3-4186-96ea-2ad37954f972":{"description":"Request body larger than 64 KB (`PAYLOAD_TOO_LARGE`).","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"oneOf":[{}],"uniqueKey":"data","typeLabel":"any"},"error":{"type":"object","properties":{"code":{"type":"string","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"},"message":{"type":"string","uniqueKey":"message","typeLabel":"string"},"success":{"type":"boolean","uniqueKey":"success","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":"\u003cunknown>","error":{"code":"\u003cstring>","message":"\u003cstring>"},"message":"\u003cstring>","success":true}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e74fa0dd-3768-452e-84e1-2e73ff8fead4":{"APIKeyAuth":{"description":"Merchant API key (format: ak_BASE64)","type":"apiKey","name":"X-API-Key","in":"header","scopes":[],"schemeName":"APIKeyAuth"}}},"servers":{"90c12a96-1344-418b-bde1-d9313ed9e8fe":{"url":"https://merchant-api-prod.anyway.sh"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"Merchant API key (format: ak_BASE64)","type":"apiKey","name":"X-API-Key","in":"header","scopes":[],"schemeName":"APIKeyAuth"},"schema":{"title":"X-API-Key","type":"string","description":"Merchant API key (format: ak_BASE64)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"APIKeyAuth","name":"X-API-Key"}],"title":"APIKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"anyway","siteName":"Anyway","title":"Create a payment link - Anyway","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoint/create-product-payment-link","matchLevel":0},"cn":{"href":"/zh/api-reference/endpoint/create-product-payment-link","matchLevel":1}}},"lastModified":"2026-11-13T01:46:52.121Z","originalFileLocation":"api-reference/endpoint/create-product-payment-link.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Add a price and a shareable payment link to an existing product.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Anyway\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_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/anyway/PGUdeiWjDFhsUOPo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/anyway/PGUdeiWjDFhsUOPo/_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/anyway/PGUdeiWjDFhsUOPo/_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/anyway/PGUdeiWjDFhsUOPo/_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/anyway/PGUdeiWjDFhsUOPo/_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/anyway/PGUdeiWjDFhsUOPo/_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/anyway/PGUdeiWjDFhsUOPo/_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/anyway/PGUdeiWjDFhsUOPo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a payment link - Anyway\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add a price and a shareable payment link to an existing product.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Anyway\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://anyway.mintlify.site/_mintlify/api/og/v2?division=Merchant+API+endpoints\u0026amp;title=Create+a+payment+link\u0026amp;description=Add+a+price+and+a+shareable+payment+link+to+an+existing+product.\u0026amp;theme=e3fd7b8b4217c9660980b98d\u0026amp;signature=afc7b2159f5ee9a2c85470cdbd2c13932807f4611baad2dce754a76866fb00c0\">\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 a payment link - Anyway\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add a price and a shareable payment link to an existing product.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://anyway.mintlify.site/_mintlify/api/og/v2?division=Merchant+API+endpoints\u0026amp;title=Create+a+payment+link\u0026amp;description=Add+a+price+and+a+shareable+payment+link+to+an+existing+product.\u0026amp;theme=e3fd7b8b4217c9660980b98d\u0026amp;signature=afc7b2159f5ee9a2c85470cdbd2c13932807f4611baad2dce754a76866fb00c0\">\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/anyway/PGUdeiWjDFhsUOPo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Anyway\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2D2D2D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link\">\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-product-payment-link.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.anyway.sh/zh/api-reference/endpoint/create-product-payment-link\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.anyway.sh/#organization\",\"name\":\"Anyway\",\"url\":\"https://docs.anyway.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/anyway/lzJXv0iw-9ZF48px/logo/light-logo.svg?fit=max\u0026auto=format\u0026n=lzJXv0iw-9ZF48px\u0026q=85\u0026s=ead8b3bc1589dc138b30ef3db4eccd19\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.anyway.sh#website\",\"name\":\"Anyway\",\"url\":\"https://docs.anyway.sh\",\"publisher\":{\"@id\":\"https://docs.anyway.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link#webpage\",\"url\":\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link\",\"name\":\"Create a payment link\",\"description\":\"Add a price and a shareable payment link to an existing product.\",\"dateModified\":\"2026-11-13T01:46:52.121Z\",\"isPartOf\":{\"@id\":\"https://docs.anyway.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Merchant API endpoints\",\"item\":\"https://docs.anyway.sh/api-reference/endpoint/api-keys\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a payment link\",\"item\":\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link#apireference\",\"headline\":\"Create a payment link\",\"name\":\"Create a payment link\",\"description\":\"Add a price and a shareable payment link to an existing product.\",\"url\":\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link\",\"mainEntityOfPage\":{\"@id\":\"https://docs.anyway.sh/api-reference/endpoint/create-product-payment-link#webpage\"},\"dateModified\":\"2026-11-13T01:46:52.121Z\",\"publisher\":{\"@id\":\"https://docs.anyway.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.anyway.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Anyway\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Anyway\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/create-product-payment-link.md","siteName":"Anyway","nav":{"global":{"anchors":[{"anchor":"Anyway.sh","icon":"house","href":"https://anyway.sh"},{"anchor":"AI Agent Skill","icon":"wand-magic-sparkles","href":"/skills"}]},"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"mailto:support@anyway.sh","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.anyway.sh"}},"tabs":[{"tab":"Business","icon":"building","pages":[{"title":"Business","href":"/concepts"}]},{"tab":"Agents","icon":"robot","pages":[{"title":"Agents","href":"/features/agents-overview"}]},{"tab":"API Reference","icon":"square-terminal","groups":[{"group":"Start","pages":[{"title":"Developer Overview","icon":"code","href":"/api-reference/introduction"},{"title":"Choose the Right API","icon":"diagram-project","href":"/api-reference/api-surfaces"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"}]},{"group":"Merchant API","pages":[{"title":"Merchant API","icon":"store","href":"/api-reference/merchant-api"},{"title":"Checkout Sessions","icon":"cart-shopping","href":"/api-reference/checkout-sessions"},{"title":"Orders API","icon":"receipt","href":"/api-reference/orders-guide"},{"title":"Catalog, Customers \u0026 Access","icon":"boxes-stacked","href":"/api-reference/catalog"}]},{"group":"Merchant API endpoints","pages":[{"title":"Inspect API key","icon":"key","openapi":"api-reference/openapi.json GET /v1/me","href":"/api-reference/endpoint/api-keys"},{"title":"Create a checkout session","icon":"cart-shopping","openapi":"api-reference/openapi.json POST /v1/checkout-sessions","href":"/api-reference/endpoint/create-checkout-session"},{"title":"Get a checkout session","icon":"cart-shopping","openapi":"api-reference/openapi.json GET /v1/checkout-sessions/{id}","href":"/api-reference/endpoint/get-checkout-session"},{"title":"Expire a checkout session","icon":"cart-shopping","openapi":"api-reference/openapi.json POST /v1/checkout-sessions/{id}/expire","href":"/api-reference/endpoint/expire-checkout-session"},{"title":"List orders","icon":"list","openapi":"api-reference/openapi.json GET /v1/orders","href":"/api-reference/endpoint/orders"},{"title":"Get an order","icon":"receipt","openapi":"api-reference/openapi.json GET /v1/orders/{id}","href":"/api-reference/endpoint/get-order"},{"title":"List refunds","icon":"list","openapi":"api-reference/openapi.json GET /v1/refunds","href":"/api-reference/endpoint/refunds"},{"title":"Get a refund","icon":"rotate-left","openapi":"api-reference/openapi.json GET /v1/refunds/{id}","href":"/api-reference/endpoint/get-refund"},{"title":"List products","icon":"boxes-stacked","openapi":"api-reference/openapi.json GET /v1/product","href":"/api-reference/endpoint/products"},{"title":"Create a product","description":"Create one product with one price.","icon":"box-open","openapi":"api-reference/openapi.json POST /v1/product","href":"/api-reference/endpoint/create-product"},{"title":"Create a payment link","icon":"link","openapi":"api-reference/openapi.json POST /v1/product/{id}/payment-link","href":"/api-reference/endpoint/create-product-payment-link"},{"title":"Update a product","description":"Change a product's name or description.","icon":"pen","openapi":"api-reference/openapi.json PATCH /v1/product/{id}","href":"/api-reference/endpoint/update-product"},{"title":"Archive a product","icon":"box-archive","openapi":"api-reference/openapi.json POST /v1/product/{id}/archive","href":"/api-reference/endpoint/archive-product"},{"title":"Publish a product","icon":"box-open","openapi":"api-reference/openapi.json POST /v1/product/{id}/publish","href":"/api-reference/endpoint/publish-product"},{"title":"Update a payment link","icon":"link","openapi":"api-reference/openapi.json PATCH /v1/payment-links/{linkId}","href":"/api-reference/endpoint/update-payment-link"},{"title":"Get a product","icon":"box","openapi":"api-reference/openapi.json GET /v1/product/{id}","href":"/api-reference/endpoint/get-product"},{"title":"Get product payment links","icon":"link","openapi":"api-reference/openapi.json GET /v1/product/{id}/payment-links","href":"/api-reference/endpoint/get-product-payment-links"},{"title":"List subscription records","icon":"arrows-rotate","openapi":"api-reference/openapi.json GET /v1/subscriptions","href":"/api-reference/endpoint/list-subscriptions"},{"title":"Get a subscription record","icon":"rotate","openapi":"api-reference/openapi.json GET /v1/subscriptions/{id}","href":"/api-reference/endpoint/get-subscription"},{"title":"Cancel a subscription","icon":"rotate","openapi":"api-reference/openapi.json POST /v1/subscriptions/{id}/cancel","href":"/api-reference/endpoint/cancel-subscription"},{"title":"List customers","icon":"users","openapi":"api-reference/openapi.json GET /v1/customers","href":"/api-reference/endpoint/list-customers"},{"title":"Get a customer","icon":"user","openapi":"api-reference/openapi.json GET /v1/customers/{id}","href":"/api-reference/endpoint/get-customer"},{"title":"Check product access","icon":"shield-check","openapi":"api-reference/openapi.json GET /v1/entitlements/check","href":"/api-reference/endpoint/check-entitlement"}]},{"group":"Developer contracts","pages":[{"title":"Agent Wallet Runtime API","icon":"wallet","href":"/api-reference/agent-wallet-api"},{"title":"Webhook Delivery","icon":"webhook","href":"/api-reference/endpoint/webhooks"}]},{"group":"Code \u0026 telemetry","pages":[{"title":"Agent Tracing SDKs","icon":"route","href":"/sdk/quickstart"},{"title":"Anyway CLI","icon":"terminal","href":"/sdk/cli"}]}]},{"tab":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"language":"cn","navbar":{"links":[{"href":"mailto:support@anyway.sh","label":"支持"}],"primary":{"type":"button","label":"打开控制台","href":"https://app.anyway.sh"}},"pages":[{"title":"cn","href":"/zh/api-reference/endpoint/create-product-payment-link"}]}]},"basePath":"","title":"Create a payment link - Anyway","buildId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","deploymentId":"dpl_8hoxaqFTU7hTr6A2fUraxAyjuiZo","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CDiBsYGW.js","utils-KF9rPlmF.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C26urKTX.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BdjmJAC1.js","snippetPresets-3IpDBjt3.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-D4x_2vvo.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BIWdc5Pa.js","shallow-LQqfiMNd.js","getApiPlaygroundDisplay-DryzlOZG.js","CodeSnippet-tcJujU4r.js","CodeSnippets-BHp0nVLL.js","Page-1CZdsdAn.js","getPastedJson-DU-1ayUv.js","icon-CZK2hPr4.js","MethodPill-DOaqmTFC.js","DuplicateIcon-B5-nUxxl.js","createIcon-CDP_U77G.js","DynamicMarkdown-GHvayGOn.js","SectionHeading-BYvpkmUD.js","axios-vUo_bRtp.js","Markdown-uxhlayGT.js","clsx-B35qUV0p.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BvrGG8gU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CAf0yVYe.js"]}