{
"error": "A request with this idempotency key is already being processed"
}
{
"error": "Idempotency key already used with a different request body"
}
POST /checkout/linksFaz parte do recurso Links — o conceito, a Session gerada e os estados
estão lá.Cria o template e devolve 201 com o Link inteiro, já com a url de pagamento. São obrigatórios os
itens e os métodos de pagamento; o resto tem default ou é opcional. O Link nasce active e
passa a vender na hora — cada abertura da URL materializa uma Session nova.
Valores são inteiros em centavos. R$ 99,90 é 9990. Enviar 9.90 é recusado com 400
(integer requerido), mas 9passa e vira nove centavos. Veja
Convenções.
Split exige soma 100 e exatamente um responsável. As percentage somam 100 (tolerância de
±0.01 para arredondamento) e um único item do array tem liable: true — nenhum ou mais de um
é recusado com 400. O responsável é obrigatório porque chargeback sempre precisa de um dono; não
existe divisão em que o prejuízo fique sem endereço.
O slug é único globalmente, não só na sua conta. Se outra conta já usa aquele texto, a
resposta é 409 com key: "errors.checkout.slug_taken". Quando você envia um slug, a url da
resposta já vem como /c/{slug} em vez de /c/{id}.
Endereço de retorno e imagens da página só aceitam https. Vale para successUrl,
cancelUrl, branding.logoUrl, branding.faviconUrl e branding.coverUrl. Endereço em http,
em outro esquema (meuapp://, por exemplo) ou com usuário e senha embutidos
(https://usuario:senha@site) é recusado com 400 no campo, com a mensagem
Informe um endereço https (http só é aceito em localhost). O http passa só em localhost e
127.0.0.1, para quem desenvolve na própria máquina. A regra vale também em
PATCH /checkout/links/{id}, POST /checkout/sessions e POST /checkout/charges.
select sem options é aceito, e quebra na página. A API não recusa um campo customizado do
tipo select sem opções — ele é criado e o comprador vê um dropdown vazio, sem como responder.
Confira antes de publicar.
Link gravado com endereço fora da regra do https continua vendendo, mas a página ignora o
endereço. Ela não redireciona nem monta link com ele: depois de pagar, o comprador termina na
tela de confirmação da Z2Pay em vez de voltar ao seu site. Corrija com
PATCH /checkout/links/{id}, enviando o endereço em https.
E-mail, documento e telefone sempre são exigidos. O checkout os mescla em requiredFields
mesmo que você não os liste — por isso a resposta nunca traz o campo vazio —, e confere o dígito
verificador do documento. address é o único opt-in: só entra se você o listar. O nome o
comprador informa na página, mas não há como torná-lo obrigatório — name não é um valor aceito
em requiredFields.
A escrita é plana, a leitura é aninhada. Aqui você envia items, paymentMethods, splits e
branding no topo do corpo. Na leitura (GET /checkout/links/{id})
esses quatro voltam dentro de config. Os demais campos ficam no topo nos dois sentidos. O
detalhe importa ao
espelhar um Link numa venda rápida.
interestType é opcional e sempre compound. O parcelamento
(paymentMethods.card.installments) é calculado pela Tabela Price, que usa juros compostos. Quem
já envia interestType: "simple" não leva 400: o valor é aceito, gravado e devolvido como
compound, que é a conta que sempre foi cobrada — o valor cobrado não muda. Qualquer outro valor
é recusado com 400. A regra vale também em PATCH /checkout/links/{id},
POST /checkout/sessions, POST /checkout/charges e POST /pos/intents.
O conflito de domínio não vai em code. Todo 409 de regra responde code: "CONFLICT" — o
que distingue um caso do outro é a key, com o prefixo inteiro
(errors.checkout.slug_taken). Comparar error.code === "slug_taken" nunca casa. Veja
Erros de domínio.
Endpoint idempotente. Envie Idempotency-Key para que um retry por timeout não crie dois Links.
Veja Convenções.
A url da resposta é o link pronto para compartilhar. Cada abertura materializa uma Session nova.
Authorizations
x-api-key
string
header
required
API key unificada (z2_{live|test}{sk|pk}...) — secret (sk) para integração backend, publishable (pk) para uso no frontend público
Body
application/json
paymentMethods
object
required
Métodos de pagamento habilitados (card/pix/boleto/combined); ao menos um enabled.
Show child attributes
name
string | null
Nome do link de checkout.
Maximum string length: 255
description
string | null
Descrição exibida no checkout.
Maximum string length: 2000
slug
string | null
Slug único global usado na URL pública /c/{slug} (a-z, 0-9 e hífen).
Required string length: 3 - 100
Pattern: ^[a-z0-9-]+$
mode
enum<string>
default:payment
'payment' (default) para pagamento único; 'subscription' exige o objeto subscription populado.
Available options:
payment,
subscription
currency
enum<string>
default:BRL
Moeda da cobrança. Só BRL — os gateways liquidam em real.
Available options:
BRL
locale
enum<string>
default:pt-BR
Idioma do checkout (default 'pt-BR').
Available options:
pt-BR,
en-US,
es-ES
items
object[]
Itens do carrinho (unitAmount em centavos); ao menos 1 quando mode=payment.
Show child attributes
splits
object[] | null
Divisão de receita por percentual; a soma deve ser exatamente 100.
Show child attributes
branding
object | null
Customização visual do checkout.
Show child attributes
subscription
object | null
Configuração de recorrência; obrigatória (e exclusiva) quando mode=subscription. Sem startAt: um Link é template reutilizável, então não há como adiar "o início" de algo que cada comprador ativa em um momento diferente — disponível apenas na venda rápida.
Show child attributes
requiredFields
enum<string>[] | null
Campos do comprador exigidos no checkout (email, document, phone, address).
Available options:
email,
document,
phone,
address
customFields
object[] | null
Campos customizados do formulário (máx. 20).
Maximum array length: 20
Show child attributes
successUrl
string<uri> | null
URL https de redirecionamento após pagamento aprovado.
Maximum string length: 2000
cancelUrl
string<uri> | null
URL https de redirecionamento quando o comprador cancela.
Maximum string length: 2000
metadata
object | null
Metadados do seller (string → string), consultáveis no próprio link. Não são propagados à Transaction; para correlacionar vendas ao link nos webhooks, use o additionalInfo.checkoutLinkId da Transaction.
Show child attributes
expirationMinutes
integer | null
Expiração da sessão em minutos (5 a 43200 = 30 dias).
Required range: 5 <= x <= 43200
Response
Link criado
id
string
Identificador único do registro.
slug
string | null
Slug único global usado na URL pública /c/{slug}.
status
string
Estado atual do registro.
mode
string
Modo do checkout: 'payment' (pagamento único) ou 'subscription' (assinatura).
currency
string
Moeda no padrão ISO 4217 (ex.: BRL).
locale
string
Idioma do checkout (ex.: pt-BR, en-US, es-ES).
name
string | null
Nome de exibição do registro.
description
string | null
Descrição exibida no checkout.
sellable
boolean
Se o Link pode vender agora. É false quando um recebedor do splits, ou o dono da conta, não está ativo no PSP — o comprador vê uma página de indisponível. Independente do status.
config
object
Snapshot da configuração do checkout (formas de pagamento, itens e personalização visual).
requiredFields
string[] | null
Campos do comprador exigidos no checkout (ex.: email, document, phone, address).
customFields
object[] | null
Definições dos campos personalizados solicitados no checkout.
successUrl
string | null
URL de redirecionamento após o pagamento ser concluído com sucesso.
cancelUrl
string | null
URL de redirecionamento quando o comprador cancela o checkout.
metadata
object | null
Metadados livres (pares chave-valor) para uso do integrador; não afeta o processamento.
expirationMinutes
integer | null
Tempo de validade da sessão de checkout, em minutos.
createdAt
string<date-time>
Data e hora de criação do registro (ISO 8601).
updatedAt
string<date-time>
Data e hora da última atualização do registro (ISO 8601).
url
string
URL pública do checkout para o comprador finalizar o pagamento.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Z2Pay Developers","description":"Documentação da API pública da Z2Pay — pagamentos, assinaturas, checkout e sandbox.","colors":{"primary":"#002f80","light":"#009ad8","dark":"#002f80"},"logo":{"light":"https://mintcdn.com/z2pay/tvVUaIGzeIoQL011/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=tvVUaIGzeIoQL011\u0026q=85\u0026s=3d225dd050b97e9ab691ddc9cd6dfcd6","dark":"https://mintcdn.com/z2pay/tvVUaIGzeIoQL011/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=tvVUaIGzeIoQL011\u0026q=85\u0026s=1ebe3a378e585dfdf4369fe416428bb4"},"favicon":"https://mintcdn.com/z2pay/tvVUaIGzeIoQL011/favicon.svg?fit=max\u0026auto=format\u0026n=tvVUaIGzeIoQL011\u0026q=85\u0026s=f59e01eaa9bf0e53177f49be7ea7f639","api":{"playground":{"display":"interactive","proxy":true},"examples":{"languages":["bash","javascript","python"]}},"navbar":{"links":[{"href":"mailto:suporte@z2pay.com","label":"Suporte"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.z2pay.com"}},"footer":{"socials":{"website":"https://z2pay.com"}},"icons":{"library":"lucide"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"z2pay","hasAudioNarration":false,"actualSubdomain":"z2pay","customDomains":["docs.z2pay.com"],"gitSource":{"type":"github","owner":"z2pay","repo":"docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0830abc85466c2265097c2","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Referência da API","count":151},{"language":"default","tag":"Split \u0026 Recebedores","count":38},{"language":"default","tag":"Cobrança recorrente","count":38},{"language":"default","tag":"Cobranças","count":24},{"language":"default","tag":"Checkout","count":22},{"language":"default","tag":"Guias","count":15},{"language":"default","tag":"Webhooks \u0026 Eventos","count":14},{"language":"default","tag":"Clientes \u0026 Cartões","count":11},{"language":"default","tag":"Webhooks","count":11},{"language":"default","tag":"Links","count":9}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".tryit-button{background-color:#00286d!important;height:1.875rem!important;padding:0 0.5rem!important;font-size:0.8125rem!important;border-radius:0.5rem!important}.tryit-button:hover{background-color:#003289!important}div:has(>.tryit-button){flex-wrap:wrap!important;row-gap:0.5rem!important}div:has(>.tryit-button)>:not(.tryit-button){min-width:0!important}div:has(>.tryit-button)>.tryit-button{order:10!important;flex:0 0 100%!important;width:100%!important;justify-content:center!important}a[aria-current=\"page\"],a[aria-current=\"page\"] *{text-shadow:none!important;font-weight:400!important}a[aria-current=\"page\"] .method-nav-pill,a[aria-current=\"page\"] .font-bold{font-weight:400!important}"}]}
{"page":{"pagePath":"pt-BR/checkout/links/create","slug":"/pt-BR/checkout/links/create","pageMetadata":{"title":"Criar checkout link","description":"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.","openapi":"openapi/checkout.json POST /checkout/links","href":"/pt-BR/checkout/links/create"},"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: \"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Note,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /checkout/links`})}),`\n`,_jsxs(_components.p,{children:[`Faz parte do recurso `,_jsx(_components.a,{href:`/pt-BR/checkout/links`,children:`Links`}),` — o conceito, a Session gerada e os estados\nestão lá.`]}),`\n`,_jsxs(_components.p,{children:[`Cria o template e devolve `,_jsx(_components.code,{children:`201`}),` com o Link inteiro, já com a `,_jsx(_components.code,{children:`url`}),` de pagamento. São obrigatórios os\n`,_jsx(_components.strong,{children:`itens`}),` e os `,_jsx(_components.strong,{children:`métodos de pagamento`}),`; o resto tem default ou é opcional. O Link nasce `,_jsx(_components.code,{children:`active`}),` e\npassa a vender na hora — cada abertura da URL materializa uma Session nova.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Valores são inteiros em centavos.`}),` R$ 99,90 é `,_jsx(_components.code,{children:`9990`}),`. Enviar `,_jsx(_components.code,{children:`9.90`}),` é recusado com `,_jsx(_components.code,{children:`400`}),`\n(`,_jsx(_components.code,{children:`integer`}),` requerido), mas `,_jsx(_components.code,{children:`9`}),` `,_jsx(_components.strong,{children:`passa`}),` e vira nove centavos. Veja\n`,_jsx(_components.a,{href:`/pt-BR/convencoes`,children:`Convenções`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Split exige soma 100 e exatamente um responsável.`}),` As `,_jsx(_components.code,{children:`percentage`}),` somam 100 (tolerância de\n±0.01 para arredondamento) `,_jsx(_components.strong,{children:`e`}),` um único item do array tem `,_jsx(_components.code,{children:`liable: true`}),` — nenhum ou mais de um\né recusado com `,_jsx(_components.code,{children:`400`}),`. O responsável é obrigatório porque chargeback sempre precisa de um dono; não\nexiste divisão em que o prejuízo fique sem endereço.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`O `,_jsx(_components.code,{children:`slug`}),` é único globalmente, não só na sua conta.`]}),` Se outra conta já usa aquele texto, a\nresposta é `,_jsx(_components.code,{children:`409`}),` com `,_jsx(_components.code,{children:`key: \"errors.checkout.slug_taken\"`}),`. Quando você envia um slug, a `,_jsx(_components.code,{children:`url`}),` da\nresposta já vem como `,_jsx(_components.code,{children:`/c/{slug}`}),` em vez de `,_jsx(_components.code,{children:`/c/{id}`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Endereço de retorno e imagens da página só aceitam `,_jsx(_components.code,{children:`https`}),`.`]}),` Vale para `,_jsx(_components.code,{children:`successUrl`}),`,\n`,_jsx(_components.code,{children:`cancelUrl`}),`, `,_jsx(_components.code,{children:`branding.logoUrl`}),`, `,_jsx(_components.code,{children:`branding.faviconUrl`}),` e `,_jsx(_components.code,{children:`branding.coverUrl`}),`. Endereço em `,_jsx(_components.code,{children:`http`}),`,\nem outro esquema (`,_jsx(_components.code,{children:`meuapp://`}),`, por exemplo) ou com usuário e senha embutidos\n(`,_jsx(_components.code,{children:`https://usuario:senha@site`}),`) é recusado com `,_jsx(_components.code,{children:`400`}),` no campo, com a mensagem\n`,_jsx(_components.code,{children:`Informe um endereço https (http só é aceito em localhost)`}),`. O `,_jsx(_components.code,{children:`http`}),` passa só em `,_jsx(_components.code,{children:`localhost`}),` e\n`,_jsx(_components.code,{children:`127.0.0.1`}),`, para quem desenvolve na própria máquina. A regra vale também em\n`,_jsx(_components.code,{children:`PATCH /checkout/links/{id}`}),`, `,_jsx(_components.code,{children:`POST /checkout/sessions`}),` e `,_jsx(_components.code,{children:`POST /checkout/charges`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`select`}),` sem `,_jsx(_components.code,{children:`options`}),` é aceito, e quebra na página.`]}),` A API não recusa um campo customizado do\ntipo `,_jsx(_components.code,{children:`select`}),` sem opções — ele é criado e o comprador vê um dropdown vazio, sem como responder.\nConfira antes de publicar.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Link gravado com endereço fora da regra do `,_jsx(_components.code,{children:`https`}),` continua vendendo, mas a página ignora o\nendereço.`]}),` Ela não redireciona nem monta link com ele: depois de pagar, o comprador termina na\ntela de confirmação da Z2Pay em vez de voltar ao seu site. Corrija com\n`,_jsx(_components.a,{href:`/pt-BR/checkout/links/update`,children:_jsx(_components.code,{children:`PATCH /checkout/links/{id}`})}),`, enviando o endereço em `,_jsx(_components.code,{children:`https`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`E-mail, documento e telefone sempre são exigidos.`}),` O checkout os mescla em `,_jsx(_components.code,{children:`requiredFields`}),`\nmesmo que você não os liste — por isso a resposta nunca traz o campo vazio —, e confere o dígito\nverificador do documento. `,_jsx(_components.code,{children:`address`}),` é o único opt-in: só entra se você o listar. O nome o\ncomprador informa na página, mas não há como torná-lo obrigatório — `,_jsx(_components.code,{children:`name`}),` não é um valor aceito\nem `,_jsx(_components.code,{children:`requiredFields`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A escrita é plana, a leitura é aninhada.`}),` Aqui você envia `,_jsx(_components.code,{children:`items`}),`, `,_jsx(_components.code,{children:`paymentMethods`}),`, `,_jsx(_components.code,{children:`splits`}),` e\n`,_jsx(_components.code,{children:`branding`}),` no topo do corpo. Na leitura (`,_jsx(_components.a,{href:`/pt-BR/checkout/links/get`,children:_jsx(_components.code,{children:`GET /checkout/links/{id}`})}),`)\nesses quatro voltam dentro de `,_jsx(_components.code,{children:`config`}),`. Os demais campos ficam no topo nos dois sentidos. O\ndetalhe importa ao\n`,_jsx(_components.a,{href:`/pt-BR/checkout/charges#espelhar-a-config-de-um-link-numa-venda-r%C3%A1pida`,children:`espelhar um Link numa venda rápida`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`interestType`}),` é opcional e sempre `,_jsx(_components.code,{children:`compound`}),`.`]}),` O parcelamento\n(`,_jsx(_components.code,{children:`paymentMethods.card.installments`}),`) é calculado pela Tabela Price, que usa juros compostos. Quem\njá envia `,_jsx(_components.code,{children:`interestType: \"simple\"`}),` não leva `,_jsx(_components.code,{children:`400`}),`: o valor é aceito, gravado e devolvido como\n`,_jsx(_components.code,{children:`compound`}),`, que é a conta que sempre foi cobrada — o valor cobrado não muda. Qualquer outro valor\né recusado com `,_jsx(_components.code,{children:`400`}),`. A regra vale também em `,_jsx(_components.code,{children:`PATCH /checkout/links/{id}`}),`,\n`,_jsx(_components.code,{children:`POST /checkout/sessions`}),`, `,_jsx(_components.code,{children:`POST /checkout/charges`}),` e `,_jsx(_components.code,{children:`POST /pos/intents`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`O conflito de domínio não vai em `,_jsx(_components.code,{children:`code`}),`.`]}),` Todo `,_jsx(_components.code,{children:`409`}),` de regra responde `,_jsx(_components.code,{children:`code: \"CONFLICT\"`}),` — o\nque distingue um caso do outro é a `,_jsx(_components.code,{children:`key`}),`, com o prefixo inteiro\n(`,_jsx(_components.code,{children:`errors.checkout.slug_taken`}),`). Comparar `,_jsx(_components.code,{children:`error.code === \"slug_taken\"`}),` nunca casa. Veja\n`,_jsx(_components.a,{href:`/pt-BR/erros#erros-de-dom%C3%ADnio-a-key`,children:`Erros de domínio`}),`.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Endpoint idempotente. Envie `,_jsx(_components.code,{children:`Idempotency-Key`}),` para que um retry por timeout não crie dois Links.\nVeja `,_jsx(_components.a,{href:`/pt-BR/convencoes#idempot%C3%AAncia`,children:`Convenções`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`exemplo`,children:`Exemplo`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,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:`17`,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.z2pay.com/v1/checkout/links`}),_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:` \"x-api-key: SUA_CHAVE_DE_SANDBOX\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: 7c9e6679-7425-40de-944b-e07fc1f90ae7\"`}),_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:` \"name\": \"Curso de Backend\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"Link para divulgação no Instagram\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"items\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` { \"name\": \"Curso de Backend — vitalício\", \"quantity\": 1, \"unitAmount\": 49900 }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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:` \"paymentMethods\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"card\": { \"enabled\": true, \"installments\": { \"maxInstallments\": 12, \"freeInstallments\": 3 } },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pix\": { \"enabled\": true, \"expiresIn\": 3600 }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_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:` \"branding\": { \"primaryColor\": \"#1e3b79\", \"merchantName\": \"Henrique Cursos\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": { \"campaign\": \"instagram-bio-2026-05\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:`Resposta 201`,numberOfLines:`28`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`28`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chk_byd8p3p79re859jpkmr0j65n3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Curso de Backend\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Link para divulgação no Instagram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"slug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sellable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"payment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BRL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"locale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pt-BR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Curso de Backend — vitalício\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"quantity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"unitAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`49900`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentMethods\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"splits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"branding\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"primaryColor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#1e3b79\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"merchantName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Henrique Cursos\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"requiredFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"document\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"customFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"successUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancelUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"campaign\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"instagram-bio-2026-05\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expirationMinutes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1440`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-06-24T12:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-06-24T12:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://pay.sandbox.z2pay.com/c/chk_byd8p3p79re859jpkmr0j65n3\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`url`}),` da resposta é o link pronto para compartilhar. Cada abertura materializa uma Session nova.`]})]})}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":"Criar checkout link","description":"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.","openapi":"openapi/checkout.json POST /checkout/links","href":"/pt-BR/checkout/links/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Exemplo","slug":"exemplo","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Checkout Links"],"operationId":"CheckoutLinkApiController_create","responses":{"201":"80504552-a5c6-46dd-b388-905c7611f365","400":"08a38672-0c52-427c-be4e-30c543d874ac","401":"54e4e060-7a09-4274-a296-f4921765b6ef","403":"99184605-f38f-4002-bd06-2cc0cd90e967","409":"dec6d778-9a5e-455e-8b1b-42fede11fce6","422":"b44a17a1-2fd1-4167-96cb-63f5fde47e86"},"summary":"Criar checkout link","description":"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.","requestBody":"1de0c4bf-1662-4274-82d4-2a0ca3a6cdac","security":["b0315a4d-90d7-4514-bd7b-d4d831956845"],"method":"post","type":"path","servers":["8c069c60-22eb-46cf-9542-3d6b0e61c045","932dfb92-1fe2-4bcd-9b6e-8e3a45fa4be5"],"path":"/checkout/links","baseUrlOptions":["https://api.sandbox.z2pay.com/v1","https://api.z2pay.com/v1"],"title":"Criar checkout link","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"paymentMethods":{"type":"object","properties":{"card":{"type":"object","properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"paymentMethods.card.enabled","typeLabel":"boolean"},"installments":{"type":"object","properties":{"maxInstallments":{"type":"integer","minimum":1,"maximum":12,"description":"Máximo de parcelas no crédito (1–12).","isRequired":true,"uniqueKey":"paymentMethods.card.installments.maxInstallments","typeLabel":"integer"},"freeInstallments":{"type":"integer","minimum":0,"maximum":12,"description":"Parcelas sem juros: de 1x até este número o cliente paga o valor da venda (0–12; default 1). À vista nunca tem juros. Acima dele vale `interestRate`.","uniqueKey":"paymentMethods.card.installments.freeInstallments","typeLabel":"integer"},"interestRate":{"type":"number","minimum":0,"maximum":100,"description":"Juros ao mês, em % (ex.: 2.99), nas parcelas acima de `freeInstallments`, pela Tabela Price. Ausente ou 0: nenhuma parcela tem juros.","uniqueKey":"paymentMethods.card.installments.interestRate","typeLabel":"number"},"interestType":{"type":"string","description":"Opcional e sempre `compound`: o parcelamento é calculado pela Tabela Price (juros compostos).","uniqueKey":"paymentMethods.card.installments.interestType","typeLabel":"string"}},"required":["maxInstallments"],"uniqueKey":"paymentMethods.card.installments","typeLabel":"object"},"threeDSecure":{"type":"boolean","description":"Liga a autenticação 3D Secure para os pagamentos com cartão deste checkout. Aceita `true` ou `false`; default `false` (sem desafio). Exige 3DS habilitado para a conta — sem a habilitação o campo é aceito e ignorado (nenhum erro, nenhum desafio); se a conta for habilitada depois, os checkouts com `true` passam a desafiar automaticamente.","uniqueKey":"paymentMethods.card.threeDSecure","typeLabel":"boolean"}},"required":["enabled"],"uniqueKey":"paymentMethods.card","typeLabel":"object"},"pix":{"type":"object","properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"paymentMethods.pix.enabled","typeLabel":"boolean"},"expiresIn":{"type":"integer","minimum":60,"maximum":86400,"uniqueKey":"paymentMethods.pix.expiresIn","typeLabel":"integer"}},"required":["enabled"],"uniqueKey":"paymentMethods.pix","typeLabel":"object"},"pixAutomatic":{"type":"object","properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"paymentMethods.pixAutomatic.enabled","typeLabel":"boolean"},"expiresIn":{"type":"integer","minimum":60,"maximum":86400,"uniqueKey":"paymentMethods.pixAutomatic.expiresIn","typeLabel":"integer"}},"required":["enabled"],"description":"Pix Automático (débito recorrente autorizado pelo pagador). Só existe em venda de assinatura (`mode=subscription`) e é mutuamente exclusivo com `pix` — dois pix na mesma tela confundiriam o comprador. O QR da adesão paga a primeira cobrança e pede a autorização das seguintes no mesmo gesto. Não é aceito com período de teste nem, na venda rápida, com `subscriptionConfig.startAt`.","uniqueKey":"paymentMethods.pixAutomatic","typeLabel":"object"},"boleto":{"type":"object","properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"paymentMethods.boleto.enabled","typeLabel":"boolean"},"dueDateDays":{"type":"integer","minimum":1,"maximum":365,"uniqueKey":"paymentMethods.boleto.dueDateDays","typeLabel":"integer"}},"required":["enabled"],"uniqueKey":"paymentMethods.boleto","typeLabel":"object"},"combined":{"type":"object","properties":{"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"paymentMethods.combined.enabled","typeLabel":"boolean"},"minAmountPerPayment":{"type":"integer","minimum":1,"uniqueKey":"paymentMethods.combined.minAmountPerPayment","typeLabel":"integer"},"maxPaymentsCount":{"type":"integer","minimum":2,"maximum":8,"uniqueKey":"paymentMethods.combined.maxPaymentsCount","typeLabel":"integer"}},"required":["enabled"],"uniqueKey":"paymentMethods.combined","typeLabel":"object"}},"description":"Métodos de pagamento habilitados (card/pix/boleto/combined); ao menos um enabled.","isRequired":true,"uniqueKey":"paymentMethods","typeLabel":"object"},"name":{"oneOf":[{"type":"string","maxLength":255,"description":"Nome do link de checkout.","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"Nome do link de checkout.","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","maxLength":2000,"description":"Descrição exibida no checkout.","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":2000,"description":"Descrição exibida no checkout.","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"slug":{"oneOf":[{"type":"string","pattern":"^[a-z0-9-]+$","minLength":3,"maxLength":100,"description":"Slug único global usado na URL pública /c/{slug} (a-z, 0-9 e hífen).","uniqueKey":"slug.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[a-z0-9-]+$","minLength":3,"maxLength":100,"description":"Slug único global usado na URL pública /c/{slug} (a-z, 0-9 e hífen).","uniqueKey":"slug.oneOf.1","typeLabel":"null"}],"uniqueKey":"slug","typeLabel":"string | null"},"mode":{"type":"string","enum":["payment","subscription"],"default":"payment","description":"'payment' (default) para pagamento único; 'subscription' exige o objeto subscription populado.","uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"currency":{"type":"string","enum":["BRL"],"default":"BRL","description":"Moeda da cobrança. Só `BRL` — os gateways liquidam em real.","uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"locale":{"type":"string","enum":["pt-BR","en-US","es-ES"],"default":"pt-BR","description":"Idioma do checkout (default 'pt-BR').","uniqueKey":"locale","typeLabel":"enum\u003cstring>"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"Nome do item exibido no checkout.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"integer","minimum":1,"description":"Quantidade do item (inteiro ≥ 1).","isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"integer"},"unitAmount":{"type":"integer","minimum":1,"description":"Preço UNITÁRIO do item, em centavos (inteiro ≥ 1).","isRequired":true,"uniqueKey":"\\items.items.[INDEX].unitAmount","typeLabel":"integer"},"description":{"type":"string","maxLength":2000,"description":"Descrição do item.","uniqueKey":"\\items.items.[INDEX].description","typeLabel":"string"},"imageUrl":{"type":"string","format":"uri","maxLength":2000,"description":"URL da imagem do item.","uniqueKey":"\\items.items.[INDEX].imageUrl","typeLabel":"string\u003curi>"},"chargeType":{"type":"string","enum":["one_time","recurring","activation"],"description":"Eixo de cobrança da linha: ausente/'one_time' em pagamento único; 'recurring'/'activation' espelham PlanItem.kind em mode=subscription.","uniqueKey":"\\items.items.[INDEX].chargeType","typeLabel":"enum\u003cstring>"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"\\items.items.[INDEX].metadata.additionalProperties","typeLabel":"string"},"description":"Metadados livres do item (string → string).","uniqueKey":"\\items.items.[INDEX].metadata","typeLabel":"object"}},"required":["name","quantity","unitAmount"],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"default":[],"description":"Itens do carrinho (unitAmount em centavos); ao menos 1 quando mode=payment.","uniqueKey":"\\items","typeLabel":"object[]"},"splits":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"recipientId":{"type":"string","minLength":1,"description":"Recebedor (`rec_`) que fica com esta fatia.","isRequired":true,"uniqueKey":"splits.oneOf.0.items.[INDEX].recipientId","typeLabel":"string"},"percentage":{"type":"number","minimum":0.01,"maximum":100,"description":"Fatia do valor total, em porcentagem. Aceita decimais (`33.33`).","isRequired":true,"uniqueKey":"splits.oneOf.0.items.[INDEX].percentage","typeLabel":"number"},"liable":{"type":"boolean","description":"Marca o recebedor como responsável por chargebacks. Exatamente um split do array precisa ter `true` — nenhum ou mais de um é recusado.","uniqueKey":"splits.oneOf.0.items.[INDEX].liable","typeLabel":"boolean"},"processingFee":{"type":"boolean","description":"Marca o recebedor como pagador da taxa da plataforma. Aceita `true` ou `false`; opcional. Pode haver mais de um marcado — a taxa é rateada proporcionalmente à fatia (`percentage`) de cada um. Se nenhum split tiver `true`, o dono da conta assume a taxa integral.","uniqueKey":"splits.oneOf.0.items.[INDEX].processingFee","typeLabel":"boolean"}},"required":["recipientId","percentage"],"uniqueKey":"splits.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Divisão de receita por percentual; a soma deve ser exatamente 100.","uniqueKey":"splits.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"recipientId":{"type":"string","minLength":1,"description":"Recebedor (`rec_`) que fica com esta fatia."},"percentage":{"type":"number","minimum":0.01,"maximum":100,"description":"Fatia do valor total, em porcentagem. Aceita decimais (`33.33`)."},"liable":{"type":"boolean","description":"Marca o recebedor como responsável por chargebacks. Exatamente um split do array precisa ter `true` — nenhum ou mais de um é recusado."},"processingFee":{"type":"boolean","description":"Marca o recebedor como pagador da taxa da plataforma. Aceita `true` ou `false`; opcional. Pode haver mais de um marcado — a taxa é rateada proporcionalmente à fatia (`percentage`) de cada um. Se nenhum split tiver `true`, o dono da conta assume a taxa integral."}},"required":["recipientId","percentage"]},"description":"Divisão de receita por percentual; a soma deve ser exatamente 100.","uniqueKey":"splits.oneOf.1","typeLabel":"null"}],"uniqueKey":"splits","typeLabel":"object[] | null"},"branding":{"oneOf":[{"type":"object","properties":{"primaryColor":{"type":"string","pattern":"^#([0-9a-f]{6}|[0-9a-f]{3})$","description":"Cor primária do checkout em hex (#RRGGBB ou #RGB).","uniqueKey":"branding.oneOf.0.primaryColor","typeLabel":"string"},"logoUrl":{"type":"string","format":"uri","maxLength":2000,"description":"URL https do logo exibido no checkout.","uniqueKey":"branding.oneOf.0.logoUrl","typeLabel":"string\u003curi>"},"merchantName":{"type":"string","maxLength":100,"description":"Nome do vendedor exibido no checkout (≤ 100 chars).","uniqueKey":"branding.oneOf.0.merchantName","typeLabel":"string"},"mobileLayout":{"type":"string","enum":["single-page","step-by-step"],"description":"Layout no mobile: 'single-page' ou 'step-by-step'.","uniqueKey":"branding.oneOf.0.mobileLayout","typeLabel":"enum\u003cstring>"},"faviconUrl":{"type":"string","format":"uri","maxLength":2000,"description":"URL https do favicon da página de checkout.","uniqueKey":"branding.oneOf.0.faviconUrl","typeLabel":"string\u003curi>"},"coverUrl":{"type":"string","format":"uri","maxLength":2000,"description":"URL https da imagem de capa do checkout.","uniqueKey":"branding.oneOf.0.coverUrl","typeLabel":"string\u003curi>"}},"description":"Customização visual do checkout.","uniqueKey":"branding.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"primaryColor":{"type":"string","pattern":"^#([0-9a-f]{6}|[0-9a-f]{3})$","description":"Cor primária do checkout em hex (#RRGGBB ou #RGB)."},"logoUrl":{"type":"string","format":"uri","maxLength":2000,"description":"URL https do logo exibido no checkout."},"merchantName":{"type":"string","maxLength":100,"description":"Nome do vendedor exibido no checkout (≤ 100 chars)."},"mobileLayout":{"type":"string","enum":["single-page","step-by-step"],"description":"Layout no mobile: 'single-page' ou 'step-by-step'."},"faviconUrl":{"type":"string","format":"uri","maxLength":2000,"description":"URL https do favicon da página de checkout."},"coverUrl":{"type":"string","format":"uri","maxLength":2000,"description":"URL https da imagem de capa do checkout."}},"description":"Customização visual do checkout.","uniqueKey":"branding.oneOf.1","typeLabel":"null"}],"uniqueKey":"branding","typeLabel":"object | null"},"subscription":{"oneOf":[{"type":"object","properties":{"planId":{"type":"string","minLength":1,"description":"ID de um plano publicado. Com ele, a assinatura nasce do plano — itens, preços e cadência vêm de lá. Sem ele, a assinatura é montada avulsa e `recurrence` e `currency` passam a ser obrigatórios.","uniqueKey":"subscription.oneOf.0.planId","typeLabel":"string"},"recurrence":{"type":"object","properties":{"interval":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":120,"description":"Quantidade de unidades entre cobranças: 1 com unit=month é mensal; 3, trimestral.","isRequired":true,"uniqueKey":"subscription.oneOf.0.recurrence.interval","typeLabel":"integer"},"unit":{"type":"string","enum":["day","week","month","year"],"description":"Unidade do intervalo entre cobranças.","isRequired":true,"uniqueKey":"subscription.oneOf.0.recurrence.unit","typeLabel":"enum\u003cstring>"},"anchor":{"type":"string","enum":["subscription_start","day_of_month"],"default":"subscription_start","description":"O que define a data da próxima cobrança: `subscription_start` (default) usa o aniversário da assinatura; `day_of_month` fixa um dia do mês e exige `anchorDay` com `unit=month`.","uniqueKey":"subscription.oneOf.0.recurrence.anchor","typeLabel":"enum\u003cstring>"},"anchorDay":{"type":"integer","minimum":0,"maximum":31,"description":"Dia da âncora — do mês (1 a 31) ou da semana (0 a 6). Obrigatório quando `anchor` não é `subscription_start`; ignorado quando é.","uniqueKey":"subscription.oneOf.0.recurrence.anchorDay","typeLabel":"integer"}},"required":["interval","unit"],"description":"Com que frequência cobrar. Obrigatório na assinatura avulsa; com `planId`, é herdado do plano.","uniqueKey":"subscription.oneOf.0.recurrence","typeLabel":"object"},"currency":{"type":"string","enum":["BRL"],"description":"Moeda da assinatura. Só `BRL`. Omitido, herda a do link. Obrigatório na assinatura avulsa.","uniqueKey":"subscription.oneOf.0.currency","typeLabel":"enum\u003cstring>"},"trialDays":{"type":"integer","minimum":0,"maximum":365,"description":"Dias de teste antes da primeira cobrança recorrente. `0` ou omitido é sem teste. Com teste, o cartão é o único método aceito.","uniqueKey":"subscription.oneOf.0.trialDays","typeLabel":"integer"},"maxCycles":{"oneOf":[{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Quantos ciclos cobrar antes de encerrar a assinatura. Omitido ou `null`, ela cobra até ser cancelada.","uniqueKey":"subscription.oneOf.0.maxCycles.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"exclusiveMinimum":true,"description":"Quantos ciclos cobrar antes de encerrar a assinatura. Omitido ou `null`, ela cobra até ser cancelada.","uniqueKey":"subscription.oneOf.0.maxCycles.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription.oneOf.0.maxCycles","typeLabel":"integer | null"},"collectionTiming":{"type":"string","enum":["prepaid","postpaid"],"default":"prepaid","description":"Quando cobrar dentro do ciclo: `prepaid` (default) no início, `postpaid` no fim. Em `postpaid`, a primeira cobrança só tem valor se houver item de adesão.","uniqueKey":"subscription.oneOf.0.collectionTiming","typeLabel":"enum\u003cstring>"},"metadata":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"subscription.oneOf.0.metadata.additionalProperties","typeLabel":"any"},"description":"Dados livres seus, devolvidos junto com a assinatura.","uniqueKey":"subscription.oneOf.0.metadata","typeLabel":"object"},"itemCovers":{"type":"object","additionalProperties":{"type":"string","format":"uri","maxLength":2000,"uniqueKey":"subscription.oneOf.0.itemCovers.additionalProperties","typeLabel":"string\u003curi>"},"description":"Imagem de capa por item do plano, indexada pelo id do item (`pli_`). Só apresentação — não afeta o que é cobrado.","uniqueKey":"subscription.oneOf.0.itemCovers","typeLabel":"object"},"maxEnrollmentInstallments":{"type":"integer","minimum":1,"maximum":12,"default":1,"description":"Em quantas parcelas a taxa de adesão pode ser paga. `1` (default) é à vista, até 12. O parcelamento é do canal de venda, não do plano: o mesmo plano pode ser vendido à vista num link e parcelado em outro. Sem cartão habilitado, não tem efeito.","uniqueKey":"subscription.oneOf.0.maxEnrollmentInstallments","typeLabel":"integer"}},"description":"Configuração de recorrência; obrigatória (e exclusiva) quando mode=subscription. Sem `startAt`: um Link é template reutilizável, então não há como adiar \"o início\" de algo que cada comprador ativa em um momento diferente — disponível apenas na venda rápida.","uniqueKey":"subscription.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"planId":{"type":"string","minLength":1,"description":"ID de um plano publicado. Com ele, a assinatura nasce do plano — itens, preços e cadência vêm de lá. Sem ele, a assinatura é montada avulsa e `recurrence` e `currency` passam a ser obrigatórios."},"recurrence":{"type":"object","properties":{"interval":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":120,"description":"Quantidade de unidades entre cobranças: 1 com unit=month é mensal; 3, trimestral."},"unit":{"type":"string","enum":["day","week","month","year"],"description":"Unidade do intervalo entre cobranças."},"anchor":{"type":"string","enum":["subscription_start","day_of_month"],"default":"subscription_start","description":"O que define a data da próxima cobrança: `subscription_start` (default) usa o aniversário da assinatura; `day_of_month` fixa um dia do mês e exige `anchorDay` com `unit=month`."},"anchorDay":{"type":"integer","minimum":0,"maximum":31,"description":"Dia da âncora — do mês (1 a 31) ou da semana (0 a 6). Obrigatório quando `anchor` não é `subscription_start`; ignorado quando é."}},"required":["interval","unit"],"description":"Com que frequência cobrar. Obrigatório na assinatura avulsa; com `planId`, é herdado do plano."},"currency":{"type":"string","enum":["BRL"],"description":"Moeda da assinatura. Só `BRL`. Omitido, herda a do link. Obrigatório na assinatura avulsa."},"trialDays":{"type":"integer","minimum":0,"maximum":365,"description":"Dias de teste antes da primeira cobrança recorrente. `0` ou omitido é sem teste. Com teste, o cartão é o único método aceito."},"maxCycles":{"oneOf":[{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Quantos ciclos cobrar antes de encerrar a assinatura. Omitido ou `null`, ela cobra até ser cancelada."},{"type":"null","minimum":0,"exclusiveMinimum":true,"description":"Quantos ciclos cobrar antes de encerrar a assinatura. Omitido ou `null`, ela cobra até ser cancelada."}]},"collectionTiming":{"type":"string","enum":["prepaid","postpaid"],"default":"prepaid","description":"Quando cobrar dentro do ciclo: `prepaid` (default) no início, `postpaid` no fim. Em `postpaid`, a primeira cobrança só tem valor se houver item de adesão."},"metadata":{"type":"object","additionalProperties":{"oneOf":[{}]},"description":"Dados livres seus, devolvidos junto com a assinatura."},"itemCovers":{"type":"object","additionalProperties":{"type":"string","format":"uri","maxLength":2000},"description":"Imagem de capa por item do plano, indexada pelo id do item (`pli_`). Só apresentação — não afeta o que é cobrado."},"maxEnrollmentInstallments":{"type":"integer","minimum":1,"maximum":12,"default":1,"description":"Em quantas parcelas a taxa de adesão pode ser paga. `1` (default) é à vista, até 12. O parcelamento é do canal de venda, não do plano: o mesmo plano pode ser vendido à vista num link e parcelado em outro. Sem cartão habilitado, não tem efeito."}},"description":"Configuração de recorrência; obrigatória (e exclusiva) quando mode=subscription. Sem `startAt`: um Link é template reutilizável, então não há como adiar \"o início\" de algo que cada comprador ativa em um momento diferente — disponível apenas na venda rápida.","uniqueKey":"subscription.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscription","typeLabel":"object | null"},"requiredFields":{"oneOf":[{"type":"array","items":{"type":"string","enum":["email","document","phone","address"],"uniqueKey":"requiredFields.oneOf.0.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Campos do comprador exigidos no checkout (email, document, phone, address).","uniqueKey":"requiredFields.oneOf.0","typeLabel":"enum\u003cstring>[]"},{"type":"null","items":{"type":"string","enum":["email","document","phone","address"]},"description":"Campos do comprador exigidos no checkout (email, document, phone, address).","uniqueKey":"requiredFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"requiredFields","typeLabel":"enum\u003cstring>[] | null"},"customFields":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":50,"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].key","typeLabel":"string"},"label":{"oneOf":[{"type":"string","maxLength":200,"minLength":1,"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].label.oneOf.0","typeLabel":"string"},{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200,"uniqueKey":"customFields.oneOf.0.items.[INDEX].label.oneOf.1.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].label.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].label","typeLabel":"string | object"},"type":{"type":"string","enum":["text","select","checkbox"],"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"options":{"type":"array","items":{"oneOf":[{"type":"string","maxLength":100,"uniqueKey":"customFields.oneOf.0.items.[INDEX].options.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","required":["value","label"],"properties":{"value":{"type":"string","maxLength":100,"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].options.items.[INDEX].oneOf.1.value","typeLabel":"string"},"label":{"oneOf":[{"type":"string","maxLength":200,"minLength":1,"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].options.items.[INDEX].oneOf.1.label.oneOf.0","typeLabel":"string"},{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200,"uniqueKey":"customFields.oneOf.0.items.[INDEX].options.items.[INDEX].oneOf.1.label.oneOf.1.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].options.items.[INDEX].oneOf.1.label.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"customFields.oneOf.0.items.[INDEX].options.items.[INDEX].oneOf.1.label","typeLabel":"string | object"}},"uniqueKey":"customFields.oneOf.0.items.[INDEX].options.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"customFields.oneOf.0.items.[INDEX].options.items.[INDEX]","typeLabel":"string | object"},"uniqueKey":"customFields.oneOf.0.items.[INDEX].options","typeLabel":"(string | object)[]"},"required":{"type":"boolean","uniqueKey":"customFields.oneOf.0.items.[INDEX].required","typeLabel":"boolean"}},"required":["key","label","type"],"uniqueKey":"customFields.oneOf.0.items.[INDEX]","typeLabel":"object"},"maxItems":20,"description":"Campos customizados do formulário (máx. 20).","uniqueKey":"customFields.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","maxLength":50},"label":{"oneOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200}}]},"type":{"type":"string","enum":["text","select","checkbox"]},"options":{"type":"array","items":{"oneOf":[{"type":"string","maxLength":100},{"type":"object","required":["value","label"],"properties":{"value":{"type":"string","maxLength":100},"label":{"oneOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":200}}]}}}]}},"required":{"type":"boolean"}},"required":["key","label","type"]},"maxItems":20,"description":"Campos customizados do formulário (máx. 20).","uniqueKey":"customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"customFields","typeLabel":"object[] | null"},"successUrl":{"oneOf":[{"type":"string","format":"uri","maxLength":2000,"description":"URL https de redirecionamento após pagamento aprovado.","uniqueKey":"successUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","maxLength":2000,"description":"URL https de redirecionamento após pagamento aprovado.","uniqueKey":"successUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"successUrl","typeLabel":"string\u003curi> | null"},"cancelUrl":{"oneOf":[{"type":"string","format":"uri","maxLength":2000,"description":"URL https de redirecionamento quando o comprador cancela.","uniqueKey":"cancelUrl.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","maxLength":2000,"description":"URL https de redirecionamento quando o comprador cancela.","uniqueKey":"cancelUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancelUrl","typeLabel":"string\u003curi> | null"},"metadata":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.oneOf.0.additionalProperties","typeLabel":"string"},"description":"Metadados do seller (string → string), consultáveis no próprio link. Não são propagados à Transaction; para correlacionar vendas ao link nos webhooks, use o additionalInfo.checkoutLinkId da Transaction.","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"metadata.oneOf.1.additionalProperties","typeLabel":"string"},"description":"Metadados do seller (string → string), consultáveis no próprio link. Não são propagados à Transaction; para correlacionar vendas ao link nos webhooks, use o additionalInfo.checkoutLinkId da Transaction.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"expirationMinutes":{"oneOf":[{"type":"integer","minimum":5,"maximum":43200,"description":"Expiração da sessão em minutos (5 a 43200 = 30 dias).","uniqueKey":"expirationMinutes.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":5,"maximum":43200,"description":"Expiração da sessão em minutos (5 a 43200 = 30 dias).","uniqueKey":"expirationMinutes.oneOf.1","typeLabel":"null"}],"uniqueKey":"expirationMinutes","typeLabel":"integer | null"}},"required":["paymentMethods"],"uniqueKey":"","typeLabel":"object"},"examples":{"apenasCartaoParcelamentoSimples":{"title":"apenasCartaoParcelamentoSimples","summary":"Apenas cartão (parcelamento simples)","description":"Uma única aba \"Cartão\". Seletor mostra 1× sem juros, 2–6× com juros.","value":{"name":"Apenas cartão","items":[{"name":"Produto Teste","quantity":1,"unitAmount":19900}],"paymentMethods":{"card":{"enabled":true,"installments":{"maxInstallments":6,"freeInstallments":1}}}}},"apenasPixExpiraEm1h":{"title":"apenasPixExpiraEm1h","summary":"Apenas PIX (expira em 1h)","description":"Aba PIX única, QR code expira em 1h.","value":{"name":"Apenas PIX","items":[{"name":"Doação","quantity":1,"unitAmount":5000}],"paymentMethods":{"pix":{"enabled":true,"expiresIn":3600}}}},"apenasBoletoVenceEm5Dias":{"title":"apenasBoletoVenceEm5Dias","summary":"Apenas boleto (vence em 5 dias)","description":"Aba boleto única, vencimento em 5 dias.","value":{"name":"Apenas boleto","items":[{"name":"Mensalidade","quantity":1,"unitAmount":12000}],"paymentMethods":{"boleto":{"enabled":true,"dueDateDays":5}}}},"todosOsMetodos":{"title":"todosOsMetodos","summary":"Todos os métodos","description":"3 abas; cartão até 12× sem juros; PIX 30min; boleto 3 dias.","value":{"name":"Todos os métodos","items":[{"name":"E-book Premium","quantity":1,"unitAmount":9900}],"paymentMethods":{"card":{"enabled":true,"installments":{"maxInstallments":12,"freeInstallments":12}},"pix":{"enabled":true,"expiresIn":1800},"boleto":{"enabled":true,"dueDateDays":3}}}},"multiplosItens":{"title":"multiplosItens","summary":"Múltiplos itens","description":"3 linhas de item, total R\\$ 998,00 (`49900 + 4900 + 3 × 15000`).","value":{"name":"Múltiplos itens","items":[{"name":"Curso Backend","quantity":1,"unitAmount":49900},{"name":"Material PDF","quantity":1,"unitAmount":4900},{"name":"Mentoria (3x)","quantity":3,"unitAmount":15000}],"paymentMethods":{"card":{"enabled":true}}}},"itemComImagemEDescricao":{"title":"itemComImagemEDescricao","summary":"Item com imagem e descrição","description":"Thumbnail à esquerda; descrição abaixo do nome; quantidade 2; total R\\$ 158,00.","value":{"name":"Item com imagem","items":[{"name":"Camiseta Tech — Tamanho M","description":"100% algodão, estampa em silk","imageUrl":"https://exemplo.com/camiseta-m.jpg","quantity":2,"unitAmount":7900}],"paymentMethods":{"card":{"enabled":true},"pix":{"enabled":true}}}},"brandingCorLogoNome":{"title":"brandingCorLogoNome","summary":"Branding (cor + logo + nome)","description":"Botões/ações em verde; logo no header; nome \"Loja Verde\" exibido.","value":{"name":"Branding completo","items":[{"name":"Produto","quantity":1,"unitAmount":5000}],"paymentMethods":{"pix":{"enabled":true}},"branding":{"primaryColor":"#16a34a","merchantName":"Loja Verde","logoUrl":"https://exemplo.com/logo-verde.png"}}},"localeEnUsEsEs":{"title":"localeEnUsEsEs","summary":"Locale en-US / es-ES","description":"Use `\"locale\": \"es-ES\"` para a página em espanhol. A página inteira segue o idioma escolhido.","value":{"name":"Inglês","locale":"en-US","items":[{"name":"Online Course","quantity":1,"unitAmount":29900}],"paymentMethods":{"card":{"enabled":true}}}},"enderecoObrigatorioRequiredFields":{"title":"enderecoObrigatorioRequiredFields","summary":"Endereço obrigatório (required fields)","description":"O form de endereço completo aparece antes do pagamento.","value":{"name":"Endereço obrigatório","items":[{"name":"Produto físico","quantity":1,"unitAmount":8900}],"paymentMethods":{"card":{"enabled":true}},"requiredFields":["email","document","phone","address"]}},"customFieldsTextSelectCheckbox":{"title":"customFieldsTextSelectCheckbox","summary":"Custom fields (text + select + checkbox)","description":"3 campos extras; select com 3 opções; checkbox opcional. Bloqueia o confirm sem\r\n `experience_level`.","value":{"name":"Custom fields","items":[{"name":"Workshop","quantity":1,"unitAmount":19900}],"paymentMethods":{"pix":{"enabled":true}},"customFields":[{"key":"company_name","label":"Nome da empresa","type":"text","required":false},{"key":"experience_level","label":{"pt-BR":"Nível de experiência","en-US":"Experience level"},"type":"select","options":[{"value":"junior","label":"Júnior"},{"value":"pleno","label":"Pleno"},{"value":"senior","label":"Sênior"}],"required":true},{"key":"newsletter","label":"Quero receber novidades por e-mail","type":"checkbox"}]}},"splits7030Marketplace":{"title":"splits7030Marketplace","summary":"Splits 70/30 (marketplace)","description":"Comprador vê total R\\$ 100,00; após pagar, R\\$ 70 vão para o seller principal e R\\$ 30 para a\r\n plataforma.","value":{"name":"Marketplace 70/30","items":[{"name":"Pedido marketplace","quantity":1,"unitAmount":10000}],"paymentMethods":{"card":{"enabled":true},"pix":{"enabled":true}},"splits":[{"recipientId":"rec_seller_principal","percentage":70,"liable":true},{"recipientId":"rec_plataforma","percentage":30}]}},"parcelamentoComJurosCompostos":{"title":"parcelamentoComJurosCompostos","summary":"Parcelamento com juros compostos","description":"1×/2×/3× sem juros; 4–10× com 2,99% ao mês (preço/Tabela). Comprador vê o valor da parcela e o\r\n total final.","value":{"name":"Juros compostos","items":[{"name":"Notebook","quantity":1,"unitAmount":350000}],"paymentMethods":{"card":{"enabled":true,"installments":{"maxInstallments":10,"freeInstallments":3,"interestRate":2.99,"interestType":"compound"}}}}},"cartaoCom3dSecure":{"title":"cartaoCom3dSecure","summary":"Cartão com 3D Secure","description":"Liga a autenticação 3DS nos pagamentos com cartão deste link. Exige 3DS habilitado para a\r\n conta — sem a habilitação o campo é aceito e ignorado (nenhum erro, nenhum desafio); habilitando\r\n a conta depois, este link passa a desafiar sozinho.","value":{"name":"Cartão com 3DS","items":[{"name":"Produto de alto valor","quantity":1,"unitAmount":250000}],"paymentMethods":{"card":{"enabled":true,"threeDSecure":true,"installments":{"maxInstallments":6,"freeInstallments":6}}}}},"successCancelUrls":{"title":"successCancelUrls","summary":"Success / Cancel URLs","description":"Após aprovação, o comprador é redirecionado para `successUrl`. Você pode usar\r\n `{CHECKOUT_SESSION_ID}` como placeholder — substituímos pelo `cs_*` antes de redirecionar.","value":{"name":"Com redirects","items":[{"name":"Produto","quantity":1,"unitAmount":5000}],"paymentMethods":{"card":{"enabled":true}},"successUrl":"https://meu-site.com/pedido/obrigado?session={CHECKOUT_SESSION_ID}","cancelUrl":"https://meu-site.com/carrinho"}},"kitchenSinkQuaseTodosOsCampos":{"title":"kitchenSinkQuaseTodosOsCampos","summary":"Kitchen-sink (quase todos os campos)","description":"2 itens, 3 métodos, combined até 3 entradas, split 80/20, branding completo, endereço obrigatório,\r\n 2 custom fields, redirects, expira em 3 dias.","value":{"name":"Kitchen-sink","description":"Link com tudo configurado","mode":"payment","currency":"BRL","locale":"pt-BR","items":[{"name":"Produto A","description":"...","imageUrl":"https://...","quantity":2,"unitAmount":9900},{"name":"Produto B","quantity":1,"unitAmount":4900}],"paymentMethods":{"card":{"enabled":true,"installments":{"maxInstallments":12,"freeInstallments":6,"interestRate":1.99}},"pix":{"enabled":true,"expiresIn":3600},"boleto":{"enabled":true,"dueDateDays":3},"combined":{"enabled":true,"maxPaymentsCount":3,"minAmountPerPayment":1000}},"splits":[{"recipientId":"rec_principal","percentage":80,"liable":true},{"recipientId":"rec_afiliado","percentage":20}],"branding":{"primaryColor":"#1e3b79","merchantName":"Empresa X","logoUrl":"https://...","mobileLayout":"step-by-step"},"requiredFields":["email","document","phone","address"],"customFields":[{"key":"company","label":"Empresa","type":"text","required":false},{"key":"newsletter","label":"Quero novidades","type":"checkbox"}],"successUrl":"https://meu-site.com/obrigado","cancelUrl":"https://meu-site.com/cancelado","metadata":{"campaign":"lancamento-2026"},"expirationMinutes":4320}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"80504552-a5c6-46dd-b388-905c7611f365":{"description":"Link criado","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Identificador único do registro.","uniqueKey":"id","typeLabel":"string"},"slug":{"oneOf":[{"type":"string","description":"Slug único global usado na URL pública /c/{slug}.","uniqueKey":"slug.oneOf.0","typeLabel":"string"},{"type":"null","description":"Slug único global usado na URL pública /c/{slug}.","uniqueKey":"slug.oneOf.1","typeLabel":"null"}],"uniqueKey":"slug","typeLabel":"string | null"},"status":{"type":"string","description":"Estado atual do registro.","uniqueKey":"status","typeLabel":"string"},"mode":{"type":"string","description":"Modo do checkout: 'payment' (pagamento único) ou 'subscription' (assinatura).","uniqueKey":"mode","typeLabel":"string"},"currency":{"type":"string","description":"Moeda no padrão ISO 4217 (ex.: BRL).","uniqueKey":"currency","typeLabel":"string"},"locale":{"type":"string","description":"Idioma do checkout (ex.: pt-BR, en-US, es-ES).","uniqueKey":"locale","typeLabel":"string"},"name":{"oneOf":[{"type":"string","description":"Nome de exibição do registro.","uniqueKey":"name.oneOf.0","typeLabel":"string"},{"type":"null","description":"Nome de exibição do registro.","uniqueKey":"name.oneOf.1","typeLabel":"null"}],"uniqueKey":"name","typeLabel":"string | null"},"description":{"oneOf":[{"type":"string","description":"Descrição exibida no checkout.","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Descrição exibida no checkout.","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"sellable":{"type":"boolean","description":"Se o Link pode vender agora. É false quando um recebedor do splits, ou o dono da conta, não está ativo no PSP — o comprador vê uma página de indisponível. Independente do status.","uniqueKey":"sellable","typeLabel":"boolean"},"config":{"type":"object","description":"Snapshot da configuração do checkout (formas de pagamento, itens e personalização visual).","uniqueKey":"config","typeLabel":"object"},"requiredFields":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"requiredFields.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Campos do comprador exigidos no checkout (ex.: email, document, phone, address).","uniqueKey":"requiredFields.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Campos do comprador exigidos no checkout (ex.: email, document, phone, address).","uniqueKey":"requiredFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"requiredFields","typeLabel":"string[] | null"},"customFields":{"oneOf":[{"type":"array","items":{"type":"object","uniqueKey":"customFields.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Definições dos campos personalizados solicitados no checkout.","uniqueKey":"customFields.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object"},"description":"Definições dos campos personalizados solicitados no checkout.","uniqueKey":"customFields.oneOf.1","typeLabel":"null"}],"uniqueKey":"customFields","typeLabel":"object[] | null"},"successUrl":{"oneOf":[{"type":"string","description":"URL de redirecionamento após o pagamento ser concluído com sucesso.","uniqueKey":"successUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL de redirecionamento após o pagamento ser concluído com sucesso.","uniqueKey":"successUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"successUrl","typeLabel":"string | null"},"cancelUrl":{"oneOf":[{"type":"string","description":"URL de redirecionamento quando o comprador cancela o checkout.","uniqueKey":"cancelUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL de redirecionamento quando o comprador cancela o checkout.","uniqueKey":"cancelUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"cancelUrl","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"object","description":"Metadados livres (pares chave-valor) para uso do integrador; não afeta o processamento.","uniqueKey":"metadata.oneOf.0","typeLabel":"object"},{"type":"null","description":"Metadados livres (pares chave-valor) para uso do integrador; não afeta o processamento.","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"object | null"},"expirationMinutes":{"oneOf":[{"type":"integer","description":"Tempo de validade da sessão de checkout, em minutos.","uniqueKey":"expirationMinutes.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tempo de validade da sessão de checkout, em minutos.","uniqueKey":"expirationMinutes.oneOf.1","typeLabel":"null"}],"uniqueKey":"expirationMinutes","typeLabel":"integer | null"},"createdAt":{"type":"string","format":"date-time","description":"Data e hora de criação do registro (ISO 8601).","uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"updatedAt":{"type":"string","format":"date-time","description":"Data e hora da última atualização do registro (ISO 8601).","uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"url":{"type":"string","description":"URL pública do checkout para o comprador finalizar o pagamento.","uniqueKey":"url","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"chk_byd8p3p79re859jpkmr0j65n3","slug":"curso-marketing-digital","status":"active","mode":"payment","currency":"BRL","locale":"pt-BR","name":"Curso de Marketing Digital","description":"Acesso vitalício ao curso completo","sellable":true,"config":{"items":[{"name":"Curso de Marketing Digital","description":"Acesso vitalício","imageUrl":"https://cdn.z2pay.com/products/curso-mkt.png","quantity":1,"unitAmount":49700,"chargeType":"one_time"}],"paymentMethods":{"card":{"enabled":true,"installments":{"maxInstallments":12,"freeInstallments":1}},"pix":{"enabled":true,"expiresIn":3600},"boleto":{"enabled":false}},"branding":{"primaryColor":"#5B21B6","merchantName":"Academia Online"}},"requiredFields":["email","document","phone"],"customFields":null,"successUrl":"https://academia.com/obrigado","cancelUrl":"https://academia.com/checkout","metadata":{"campaign":"blackfriday"},"expirationMinutes":1440,"createdAt":"2025-06-29T13:45:30.000Z","updatedAt":"2025-06-29T13:45:30.000Z","url":"https://pay.z2pay.com/c/curso-marketing-digital"},"examples":{"Example":{"title":"Example","value":{"id":"chk_byd8p3p79re859jpkmr0j65n3","slug":"curso-marketing-digital","status":"active","mode":"payment","currency":"BRL","locale":"pt-BR","name":"Curso de Marketing Digital","description":"Acesso vitalício ao curso completo","sellable":true,"config":{"items":[{"name":"Curso de Marketing Digital","description":"Acesso vitalício","imageUrl":"https://cdn.z2pay.com/products/curso-mkt.png","quantity":1,"unitAmount":49700,"chargeType":"one_time"}],"paymentMethods":{"card":{"enabled":true,"installments":{"maxInstallments":12,"freeInstallments":1}},"pix":{"enabled":true,"expiresIn":3600},"boleto":{"enabled":false}},"branding":{"primaryColor":"#5B21B6","merchantName":"Academia Online"}},"requiredFields":["email","document","phone"],"customFields":null,"successUrl":"https://academia.com/obrigado","cancelUrl":"https://academia.com/checkout","metadata":{"campaign":"blackfriday"},"expirationMinutes":1440,"createdAt":"2025-06-29T13:45:30.000Z","updatedAt":"2025-06-29T13:45:30.000Z","url":"https://pay.z2pay.com/c/curso-marketing-digital"}}},"exampleType":"examples"}},"exampleType":"examples"},"08a38672-0c52-427c-be4e-30c543d874ac":{"description":"Requisição inválida — algum parâmetro ou campo do corpo não passou na validação","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Identificador estável do erro. É por ele que você deve ramificar, não pela mensagem.","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Descrição legível. Pode mudar sem aviso e não deve ser usada em condicional.","uniqueKey":"error.message","typeLabel":"string"},"issues":{"type":"array","description":"Um item por campo rejeitado. Nunca vem vazio: se há 400 de validação, há pelo menos um.","items":{"type":"object","properties":{"path":{"type":"string","description":"Campo que falhou. Vem vazio quando o erro é do corpo como um todo.","uniqueKey":"error.issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","description":"O que há de errado com esse campo.","uniqueKey":"error.issues.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.issues","typeLabel":"object[]"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"VALIDATION_ERROR","message":"Validation failed","issues":[{"path":"status","message":"Status inválido. Valores aceitos: pending, waiting_payment, paid, refused, canceled, refunded"},{"path":"startDate","message":"Data deve ser ISO 8601 com timezone (ex.: 2026-06-24T00:00:00Z)"}]}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"Validation failed","issues":[{"path":"status","message":"Status inválido. Valores aceitos: pending, waiting_payment, paid, refused, canceled, refunded"},{"path":"startDate","message":"Data deve ser ISO 8601 com timezone (ex.: 2026-06-24T00:00:00Z)"}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"54e4e060-7a09-4274-a296-f4921765b6ef":{"description":"Chave de API ausente, malformada ou inválida","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Identificador estável do erro. É por ele que você deve ramificar, não pela mensagem.","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Descrição legível. Pode mudar sem aviso e não deve ser usada em condicional.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"UNAUTHORIZED","message":"Invalid API key"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"UNAUTHORIZED","message":"Invalid API key"}}}},"exampleType":"examples"}},"exampleType":"examples"},"99184605-f38f-4002-bd06-2cc0cd90e967":{"description":"A chave é válida, mas não tem permissão para esta operação — é o caso de usar uma publishable key (pk) onde a rota exige uma secret key (sk)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Identificador estável do erro. É por ele que você deve ramificar, não pela mensagem.","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Descrição legível. Pode mudar sem aviso e não deve ser usada em condicional.","uniqueKey":"error.message","typeLabel":"string"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"FORBIDDEN","message":"Forbidden — insufficient permissions"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"FORBIDDEN","message":"Forbidden — insufficient permissions"}}}},"exampleType":"examples"}},"exampleType":"examples"},"dec6d778-9a5e-455e-8b1b-42fede11fce6":{"description":"Já existe uma requisição em andamento com esta Idempotency-Key. A API aguarda a primeira concluir por até 5 segundos antes de responder assim","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Mensagem do conflito de idempotência. Aqui `error` é texto, não objeto — ramifique pelo status HTTP.","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"A request with this idempotency key is already being processed"},"examples":{"Example":{"title":"Example","value":{"error":"A request with this idempotency key is already being processed"}}},"exampleType":"examples"}},"exampleType":"examples"},"b44a17a1-2fd1-4167-96cb-63f5fde47e86":{"description":"Idempotency-Key já usada com um corpo diferente. Use uma chave nova para uma operação diferente","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Mensagem do conflito de idempotência. Aqui `error` é texto, não objeto — ramifique pelo status HTTP.","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Idempotency key already used with a different request body"},"examples":{"Example":{"title":"Example","value":{"error":"Idempotency key already used with a different request body"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"b0315a4d-90d7-4514-bd7b-d4d831956845":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key unificada (z2_{live|test}_{sk|pk}_...) — secret (sk) para integração backend, publishable (pk) para uso no frontend público","scopes":[],"schemeName":"apiKey"}}},"servers":{"8c069c60-22eb-46cf-9542-3d6b0e61c045":{"url":"https://api.sandbox.z2pay.com/v1","description":"Sandbox"},"932dfb92-1fe2-4bcd-9b6e-8e3a45fa4be5":{"url":"https://api.z2pay.com/v1","description":"Produção"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key unificada (z2_{live|test}_{sk|pk}_...) — secret (sk) para integração backend, publishable (pk) para uso no frontend público","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","description":"API key unificada (z2_{live|test}_{sk|pk}_...) — secret (sk) para integração backend, publishable (pk) para uso no frontend público","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"}]},"originalFileLocation":"openapi/checkout.json"},"subdomain":"z2pay","siteName":"Z2Pay Developers","title":"Criar checkout link - Z2Pay Developers","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T20:52:58.716Z","originalFileLocation":"pt-BR/checkout/links/create.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=\"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Z2Pay Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/z2pay/srVXNcXgQMZP4L6f/_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/z2pay/srVXNcXgQMZP4L6f/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/z2pay/srVXNcXgQMZP4L6f/_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/z2pay/srVXNcXgQMZP4L6f/_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/z2pay/srVXNcXgQMZP4L6f/_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/z2pay/srVXNcXgQMZP4L6f/_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/z2pay/srVXNcXgQMZP4L6f/_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/z2pay/srVXNcXgQMZP4L6f/_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/z2pay/srVXNcXgQMZP4L6f/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Criar checkout link - Z2Pay Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Z2Pay Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.z2pay.com/pt-BR/checkout/links/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://z2pay.mintlify.site/_mintlify/api/og/v2?division=Links\u0026amp;title=Criar+checkout+link\u0026amp;description=Cria+um+template+de+cobran%C3%A7a+reutiliz%C3%A1vel+e+devolve+a+URL+pronta+para+divulgar.\u0026amp;theme=c62ba0724a04aec70ad77de9\u0026amp;signature=80cc30fe7115070a529ebe4d50473d960540eceb93d78e4d4182fdb76ae79007\">\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=\"Criar checkout link - Z2Pay Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://z2pay.mintlify.site/_mintlify/api/og/v2?division=Links\u0026amp;title=Criar+checkout+link\u0026amp;description=Cria+um+template+de+cobran%C3%A7a+reutiliz%C3%A1vel+e+devolve+a+URL+pronta+para+divulgar.\u0026amp;theme=c62ba0724a04aec70ad77de9\u0026amp;signature=80cc30fe7115070a529ebe4d50473d960540eceb93d78e4d4182fdb76ae79007\">\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/z2pay/srVXNcXgQMZP4L6f/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Z2Pay Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#002f80\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.z2pay.com/pt-BR/checkout/links/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pt-BR/checkout/links/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.z2pay.com/#organization\",\"name\":\"Z2Pay Developers\",\"url\":\"https://docs.z2pay.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/z2pay/tvVUaIGzeIoQL011/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=tvVUaIGzeIoQL011\u0026q=85\u0026s=3d225dd050b97e9ab691ddc9cd6dfcd6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.z2pay.com#website\",\"name\":\"Z2Pay Developers\",\"url\":\"https://docs.z2pay.com\",\"publisher\":{\"@id\":\"https://docs.z2pay.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/links/create#webpage\",\"url\":\"https://docs.z2pay.com/pt-BR/checkout/links/create\",\"name\":\"Criar checkout link\",\"description\":\"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.\",\"dateModified\":\"2026-11-24T20:52:58.716Z\",\"isPartOf\":{\"@id\":\"https://docs.z2pay.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/links/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/links/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Checkout\",\"item\":\"https://docs.z2pay.com/pt-BR/checkout/visao-geral\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Links\",\"item\":\"https://docs.z2pay.com/pt-BR/checkout/links\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Criar checkout link\",\"item\":\"https://docs.z2pay.com/pt-BR/checkout/links/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/links/create#apireference\",\"headline\":\"Criar checkout link\",\"name\":\"Criar checkout link\",\"description\":\"Cria um template de cobrança reutilizável e devolve a URL pronta para divulgar.\",\"url\":\"https://docs.z2pay.com/pt-BR/checkout/links/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/links/create#webpage\"},\"dateModified\":\"2026-11-24T20:52:58.716Z\",\"publisher\":{\"@id\":\"https://docs.z2pay.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.z2pay.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Z2Pay Developers\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Z2Pay Developers\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pt-BR/checkout/links/create.md","siteName":"Z2Pay Developers","nav":{"global":null,"tabs":[{"tab":"Guias","pages":[{"title":"Guias","href":"/pt-BR/introducao"}]},{"tab":"Referência da API","groups":[{"group":"Cobranças","pages":[{"group":"Transações","pages":[{"sidebarTitle":"Visão geral","title":"Transações","href":"/pt-BR/transactions"},{"title":"Listar transações","openapi":"openapi/psp.json GET /transactions","href":"/pt-BR/transactions/list"},{"title":"Criar transação","openapi":"openapi/psp.json POST /transactions","href":"/pt-BR/transactions/create"},{"title":"Buscar transação por ID","openapi":"openapi/psp.json GET /transactions/{id}","href":"/pt-BR/transactions/get"},{"title":"Estornar transação","openapi":"openapi/psp.json POST /transactions/{id}/refund","href":"/pt-BR/transactions/refund"},{"title":"Processar pagamentos","openapi":"openapi/psp.json POST /transactions/{transactionId}/payments/process","href":"/pt-BR/transactions/payments-process"}]},{"group":"Pagamentos","pages":[{"sidebarTitle":"Visão geral","title":"Pagamentos","href":"/pt-BR/payments"},{"title":"Buscar pagamento por ID","openapi":"openapi/psp.json GET /payments/{paymentId}","href":"/pt-BR/payments/get"},{"title":"Estornar pagamento","openapi":"openapi/psp.json POST /payments/{paymentId}/refund","href":"/pt-BR/payments/refund"}]},{"group":"Reembolsos","pages":[{"sidebarTitle":"Visão geral","title":"Reembolsos","href":"/pt-BR/refunds"},{"title":"Listar reembolsos","openapi":"openapi/psp.json GET /refunds","href":"/pt-BR/refunds/list"},{"title":"Buscar reembolso por ID","openapi":"openapi/psp.json GET /refunds/{id}","href":"/pt-BR/refunds/get"},{"title":"Aprovar reembolso","openapi":"openapi/psp.json POST /refunds/{id}/approve","href":"/pt-BR/refunds/approve"},{"title":"Informar dados bancários do reembolso","openapi":"openapi/psp.json POST /refunds/{id}/bank-details","href":"/pt-BR/refunds/bank-details"},{"title":"Confirmar reembolso realizado","openapi":"openapi/psp.json POST /refunds/{id}/confirm","href":"/pt-BR/refunds/confirm"},{"title":"Recusar reembolso","openapi":"openapi/psp.json POST /refunds/{id}/refuse","href":"/pt-BR/refunds/refuse"}]},{"group":"Chargebacks","pages":[{"sidebarTitle":"Visão geral","title":"Chargebacks","href":"/pt-BR/chargebacks"},{"title":"Listar chargebacks","openapi":"openapi/psp.json GET /chargebacks","href":"/pt-BR/chargebacks/list"},{"title":"Buscar chargeback por ID","openapi":"openapi/psp.json GET /chargebacks/{id}","href":"/pt-BR/chargebacks/get"},{"title":"Listar documentos do chargeback","openapi":"openapi/psp.json GET /chargebacks/{id}/documents","href":"/pt-BR/chargebacks/documents"},{"title":"Enviar documento","openapi":"openapi/psp.json POST /chargebacks/{id}/documents","href":"/pt-BR/chargebacks/documents-post"},{"title":"Baixar documento","openapi":"openapi/psp.json GET /chargebacks/{id}/documents/{documentId}/download","href":"/pt-BR/chargebacks/documents-download"}]},{"group":"Taxas","pages":[{"sidebarTitle":"Visão geral","title":"Taxas","href":"/pt-BR/fees"},{"title":"Tabela de taxas da conta","openapi":"openapi/psp.json GET /fees","href":"/pt-BR/fees/list"}]}]},{"group":"Clientes \u0026 Cartões","pages":[{"group":"Clientes","pages":[{"sidebarTitle":"Visão geral","title":"Clientes","href":"/pt-BR/customers"},{"title":"Listar clientes","openapi":"openapi/psp.json GET /customers","href":"/pt-BR/customers/list"},{"title":"Criar cliente","openapi":"openapi/psp.json POST /customers","href":"/pt-BR/customers/create"},{"title":"Buscar cliente por ID","openapi":"openapi/psp.json GET /customers/{id}","href":"/pt-BR/customers/get"},{"title":"Atualizar cliente","openapi":"openapi/psp.json PATCH /customers/{id}","href":"/pt-BR/customers/update"}]},{"group":"Cartões","pages":[{"sidebarTitle":"Visão geral","title":"Cartões","href":"/pt-BR/cards"},{"title":"Listar cartões do cliente","openapi":"openapi/psp.json GET /customers/{customerId}/cards","href":"/pt-BR/cards/list"},{"title":"Salvar cartão a partir de um token","openapi":"openapi/psp.json POST /customers/{customerId}/cards","href":"/pt-BR/cards/create"},{"title":"Buscar cartão por ID","openapi":"openapi/psp.json GET /customers/{customerId}/cards/{cardId}","href":"/pt-BR/cards/get"},{"title":"Desativar cartão","openapi":"openapi/psp.json DELETE /customers/{customerId}/cards/{cardId}","href":"/pt-BR/cards/delete"}]},{"title":"Tokenizer","href":"/pt-BR/tokenizer"}]},{"group":"Checkout","pages":[{"title":"Checkout: visão geral","sidebarTitle":"Visão geral","href":"/pt-BR/checkout/visao-geral"},{"group":"Links","pages":[{"sidebarTitle":"Visão geral","title":"Links","href":"/pt-BR/checkout/links"},{"title":"Listar checkout links","description":"Lista paginada dos seus templates de cobrança, com filtros por status, tipo e nome de item.","openapi":"openapi/checkout.json GET /checkout/links","href":"/pt-BR/checkout/links/list"},{"title":"Criar checkout link","openapi":"openapi/checkout.json POST /checkout/links","href":"/pt-BR/checkout/links/create"},{"title":"Buscar checkout link","description":"Retorna a configuração completa de um template, com itens, métodos, splits e branding.","openapi":"openapi/checkout.json GET /checkout/links/{id}","href":"/pt-BR/checkout/links/get"},{"title":"Atualizar checkout link","openapi":"openapi/checkout.json PATCH /checkout/links/{id}","href":"/pt-BR/checkout/links/update"},{"title":"Arquivar checkout link","openapi":"openapi/checkout.json DELETE /checkout/links/{id}","href":"/pt-BR/checkout/links/delete"},{"title":"Listar sessions","openapi":"openapi/checkout.json GET /checkout/sessions","href":"/pt-BR/checkout/links/session-list"},{"title":"Buscar session","openapi":"openapi/checkout.json GET /checkout/sessions/{id}","href":"/pt-BR/checkout/links/session-get"},{"title":"Criar session","openapi":"openapi/checkout.json POST /checkout/sessions","href":"/pt-BR/checkout/links/session-create"}]},{"group":"Vendas rápidas","pages":[{"sidebarTitle":"Visão geral","title":"Vendas rápidas","href":"/pt-BR/checkout/charges"},{"title":"Listar vendas rápidas","openapi":"openapi/checkout.json GET /checkout/charges","href":"/pt-BR/checkout/charges/list"},{"title":"Criar venda rápida","openapi":"openapi/checkout.json POST /checkout/charges","href":"/pt-BR/checkout/charges/create"},{"title":"Buscar venda rápida","openapi":"openapi/checkout.json GET /checkout/charges/{id}","href":"/pt-BR/checkout/charges/get"},{"title":"Cancelar venda rápida","openapi":"openapi/checkout.json POST /checkout/charges/{id}/cancel","href":"/pt-BR/checkout/charges/cancel"}]},{"group":"Maquininha","pages":[{"sidebarTitle":"Visão geral","title":"Maquininha","href":"/pt-BR/checkout/pos"},{"title":"Criar intenção de pagamento","openapi":"openapi/checkout.json POST /pos/intents","href":"/pt-BR/checkout/pos/create"},{"title":"Listar intenções de pagamento","openapi":"openapi/checkout.json GET /pos/intents","href":"/pt-BR/checkout/pos/list"},{"title":"Buscar intenção de pagamento","openapi":"openapi/checkout.json GET /pos/intents/{id}","href":"/pt-BR/checkout/pos/get"},{"title":"Consultar situação da intenção","openapi":"openapi/checkout.json GET /public/pos/intents/{id}/status","href":"/pt-BR/checkout/pos/status"},{"title":"Cancelar intenção de pagamento","openapi":"openapi/checkout.json POST /pos/intents/{id}/cancel","href":"/pt-BR/checkout/pos/cancel"}]},{"title":"Integrar a maquininha","href":"/pt-BR/checkout/maquininha"}]},{"group":"Cobrança recorrente","pages":[{"title":"Assinaturas: visão geral","sidebarTitle":"Visão geral","href":"/pt-BR/subscriptions/visao-geral"},{"group":"Planos","pages":[{"sidebarTitle":"Visão geral","title":"Planos e Preços","href":"/pt-BR/subscriptions/plans"},{"title":"Criar plano","openapi":"openapi/billing.json POST /plans","href":"/pt-BR/subscriptions/plans/create"},{"title":"Listar planos","openapi":"openapi/billing.json GET /plans","href":"/pt-BR/subscriptions/plans/list"},{"title":"Buscar plano por ID","openapi":"openapi/billing.json GET /plans/{id}","href":"/pt-BR/subscriptions/plans/get"},{"title":"Atualizar plano","openapi":"openapi/billing.json PATCH /plans/{id}","href":"/pt-BR/subscriptions/plans/update"},{"title":"Arquivar plano","openapi":"openapi/billing.json POST /plans/{id}/archive","href":"/pt-BR/subscriptions/plans/archive"}]},{"group":"Itens do plano","pages":[{"title":"Adicionar item ao plano","openapi":"openapi/billing.json POST /plans/{id}/items","href":"/pt-BR/subscriptions/plans/items"},{"title":"Atualizar item do plano","openapi":"openapi/billing.json PATCH /plans/{id}/items/{itemId}","href":"/pt-BR/subscriptions/plans/items-update"},{"title":"Arquivar item do plano","openapi":"openapi/billing.json DELETE /plans/{id}/items/{itemId}","href":"/pt-BR/subscriptions/plans/items-delete"}]},{"group":"Preços","pages":[{"title":"Criar versão de preço","openapi":"openapi/billing.json POST /plans/{id}/prices","href":"/pt-BR/subscriptions/plans/prices-post"},{"title":"Listar versões de preço","openapi":"openapi/billing.json GET /plans/{id}/prices","href":"/pt-BR/subscriptions/plans/prices"},{"title":"Arquivar versão de preço","openapi":"openapi/billing.json POST /plans/{id}/prices/{priceId}/archive","href":"/pt-BR/subscriptions/plans/prices-archive"}]},{"group":"Assinaturas","pages":[{"sidebarTitle":"Visão geral","title":"Assinaturas","href":"/pt-BR/subscriptions"},{"title":"Criar assinatura","openapi":"openapi/billing.json POST /subscriptions","href":"/pt-BR/subscriptions/create"},{"title":"Listar assinaturas","openapi":"openapi/billing.json GET /subscriptions","href":"/pt-BR/subscriptions/list"},{"title":"Buscar assinatura por ID","openapi":"openapi/billing.json GET /subscriptions/{id}","href":"/pt-BR/subscriptions/get"},{"title":"Atualizar forma de pagamento","openapi":"openapi/billing.json POST /subscriptions/{id}/payment-method","href":"/pt-BR/subscriptions/payment-method"}]},{"group":"Ciclo de vida","pages":[{"title":"Pausar assinatura","openapi":"openapi/billing.json POST /subscriptions/{id}/pause","href":"/pt-BR/subscriptions/pause"},{"title":"Retomar assinatura pausada","openapi":"openapi/billing.json POST /subscriptions/{id}/resume","href":"/pt-BR/subscriptions/resume"},{"title":"Cancelar assinatura","openapi":"openapi/billing.json POST /subscriptions/{id}/cancel","href":"/pt-BR/subscriptions/cancel"},{"title":"Desfazer cancelamento agendado","openapi":"openapi/billing.json POST /subscriptions/{id}/uncancel","href":"/pt-BR/subscriptions/uncancel"}]},{"group":"Troca de plano","pages":[{"title":"Trocar o plano da assinatura","openapi":"openapi/billing.json POST /subscriptions/{id}/change-plan","href":"/pt-BR/subscriptions/change-plan"},{"title":"Simular a troca de plano","openapi":"openapi/billing.json POST /subscriptions/{id}/change-plan/preview","href":"/pt-BR/subscriptions/change-plan-preview"},{"title":"Desfazer a troca de plano agendada","openapi":"openapi/billing.json DELETE /subscriptions/{id}/change-plan","href":"/pt-BR/subscriptions/change-plan-delete"}]},{"group":"Cobranças extras","pages":[{"title":"Lançar cobrança extra","openapi":"openapi/billing.json POST /subscriptions/{id}/extra-items","href":"/pt-BR/subscriptions/extra-items"},{"title":"Listar cobranças extras","openapi":"openapi/billing.json GET /subscriptions/{id}/extra-items","href":"/pt-BR/subscriptions/extra-items-get"},{"title":"Fechar as cobranças extras agora","openapi":"openapi/billing.json POST /subscriptions/{id}/extra-items/settle","href":"/pt-BR/subscriptions/extra-items-settle"},{"title":"Cancelar cobrança extra","openapi":"openapi/billing.json DELETE /subscriptions/{id}/extra-items/{itemId}","href":"/pt-BR/subscriptions/extra-items-delete"}]},{"group":"Faturas","pages":[{"sidebarTitle":"Visão geral","title":"Faturas","href":"/pt-BR/subscriptions/invoices"},{"title":"Criar fatura avulsa","openapi":"openapi/billing.json POST /invoices","href":"/pt-BR/subscriptions/invoices/create"},{"title":"Listar faturas","openapi":"openapi/billing.json GET /invoices","href":"/pt-BR/subscriptions/invoices/list"},{"title":"Buscar fatura por ID","openapi":"openapi/billing.json GET /invoices/{id}","href":"/pt-BR/subscriptions/invoices/get"}]},{"group":"Pix Automático","pages":[{"sidebarTitle":"Visão geral","title":"Pix Automático","href":"/pt-BR/pix-authorizations"},{"title":"Abrir autorização de Pix Automático","openapi":"openapi/psp.json POST /pix-authorizations","href":"/pt-BR/pix-authorizations/create"},{"title":"Buscar autorização por ID","openapi":"openapi/psp.json GET /pix-authorizations/{id}","href":"/pt-BR/pix-authorizations/get"},{"title":"Encerrar autorização","openapi":"openapi/psp.json DELETE /pix-authorizations/{id}","href":"/pt-BR/pix-authorizations/delete"}]},{"title":"Ciclos de cobrança","href":"/pt-BR/subscriptions/ciclos"}]},{"group":"Split \u0026 Recebedores","pages":[{"group":"Recebedores","pages":[{"sidebarTitle":"Visão geral","title":"Recebedores","href":"/pt-BR/recipients"},{"title":"Listar recebedores","openapi":"openapi/psp.json GET /recipients","href":"/pt-BR/recipients/list"},{"title":"Criar recebedor","openapi":"openapi/psp.json POST /recipients","href":"/pt-BR/recipients/create"},{"title":"Buscar recebedor por ID","openapi":"openapi/psp.json GET /recipients/{id}","href":"/pt-BR/recipients/get"},{"title":"Atualizar recebedor","openapi":"openapi/psp.json PATCH /recipients/{id}","href":"/pt-BR/recipients/update"},{"title":"Desvincular recebedor","openapi":"openapi/psp.json DELETE /recipients/{id}","href":"/pt-BR/recipients/delete"},{"title":"Buscar recebedor da conta","openapi":"openapi/psp.json GET /recipients/owner","href":"/pt-BR/recipients/owner"},{"title":"Histórico do cadastro do recebedor","openapi":"openapi/psp.json GET /recipients/{id}/history","href":"/pt-BR/recipients/history"},{"title":"Gerar link KYC","openapi":"openapi/psp.json POST /recipients/{id}/kyc-link","href":"/pt-BR/recipients/kyc-link"}]},{"title":"Contrato do recebedor","href":"/pt-BR/recipients/contrato"},{"title":"Contas bancárias do recebedor","href":"/pt-BR/recipients/contas-bancarias"},{"group":"Splits","pages":[{"sidebarTitle":"Visão geral","title":"Splits","href":"/pt-BR/splits"},{"title":"Listar splits","openapi":"openapi/psp.json GET /splits","href":"/pt-BR/splits/list"},{"title":"Criar split","openapi":"openapi/psp.json POST /splits","href":"/pt-BR/splits/create"},{"title":"Buscar split por ID","openapi":"openapi/psp.json GET /splits/{id}","href":"/pt-BR/splits/get"},{"title":"Atualizar split","openapi":"openapi/psp.json PATCH /splits/{id}","href":"/pt-BR/splits/update"},{"title":"Remover split","openapi":"openapi/psp.json DELETE /splits/{id}","href":"/pt-BR/splits/delete"}]},{"group":"Carteiras","pages":[{"sidebarTitle":"Visão geral","title":"Carteiras","href":"/pt-BR/wallets"},{"title":"Saldo agregado por moeda","openapi":"openapi/psp.json GET /wallets/owner/{ownerId}/balance","href":"/pt-BR/wallets/owner-balance"},{"title":"Resumo do extrato por período","openapi":"openapi/psp.json GET /wallets/owner/{ownerId}/summary","href":"/pt-BR/wallets/owner-summary"},{"title":"Extrato do recebedor","openapi":"openapi/psp.json GET /wallets/owner/{ownerId}/transactions","href":"/pt-BR/wallets/owner-transactions"}]},{"group":"Recebíveis","pages":[{"sidebarTitle":"Visão geral","title":"Recebíveis","href":"/pt-BR/receivables"},{"title":"Listar recebíveis","openapi":"openapi/psp.json GET /receivables","href":"/pt-BR/receivables/list"},{"title":"Buscar recebível por ID","openapi":"openapi/psp.json GET /receivables/{id}","href":"/pt-BR/receivables/get"}]},{"group":"Saques","pages":[{"sidebarTitle":"Visão geral","title":"Saques","href":"/pt-BR/withdrawals"},{"title":"Listar saques","openapi":"openapi/psp.json GET /withdrawals","href":"/pt-BR/withdrawals/list"},{"title":"Solicitar saque","openapi":"openapi/psp.json POST /withdrawals","href":"/pt-BR/withdrawals/create"},{"title":"Buscar saque por ID","openapi":"openapi/psp.json GET /withdrawals/{id}","href":"/pt-BR/withdrawals/get"},{"title":"Configuração de saque","openapi":"openapi/psp.json GET /withdrawals/config","href":"/pt-BR/withdrawals/config"},{"title":"Simular saque","openapi":"openapi/psp.json POST /withdrawals/simulations","href":"/pt-BR/withdrawals/simulations"},{"title":"Cancelar saque","openapi":"openapi/psp.json POST /withdrawals/{id}/cancel","href":"/pt-BR/withdrawals/cancel"}]},{"group":"Antecipações","pages":[{"sidebarTitle":"Visão geral","title":"Antecipações","href":"/pt-BR/anticipations"},{"title":"Listar antecipações","openapi":"openapi/psp.json GET /anticipations","href":"/pt-BR/anticipations/list"},{"title":"Solicitar antecipação","openapi":"openapi/psp.json POST /anticipations","href":"/pt-BR/anticipations/create"},{"title":"Buscar antecipação por ID","openapi":"openapi/psp.json GET /anticipations/{id}","href":"/pt-BR/anticipations/get"},{"title":"Consultar disponível para antecipar","openapi":"openapi/psp.json GET /anticipations/availability","href":"/pt-BR/anticipations/availability"},{"title":"Simular antecipação","openapi":"openapi/psp.json POST /anticipations/simulations","href":"/pt-BR/anticipations/simulations"},{"title":"Cancelar antecipação","openapi":"openapi/psp.json POST /anticipations/{id}/cancel","href":"/pt-BR/anticipations/cancel"}]}]},{"group":"Webhooks \u0026 Eventos","pages":[{"title":"Webhooks: recebendo eventos","sidebarTitle":"Recebendo eventos","href":"/pt-BR/webhooks/visao-geral"},{"title":"Webhooks: entrega e retentativas","sidebarTitle":"Entrega e retentativas","href":"/pt-BR/webhooks/entregas"},{"title":"Catálogo de eventos","href":"/pt-BR/webhooks/eventos"},{"group":"Webhooks","pages":[{"sidebarTitle":"Visão geral","title":"Webhooks (gerenciamento)","href":"/pt-BR/webhooks"},{"title":"Listar webhooks","openapi":"openapi/psp.json GET /webhooks","href":"/pt-BR/webhooks/list"},{"title":"Criar webhook","openapi":"openapi/psp.json POST /webhooks","href":"/pt-BR/webhooks/create"},{"title":"Buscar webhook por ID","openapi":"openapi/psp.json GET /webhooks/{id}","href":"/pt-BR/webhooks/get"},{"title":"Atualizar webhook","openapi":"openapi/psp.json PATCH /webhooks/{id}","href":"/pt-BR/webhooks/update"},{"title":"Remover webhook","openapi":"openapi/psp.json DELETE /webhooks/{id}","href":"/pt-BR/webhooks/delete"},{"title":"Listar deliveries","openapi":"openapi/psp.json GET /webhooks/deliveries","href":"/pt-BR/webhooks/deliveries"},{"title":"Listar eventos disponíveis","openapi":"openapi/psp.json GET /webhooks/listeners","href":"/pt-BR/webhooks/listeners"},{"title":"Ativar/desativar webhook","openapi":"openapi/psp.json PATCH /webhooks/{id}/status","href":"/pt-BR/webhooks/status"},{"title":"Buscar delivery por ID","openapi":"openapi/psp.json GET /webhooks/deliveries/{id}","href":"/pt-BR/webhooks/deliveries-get"},{"title":"Reprocessar delivery","openapi":"openapi/psp.json POST /webhooks/deliveries/{id}/retry","href":"/pt-BR/webhooks/deliveries-retry"}]}]},{"group":"Valores \u0026 Taxas","pages":[{"title":"Valores: visão geral","sidebarTitle":"Visão geral","href":"/pt-BR/valores/visao-geral"},{"title":"Taxas","href":"/pt-BR/valores/taxas"},{"title":"Cálculo de split","href":"/pt-BR/valores/split"},{"title":"Liquidação","href":"/pt-BR/valores/liquidacao"}]}]}]},"basePath":"","title":"Criar checkout link - Z2Pay Developers","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","SectionHeading-Cc2r-uqU.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js","Markdown-0RkHcMOI.js","AssistantPageLink-DeJZCj9t.js","dist-DVqS175j.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}