{
"error": "A request with this idempotency key is already being processed"
}
{
"error": "Idempotency key already used with a different request body"
}
POST /pos/intentsFaz parte do recurso Maquininha — os status da intenção e o que confirma o
pagamento estão lá.Cria a intenção em pending e devolve o appUrl, que abre a cobrança no app Z2Pay, e o webUrl,
a página web da mesma cobrança. Nada é cobrado aqui: a transação nasce quando o app captura o
pagamento. O valor vem de amount com description, ou da lista items; split, cliente, formas
aceitas, parcelamento, metadata e returnUrl são opcionais. Chame do seu backend, porque a rota
exige a chave secreta, e entregue ao seu app só o appUrl.
Envie amount ou items, exatamente um dos dois. Os dois juntos, ou nenhum, respondem 400.
Com amount, description é obrigatória: ela vira o item único da venda.
O split soma 100 e tem exatamente um liable: true. Soma diferente, nenhum responsável ou mais
de um respondem 400. Veja Splits.
returnUrl é um endereço esquema://…, como o deep link do seu app (meuapp://z2pay/result)
ou https://. javascript:, data:, file: e vbscript: respondem 400.
Sem methods, o app oferece Pix e aproximação (["pix", "tap"]). A aproximação só aparece no
app quando o aparelho e a conta a suportam.
installments vale só no crédito por aproximação, no mesmo formato do parcelamento do
Checkout: maxInstallments é o teto de parcelas, conferido na
captura, e freeInstallments e interestRate definem as parcelas sem juros e os juros ao mês,
pela Tabela Price. Sem installments, débito e crédito saem só à vista. Sem juros, o comprador
paga o valor da intenção em qualquer parcela; com juros, paga o total da opção que escolher.
Débito é sempre à vista e sem juros, e o Pix ignora o campo.
O metadata volta na transação. Ele chega em additionalInfo nos webhooks transaction.*, e
a transação traz o id da intenção em referenceCode. É por esses dois campos que o seu backend
liga o transaction.paid ao pedido.
Sem expirationMinutes, a intenção vale 30 minutos. Passado o prazo sem pagamento, ela vira
expired.
Se o app Z2Pay não estiver instalado, abra o webUrl. É a página web da mesma intenção, que
aceita o Pix quando methods inclui pix.
Endpoint idempotente. Envie Idempotency-Key para que um retry por timeout não crie duas
intenções — sem ele, a segunda chamada gera outro cs_. Veja
Convenções.
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
amount
integer
Valor total em centavos (mínimo R$ 1,00). Exige description; exclusivo com items.
Required range: x >= 100
description
string
O que está sendo vendido. Obrigatória com amount — vira o item único da venda.
Maximum string length: 2000
items
object[]
Itens da venda (unitAmount em centavos). Exclusivo com amount.
Minimum array length: 1
Show child attributes
methods
enum<string>[]
Como o app pode receber: pix (QR na tela) e/ou tap (aproximação). Default: os dois.
Minimum array length: 1
Available options:
pix,
tap
returnUrl
string
Para onde o app Z2Pay devolve o resultado (?intent=cs_…&status=paid&transactionId=txn_…). Deep link do seu app (meuapp://z2pay/result) ou https.
Maximum string length: 2000
splits
object[]
Divisão de receita por percentual; a soma deve ser exatamente 100.
Show child attributes
customer
object
Cliente identificado. Omitido, a venda entra como venda de balcão.
Show child attributes
installments
object
Crédito por aproximação (Tap): teto de parcelas e, se quiser, juros — o mesmo formato do parcelamento do checkout. Sem installments, débito e crédito só à vista. Sem juros, o cliente paga amount em qualquer parcela. Débito é sempre à vista e sem juros. Ignorado no Pix.
Show child attributes
metadata
object
Metadados do integrador (string → string); voltam nos webhooks da transação.
Show child attributes
expirationMinutes
integer
default:30
Validade da intenção em minutos (5 a 1440). Default 30.
Required range: 5 <= x <= 1440
Response
Intenção criada
id
string
Identificador único do registro.
linkId
string | null
Identificador do link de checkout que originou o registro; nulo em sessões ad-hoc.
status
string
Estado detalhado da Session por baixo da intenção (created, opened, paying…), o mesmo que o filtro status da listagem usa. Para decidir, use posStatus.
posStatus
enum<string>
Situação resumida da intenção, e é por ela que você decide: pending, paid, failed, expired ou canceled. failed não encerra: o cliente pode tentar de novo até expiresAt.
Available options:
pending,
paid,
failed,
expired,
canceled
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).
config
object
Snapshot da configuração do checkout (formas de pagamento, itens e personalização visual).
customer
object | null
Dados do comprador (nome, e-mail, documento e demais informações).
customFieldValues
object | null
Valores preenchidos nos campos personalizados, indexados pela key de cada campo.
paymentMethodSelected
string | null
Forma de pagamento selecionada pelo comprador na sessão (ex.: credit_card, pix, boleto).
subtotal
integer
Soma dos itens antes dos descontos, em centavos.
discountTotal
integer
Total de descontos aplicados, em centavos.
amount
integer
Valor total a ser cobrado, em centavos.
discounts
object[] | null
Descontos aplicados ao valor da sessão.
paymentAttempts
integer
Quantidade de tentativas de pagamento realizadas na sessão.
transactionId
string | null
Identificador da transação gerada pelo pagamento da sessão; nulo até haver pagamento.
subscriptionId
string | null
Identificador da assinatura criada a partir da sessão; nulo até a ativação.
invoiceId
string | null
Fatura gerada pela venda com data de cobrança (scheduledAt), criada quando o comprador aceita. Nula em toda outra venda — pagamento no ato não gera fatura.
metadata
object | null
Metadados livres (pares chave-valor) para uso do integrador; não afeta o processamento.
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).
openedAt
string<date-time> | null
Data e hora em que a sessão foi aberta pelo comprador (ISO 8601); nula se ainda não aberta.
paidAt
string<date-time> | null
Data e hora em que o pagamento foi confirmado (ISO 8601); nula se não pago.
canceledAt
string<date-time> | null
Data e hora do cancelamento (ISO 8601); nula se não cancelado.
expiresAt
string<date-time>
Data e hora de expiração (ISO 8601).
url
string
URL pública do checkout para o comprador finalizar o pagamento.
appUrl
string
Link que abre esta intenção no app Z2Pay, no aparelho do lojista. É o que o seu backend entrega ao seu app.
webUrl
string
Página web da mesma cobrança, com o Pix, para abrir quando o app Z2Pay não está instalado. É o mesmo endereço de url.
{"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/pos/create","slug":"/pt-BR/checkout/pos/create","pageMetadata":{"title":"Criar intenção de pagamento","description":"Cria a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.","openapi":"openapi/checkout.json POST /pos/intents","href":"/pt-BR/checkout/pos/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 a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.\"\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 /pos/intents`})}),`\n`,_jsxs(_components.p,{children:[`Faz parte do recurso `,_jsx(_components.a,{href:`/pt-BR/checkout/pos`,children:`Maquininha`}),` — os status da intenção e o que confirma o\npagamento estão lá.`]}),`\n`,_jsxs(_components.p,{children:[`Cria a intenção em `,_jsx(_components.code,{children:`pending`}),` e devolve o `,_jsx(_components.code,{children:`appUrl`}),`, que abre a cobrança no app Z2Pay, e o `,_jsx(_components.code,{children:`webUrl`}),`,\na página web da mesma cobrança. Nada é cobrado aqui: a transação nasce quando o app captura o\npagamento. O valor vem de `,_jsx(_components.code,{children:`amount`}),` com `,_jsx(_components.code,{children:`description`}),`, ou da lista `,_jsx(_components.code,{children:`items`}),`; split, cliente, formas\naceitas, parcelamento, `,_jsx(_components.code,{children:`metadata`}),` e `,_jsx(_components.code,{children:`returnUrl`}),` são opcionais. Chame do seu backend, porque a rota\nexige a chave secreta, e entregue ao seu app só o `,_jsx(_components.code,{children:`appUrl`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Envie `,_jsx(_components.code,{children:`amount`}),` ou `,_jsx(_components.code,{children:`items`}),`, exatamente um dos dois.`]}),` Os dois juntos, ou nenhum, respondem `,_jsx(_components.code,{children:`400`}),`.\nCom `,_jsx(_components.code,{children:`amount`}),`, `,_jsx(_components.code,{children:`description`}),` é obrigatória: ela vira o item único da venda.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`O split soma 100 e tem exatamente um `,_jsx(_components.code,{children:`liable: true`}),`.`]}),` Soma diferente, nenhum responsável ou mais\nde um respondem `,_jsx(_components.code,{children:`400`}),`. Veja `,_jsx(_components.a,{href:`/pt-BR/valores/split`,children:`Splits`}),`.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`returnUrl`}),` é um endereço `,_jsx(_components.code,{children:`esquema://…`})]}),`, como o deep link do seu app (`,_jsx(_components.code,{children:`meuapp://z2pay/result`}),`)\nou `,_jsx(_components.code,{children:`https://`}),`. `,_jsx(_components.code,{children:`javascript:`}),`, `,_jsx(_components.code,{children:`data:`}),`, `,_jsx(_components.code,{children:`file:`}),` e `,_jsx(_components.code,{children:`vbscript:`}),` respondem `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Sem `,_jsx(_components.code,{children:`methods`}),`, o app oferece Pix e aproximação`]}),` (`,_jsx(_components.code,{children:`[\"pix\", \"tap\"]`}),`). A aproximação só aparece no\napp quando o aparelho e a conta a suportam.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`installments`}),` vale só no crédito por aproximação`]}),`, no mesmo formato do parcelamento do\n`,_jsx(_components.a,{href:`/pt-BR/checkout/links/create`,children:`Checkout`}),`: `,_jsx(_components.code,{children:`maxInstallments`}),` é o teto de parcelas, conferido na\ncaptura, e `,_jsx(_components.code,{children:`freeInstallments`}),` e `,_jsx(_components.code,{children:`interestRate`}),` definem as parcelas sem juros e os juros ao mês,\npela Tabela Price. Sem `,_jsx(_components.code,{children:`installments`}),`, débito e crédito saem só à vista. Sem juros, o comprador\npaga o valor da intenção em qualquer parcela; com juros, paga o total da opção que escolher.\nDébito é sempre à vista e sem juros, e o Pix ignora o campo.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`O `,_jsx(_components.code,{children:`metadata`}),` volta na transação.`]}),` Ele chega em `,_jsx(_components.code,{children:`additionalInfo`}),` nos webhooks `,_jsx(_components.code,{children:`transaction.*`}),`, e\na transação traz o id da intenção em `,_jsx(_components.code,{children:`referenceCode`}),`. É por esses dois campos que o seu backend\nliga o `,_jsx(_components.code,{children:`transaction.paid`}),` ao pedido.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Sem `,_jsx(_components.code,{children:`expirationMinutes`}),`, a intenção vale 30 minutos.`]}),` Passado o prazo sem pagamento, ela vira\n`,_jsx(_components.code,{children:`expired`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Se o app Z2Pay não estiver instalado, abra o `,_jsx(_components.code,{children:`webUrl`}),`.`]}),` É a página web da mesma intenção, que\naceita o Pix quando `,_jsx(_components.code,{children:`methods`}),` inclui `,_jsx(_components.code,{children:`pix`}),`.`]})}),`\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 duas\nintenções — sem ele, a segunda chamada gera outro `,_jsx(_components.code,{children:`cs_`}),`. Veja\n`,_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:`14`,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:`14`,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.z2pay.com/v1/pos/intents`}),_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_SECRETA\"`}),_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: pedido-1042\"`}),_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:` \"amount\": 12990,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"Pedido #1042\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"methods\": [\"pix\", \"tap\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"returnUrl\": \"meuapp://z2pay/result\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"splits\": [{ \"recipientId\": \"rec_v392h2dvst32ilgrm3n299l2z\", \"percentage\": 100, \"liable\": true }],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"customer\": { \"name\": \"Maria Souza\", \"document\": \"12345678909\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"installments\": { \"maxInstallments\": 6 },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": { \"orderId\": \"1042\" }`})}),`\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:`24`,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:`24`,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:`\"cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221\"`}),_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:`\"created\"`}),_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:` \"posStatus\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_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:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12990`}),_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:` \"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:` \"paymentMethods\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"pix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"enabled\"`}),_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:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"expiresIn\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1800`}),_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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"recipientId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rec_v392h2dvst32ilgrm3n299l2z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"percentage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"liable\"`}),_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:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pedido #1042\"`}),_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:` \"pos\"`}),_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:` \"methods\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tap\"`}),_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:` \"returnUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"meuapp://z2pay/result\"`}),_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:` \"installments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"maxInstallments\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`}),_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`,_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:` \"customer\"`}),_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:`\"Maria Souza\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"document\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12345678909\"`}),_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:` \"transactionId\"`}),_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:`\"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1042\"`}),_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-11-17T14: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:` \"expiresAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-17T14:30: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:` \"appUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"z2pay://pay/cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221\"`}),_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:` \"webUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://pay.z2pay.com/c/s/cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Criar intenção de pagamento","description":"Cria a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.","openapi":"openapi/checkout.json POST /pos/intents","href":"/pt-BR/checkout/pos/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Exemplo","slug":"exemplo","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["App Z2Pay"],"operationId":"PosIntentApiController_create","responses":{"201":"08dd17df-896d-48b3-80a8-abcdcb88081e","400":"96057643-c5b2-43c0-b9a8-9bcb7af209a3","401":"a0730858-4977-4718-8639-5148e8fa78f2","403":"42f24ca4-df97-4979-a00e-1945ec3f1f49","409":"736d058a-0918-4aa2-86bf-93fd8e9c5666","422":"3ce70cf2-6c55-4a7f-b2df-2fc52c3e3494"},"summary":"Criar intenção de pagamento","description":"Cria a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.","requestBody":"e10b7a5f-9154-42c3-ad97-47814e87681d","security":["0996068b-507b-482e-938f-aa7d1fb79389"],"method":"post","type":"path","servers":["8c069c60-22eb-46cf-9542-3d6b0e61c045","932dfb92-1fe2-4bcd-9b6e-8e3a45fa4be5"],"path":"/pos/intents","baseUrlOptions":["https://api.sandbox.z2pay.com/v1","https://api.z2pay.com/v1"],"title":"Criar intenção de pagamento","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","minimum":100,"description":"Valor total em centavos (mínimo R$ 1,00). Exige `description`; exclusivo com `items`.","uniqueKey":"amount","typeLabel":"integer"},"description":{"type":"string","maxLength":2000,"description":"O que está sendo vendido. Obrigatória com `amount` — vira o item único da venda.","uniqueKey":"description","typeLabel":"string"},"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"},"minItems":1,"description":"Itens da venda (unitAmount em centavos). Exclusivo com `amount`.","uniqueKey":"\\items","typeLabel":"object[]"},"methods":{"type":"array","items":{"type":"string","enum":["pix","tap"],"uniqueKey":"methods.items.[INDEX]","typeLabel":"enum\u003cstring>"},"minItems":1,"default":["pix","tap"],"description":"Como o app pode receber: `pix` (QR na tela) e/ou `tap` (aproximação). Default: os dois.","uniqueKey":"methods","typeLabel":"enum\u003cstring>[]"},"returnUrl":{"type":"string","maxLength":2000,"description":"Para onde o app Z2Pay devolve o resultado (`?intent=cs_…\u0026status=paid\u0026transactionId=txn_…`). Deep link do seu app (`meuapp://z2pay/result`) ou https.","uniqueKey":"returnUrl","typeLabel":"string"},"splits":{"type":"array","items":{"type":"object","properties":{"recipientId":{"type":"string","minLength":1,"description":"Recebedor (`rec_`) que fica com esta fatia.","isRequired":true,"uniqueKey":"splits.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.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.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.items.[INDEX].processingFee","typeLabel":"boolean"}},"required":["recipientId","percentage"],"uniqueKey":"splits.items.[INDEX]","typeLabel":"object"},"description":"Divisão de receita por percentual; a soma deve ser exatamente 100.","uniqueKey":"splits","typeLabel":"object[]"},"customer":{"type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Nome completo do cliente.","uniqueKey":"customer.name","typeLabel":"string"},"email":{"type":"string","format":"email","maxLength":255,"description":"E-mail do cliente.","uniqueKey":"customer.email","typeLabel":"string\u003cemail>"},"document":{"type":"string","minLength":6,"maxLength":30,"description":"Documento do cliente (CPF ou CNPJ, somente dígitos).","uniqueKey":"customer.document","typeLabel":"string"},"documentType":{"type":"string","enum":["cpf","cnpj","passport"],"description":"Tipo do documento do cliente: cpf ou cnpj.","uniqueKey":"customer.documentType","typeLabel":"enum\u003cstring>"},"phone":{"type":"string","maxLength":30,"description":"Telefone do cliente (formato E.164, ex.: +5511987654321).","uniqueKey":"customer.phone","typeLabel":"string"},"address":{"type":"object","properties":{"zipCode":{"type":"string","minLength":3,"maxLength":20,"description":"CEP / código postal (somente dígitos).","uniqueKey":"customer.address.zipCode","typeLabel":"string"},"street":{"type":"string","maxLength":255,"description":"Logradouro (rua, avenida).","uniqueKey":"customer.address.street","typeLabel":"string"},"number":{"type":"string","maxLength":20,"description":"Número do endereço.","uniqueKey":"customer.address.number","typeLabel":"string"},"complement":{"type":"string","maxLength":255,"description":"Complemento do endereço (apartamento, bloco, sala).","uniqueKey":"customer.address.complement","typeLabel":"string"},"neighborhood":{"type":"string","maxLength":100,"description":"Bairro.","uniqueKey":"customer.address.neighborhood","typeLabel":"string"},"city":{"type":"string","maxLength":100,"description":"Cidade.","uniqueKey":"customer.address.city","typeLabel":"string"},"state":{"type":"string","maxLength":100,"description":"Estado ou UF (ex.: SP).","uniqueKey":"customer.address.state","typeLabel":"string"},"country":{"type":"string","default":"BR","description":"País (código ISO 3166-1 alfa-2, ex.: BR).","uniqueKey":"customer.address.country","typeLabel":"string"}},"uniqueKey":"customer.address","typeLabel":"object"}},"description":"Cliente identificado. Omitido, a venda entra como venda de balcão.","uniqueKey":"customer","typeLabel":"object"},"installments":{"type":"object","properties":{"maxInstallments":{"type":"integer","minimum":1,"maximum":12,"description":"Máximo de parcelas no crédito (1–12).","isRequired":true,"uniqueKey":"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":"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":"installments.interestRate","typeLabel":"number"},"interestType":{"type":"string","description":"Opcional e sempre `compound`: o parcelamento é calculado pela Tabela Price (juros compostos).","uniqueKey":"installments.interestType","typeLabel":"string"}},"required":["maxInstallments"],"description":"Crédito por aproximação (Tap): teto de parcelas e, se quiser, juros — o mesmo formato do parcelamento do checkout. Sem `installments`, débito e crédito só à vista. Sem juros, o cliente paga `amount` em qualquer parcela. Débito é sempre à vista e sem juros. Ignorado no Pix.","uniqueKey":"installments","typeLabel":"object"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"description":"Metadados do integrador (string → string); voltam nos webhooks da transação.","uniqueKey":"metadata","typeLabel":"object"},"expirationMinutes":{"type":"integer","minimum":5,"maximum":1440,"default":30,"description":"Validade da intenção em minutos (5 a 1440). Default 30.","uniqueKey":"expirationMinutes","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"amount":101,"description":"\u003cstring>","items":[{"name":"\u003cstring>","quantity":2,"unitAmount":2,"description":"\u003cstring>","imageUrl":"\u003cstring>","metadata":{}}],"methods":["pix","tap"],"returnUrl":"\u003cstring>","splits":[{"recipientId":"\u003cstring>","percentage":50.005,"liable":true,"processingFee":true}],"customer":{"name":"\u003cstring>","email":"jsmith@example.com","document":"\u003cstring>","phone":"\u003cstring>","address":{"zipCode":"\u003cstring>","street":"\u003cstring>","number":"\u003cstring>","complement":"\u003cstring>","neighborhood":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","country":"BR"}},"metadata":{},"expirationMinutes":30}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"08dd17df-896d-48b3-80a8-abcdcb88081e":{"description":"Intenção criada","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Identificador único do registro.","uniqueKey":"id","typeLabel":"string"},"linkId":{"oneOf":[{"type":"string","description":"Identificador do link de checkout que originou o registro; nulo em sessões ad-hoc.","uniqueKey":"linkId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Identificador do link de checkout que originou o registro; nulo em sessões ad-hoc.","uniqueKey":"linkId.oneOf.1","typeLabel":"null"}],"uniqueKey":"linkId","typeLabel":"string | null"},"status":{"type":"string","description":"Estado detalhado da Session por baixo da intenção (`created`, `opened`, `paying`…), o mesmo que o filtro `status` da listagem usa. Para decidir, use `posStatus`.","uniqueKey":"status","typeLabel":"string"},"posStatus":{"type":"string","enum":["pending","paid","failed","expired","canceled"],"description":"Situação resumida da intenção, e é por ela que você decide: `pending`, `paid`, `failed`, `expired` ou `canceled`. `failed` não encerra: o cliente pode tentar de novo até `expiresAt`.","uniqueKey":"posStatus","typeLabel":"enum\u003cstring>"},"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"},"config":{"type":"object","description":"Snapshot da configuração do checkout (formas de pagamento, itens e personalização visual).","uniqueKey":"config","typeLabel":"object"},"customer":{"oneOf":[{"type":"object","description":"Dados do comprador (nome, e-mail, documento e demais informações).","uniqueKey":"customer.oneOf.0","typeLabel":"object"},{"type":"null","description":"Dados do comprador (nome, e-mail, documento e demais informações).","uniqueKey":"customer.oneOf.1","typeLabel":"null"}],"uniqueKey":"customer","typeLabel":"object | null"},"customFieldValues":{"oneOf":[{"type":"object","description":"Valores preenchidos nos campos personalizados, indexados pela key de cada campo.","uniqueKey":"customFieldValues.oneOf.0","typeLabel":"object"},{"type":"null","description":"Valores preenchidos nos campos personalizados, indexados pela key de cada campo.","uniqueKey":"customFieldValues.oneOf.1","typeLabel":"null"}],"uniqueKey":"customFieldValues","typeLabel":"object | null"},"paymentMethodSelected":{"oneOf":[{"type":"string","description":"Forma de pagamento selecionada pelo comprador na sessão (ex.: credit_card, pix, boleto).","uniqueKey":"paymentMethodSelected.oneOf.0","typeLabel":"string"},{"type":"null","description":"Forma de pagamento selecionada pelo comprador na sessão (ex.: credit_card, pix, boleto).","uniqueKey":"paymentMethodSelected.oneOf.1","typeLabel":"null"}],"uniqueKey":"paymentMethodSelected","typeLabel":"string | null"},"subtotal":{"type":"integer","description":"Soma dos itens antes dos descontos, em centavos.","uniqueKey":"subtotal","typeLabel":"integer"},"discountTotal":{"type":"integer","description":"Total de descontos aplicados, em centavos.","uniqueKey":"discountTotal","typeLabel":"integer"},"amount":{"type":"integer","description":"Valor total a ser cobrado, em centavos.","uniqueKey":"amount","typeLabel":"integer"},"discounts":{"oneOf":[{"type":"array","items":{"type":"object","uniqueKey":"discounts.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Descontos aplicados ao valor da sessão.","uniqueKey":"discounts.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object"},"description":"Descontos aplicados ao valor da sessão.","uniqueKey":"discounts.oneOf.1","typeLabel":"null"}],"uniqueKey":"discounts","typeLabel":"object[] | null"},"paymentAttempts":{"type":"integer","description":"Quantidade de tentativas de pagamento realizadas na sessão.","uniqueKey":"paymentAttempts","typeLabel":"integer"},"transactionId":{"oneOf":[{"type":"string","description":"Identificador da transação gerada pelo pagamento da sessão; nulo até haver pagamento.","uniqueKey":"transactionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Identificador da transação gerada pelo pagamento da sessão; nulo até haver pagamento.","uniqueKey":"transactionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"transactionId","typeLabel":"string | null"},"subscriptionId":{"oneOf":[{"type":"string","description":"Identificador da assinatura criada a partir da sessão; nulo até a ativação.","uniqueKey":"subscriptionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Identificador da assinatura criada a partir da sessão; nulo até a ativação.","uniqueKey":"subscriptionId.oneOf.1","typeLabel":"null"}],"uniqueKey":"subscriptionId","typeLabel":"string | null"},"invoiceId":{"oneOf":[{"type":"string","description":"Fatura gerada pela venda com data de cobrança (`scheduledAt`), criada quando o comprador aceita. Nula em toda outra venda — pagamento no ato não gera fatura.","uniqueKey":"invoiceId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Fatura gerada pela venda com data de cobrança (`scheduledAt`), criada quando o comprador aceita. Nula em toda outra venda — pagamento no ato não gera fatura.","uniqueKey":"invoiceId.oneOf.1","typeLabel":"null"}],"uniqueKey":"invoiceId","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"},"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>"},"openedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data e hora em que a sessão foi aberta pelo comprador (ISO 8601); nula se ainda não aberta.","uniqueKey":"openedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data e hora em que a sessão foi aberta pelo comprador (ISO 8601); nula se ainda não aberta.","uniqueKey":"openedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"openedAt","typeLabel":"string\u003cdate-time> | null"},"paidAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data e hora em que o pagamento foi confirmado (ISO 8601); nula se não pago.","uniqueKey":"paidAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data e hora em que o pagamento foi confirmado (ISO 8601); nula se não pago.","uniqueKey":"paidAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"paidAt","typeLabel":"string\u003cdate-time> | null"},"canceledAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data e hora do cancelamento (ISO 8601); nula se não cancelado.","uniqueKey":"canceledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data e hora do cancelamento (ISO 8601); nula se não cancelado.","uniqueKey":"canceledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"canceledAt","typeLabel":"string\u003cdate-time> | null"},"expiresAt":{"type":"string","format":"date-time","description":"Data e hora de expiração (ISO 8601).","uniqueKey":"expiresAt","typeLabel":"string\u003cdate-time>"},"url":{"type":"string","description":"URL pública do checkout para o comprador finalizar o pagamento.","uniqueKey":"url","typeLabel":"string"},"appUrl":{"type":"string","description":"Link que abre esta intenção no app Z2Pay, no aparelho do lojista. É o que o seu backend entrega ao seu app.","uniqueKey":"appUrl","typeLabel":"string"},"webUrl":{"type":"string","description":"Página web da mesma cobrança, com o Pix, para abrir quando o app Z2Pay não está instalado. É o mesmo endereço de `url`.","uniqueKey":"webUrl","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221","linkId":null,"status":"created","posStatus":"pending","mode":"payment","currency":"BRL","locale":"pt-BR","config":{"paymentMethods":{"pix":{"enabled":true,"expiresIn":1800}},"splits":[{"recipientId":"rec_v392h2dvst32ilgrm3n299l2z","percentage":100,"liable":true}],"description":"Pedido #1042","pos":{"methods":["pix","tap"],"returnUrl":"meuapp://z2pay/result","installments":{"maxInstallments":6}}},"customer":{"name":"Maria Souza","document":"12345678909"},"customFieldValues":null,"paymentMethodSelected":null,"subtotal":12990,"discountTotal":0,"amount":12990,"discounts":[],"paymentAttempts":0,"transactionId":null,"subscriptionId":null,"invoiceId":null,"metadata":{"orderId":"1042"},"createdAt":"2026-11-17T14:00:00.000Z","updatedAt":"2026-11-17T14:00:00.000Z","openedAt":null,"paidAt":null,"canceledAt":null,"expiresAt":"2026-11-17T14:30:00.000Z","url":"https://pay.z2pay.com/c/s/cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221","appUrl":"z2pay://pay/cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221","webUrl":"https://pay.z2pay.com/c/s/cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221"},"examples":{"Example":{"title":"Example","value":{"id":"cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221","linkId":null,"status":"created","posStatus":"pending","mode":"payment","currency":"BRL","locale":"pt-BR","config":{"paymentMethods":{"pix":{"enabled":true,"expiresIn":1800}},"splits":[{"recipientId":"rec_v392h2dvst32ilgrm3n299l2z","percentage":100,"liable":true}],"description":"Pedido #1042","pos":{"methods":["pix","tap"],"returnUrl":"meuapp://z2pay/result","installments":{"maxInstallments":6}}},"customer":{"name":"Maria Souza","document":"12345678909"},"customFieldValues":null,"paymentMethodSelected":null,"subtotal":12990,"discountTotal":0,"amount":12990,"discounts":[],"paymentAttempts":0,"transactionId":null,"subscriptionId":null,"invoiceId":null,"metadata":{"orderId":"1042"},"createdAt":"2026-11-17T14:00:00.000Z","updatedAt":"2026-11-17T14:00:00.000Z","openedAt":null,"paidAt":null,"canceledAt":null,"expiresAt":"2026-11-17T14:30:00.000Z","url":"https://pay.z2pay.com/c/s/cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221","appUrl":"z2pay://pay/cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221","webUrl":"https://pay.z2pay.com/c/s/cs_e2629ae2b58cef4d2110351fca8ac217b262aa2f2739a221"}}},"exampleType":"examples"}},"exampleType":"examples"},"96057643-c5b2-43c0-b9a8-9bcb7af209a3":{"description":"Dados inválidos","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":"items","message":"Informe `amount` (com `description`) OU `items` — exatamente um dos dois."},{"path":"description","message":"`description` é obrigatória quando a venda é informada por `amount`."}]}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"Validation failed","issues":[{"path":"items","message":"Informe `amount` (com `description`) OU `items` — exatamente um dos dois."},{"path":"description","message":"`description` é obrigatória quando a venda é informada por `amount`."}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"a0730858-4977-4718-8639-5148e8fa78f2":{"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"},"42f24ca4-df97-4979-a00e-1945ec3f1f49":{"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"},"736d058a-0918-4aa2-86bf-93fd8e9c5666":{"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"},"3ce70cf2-6c55-4a7f-b2df-2fc52c3e3494":{"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":{"0996068b-507b-482e-938f-aa7d1fb79389":{"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 intenção de pagamento - Z2Pay Developers","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T20:24:49.221Z","originalFileLocation":"pt-BR/checkout/pos/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 a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.\">\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 intenção de pagamento - Z2Pay Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cria a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.\">\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/pos/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=Maquininha\u0026amp;title=Criar+inten%C3%A7%C3%A3o+de+pagamento\u0026amp;description=Cria+a+cobran%C3%A7a+que+o+app+Z2Pay+recebe+no+celular+e+devolve+o+link+que+abre+o+app.\u0026amp;theme=c62ba0724a04aec70ad77de9\u0026amp;signature=2daae931f92e9578091a01c7d6ca17dcc8b7ea491616f0b45c69cef160347054\">\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 intenção de pagamento - Z2Pay Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cria a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://z2pay.mintlify.site/_mintlify/api/og/v2?division=Maquininha\u0026amp;title=Criar+inten%C3%A7%C3%A3o+de+pagamento\u0026amp;description=Cria+a+cobran%C3%A7a+que+o+app+Z2Pay+recebe+no+celular+e+devolve+o+link+que+abre+o+app.\u0026amp;theme=c62ba0724a04aec70ad77de9\u0026amp;signature=2daae931f92e9578091a01c7d6ca17dcc8b7ea491616f0b45c69cef160347054\">\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/pos/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/pos/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/pos/create#webpage\",\"url\":\"https://docs.z2pay.com/pt-BR/checkout/pos/create\",\"name\":\"Criar intenção de pagamento\",\"description\":\"Cria a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.\",\"dateModified\":\"2026-11-24T20:24:49.221Z\",\"isPartOf\":{\"@id\":\"https://docs.z2pay.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/pos/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/pos/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Checkout\",\"item\":\"https://docs.z2pay.com/pt-BR/checkout/visao-geral\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Maquininha\",\"item\":\"https://docs.z2pay.com/pt-BR/checkout/pos\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Criar intenção de pagamento\",\"item\":\"https://docs.z2pay.com/pt-BR/checkout/pos/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/pos/create#apireference\",\"headline\":\"Criar intenção de pagamento\",\"name\":\"Criar intenção de pagamento\",\"description\":\"Cria a cobrança que o app Z2Pay recebe no celular e devolve o link que abre o app.\",\"url\":\"https://docs.z2pay.com/pt-BR/checkout/pos/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.z2pay.com/pt-BR/checkout/pos/create#webpage\"},\"dateModified\":\"2026-11-24T20:24:49.221Z\",\"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/pos/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","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","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","description":"Como funciona a intenção de pagamento: o seu backend cria a cobrança e o app Z2Pay a recebe no celular, como uma maquininha, por Pix ou por aproximação.","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","description":"Lista paginada das intenções de pagamento da conta, com filtro por estado e por período de criação.","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 intenção de pagamento - 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"]}