{
"error": "A request with this idempotency key is already being processed"
}
{
"error": "Idempotency key already used with a different request body"
}
POST /invoicesFaz parte do recurso Faturas — o conceito, os oito estados e os
links hospedados estão lá.Cria uma cobrança fora do ciclo, atrelada a uma assinatura: uma taxa de implantação, um acordo de
dívida, um serviço pontual. O cliente recebe uma cobrança própria, com vencimento e formas de
pagamento independentes da mensalidade. Para valores pequenos que podem esperar a virada do ciclo,
prefira lançar uma cobrança extra — ela entra na fatura da
mensalidade, sem gerar uma segunda cobrança.
O vencimento decide quando a cobrança dispara.dueAt precisa ser futuro; a cobrança é
disparada em dueAt - chargeLeadTimeDays da assinatura. Com folga, a fatura nasce scheduled
e vira open na hora certa; vencimento próximo nasce open e cobra já. Se a data cair em fim
de semana ou feriado e a conta só cobra em dia útil, o vencimento desliza para o próximo dia útil.
freeInstallments não pode passar de maxInstallments. A combinação responde 400.
installmentsConfig oferece parcelas no cartão, e as acima de freeInstallments levam juros.
O pagador escolhe as parcelas na página da fatura. interestRate é a taxa ao mês, em % (2.99
é 2,99%), e a conta é a Tabela Price, a mesma do Checkout; ausente ou 0, nenhuma parcela tem
juros. À vista nunca tem juros, e sem freeInstallments só a parcela única é sem juros. Pix e
boleto não levam juros de parcelamento.O total da fatura não muda: o juro é cobrado no cartão em cima dele — e, numa fatura vencida,
também sobre a multa e os juros de atraso — e entra em adjustments, como installment_interest,
quando a fatura é paga. Por isso amountPaid passa do total. No invoice.payment_attempted, a
tentativa no cartão parcelado já traz o juro em amount e em attempt.adjustments, aprovada ou
recusada, e a régua de cobrança repete nas novas tentativas as parcelas que o cliente escolheu, com
o juro. Ver Buscar fatura por ID.
A fatura participa do split da assinatura como qualquer outra e sai nos mesmos webhooks de fatura.
Funciona também em contrato encerrado — é o caminho para cobrar um valor renegociado ou uma dívida
remanescente.
Authorizations
x-api-key
string
header
required
API Key da Credential (gerada no Backoffice)
Headers
Idempotency-Key
string
Chave única para garantir idempotência da requisição
Body
application/json
subscriptionId
string
required
Assinatura dona da fatura. Aceita contratos encerrados — é o caminho para cobrar um valor renegociado ou dívida remanescente.
Minimum string length: 1
description
string
required
O que está sendo cobrado (aparece na linha da fatura e na página de pagamento).
Required string length: 1 - 200
amount
integer
required
Valor unitário, em centavos (menor unidade da moeda). A moeda é a da assinatura.
Required range: x > 0
dueAt
string<date-time>
required
Vencimento (ISO 8601 com timezone), estritamente no futuro. A cobrança dispara em dueAt - chargeLeadTimeDays da assinatura; se a data cair em fim de semana ou feriado e a política da conta só cobrar em dia útil, o vencimento desliza para o próximo dia útil.
reason
enum<string>
required
Classificação da cobrança, para auditoria e relatório.
Available options:
extra_service,
adjustment,
penalty,
ad_hoc,
other
reasonDetails
string
required
Justificativa em texto livre (1 a 500 caracteres). Fica na trilha de auditoria — o pagador não vê; o que ele vê é description.
Required string length: 1 - 500
quantity
integer
default:1
Quantidade. Default 1 — o total da fatura é amount * quantity.
Required range: x > 0
allowedPaymentMethods
enum<string>[]
Formas de pagamento oferecidas na página de pagamento desta fatura. Ausente = o método padrão da assinatura.
Required array length: 1 - 3 elements
Available options:
card,
pix,
boleto
collectionMethod
enum<string>
Como esta cobrança sai. charge_automatically passa sozinha o cartão salvo na assinatura, sem ação do pagador — exige card em allowedPaymentMethods. send_invoice envia o link e deixa o pagador escolher, inclusive um cartão diferente do da assinatura. Ausente = o método de cobrança da assinatura.
Available options:
charge_automatically,
send_invoice
installmentsConfig
object | null
Parcelamento oferecido ao pagador no cartão — só faz sentido com card em allowedPaymentMethods. Ausente/null = à vista. Com interestRate (% ao mês), a opção acima de freeInstallments é cobrada com juros pela Tabela Price, como no checkout; à vista nunca tem juros. O juro entra em adjustments (installment_interest) quando a fatura é paga, e amountPaid passa do total.
Show child attributes
Response
Fatura criada
{"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/subscriptions/invoices/create","slug":"/pt-BR/subscriptions/invoices/create","pageMetadata":{"title":"Criar fatura avulsa","description":"Cria uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.","openapi":"openapi/billing.json POST /invoices","href":"/pt-BR/subscriptions/invoices/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 uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.\"\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`,strong:`strong`,..._provideComponents(),...props.components},{Note,Warning}=_components;if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /invoices`})}),`\n`,_jsxs(_components.p,{children:[`Faz parte do recurso `,_jsx(_components.a,{href:`/pt-BR/subscriptions/invoices`,children:`Faturas`}),` — o conceito, os oito estados e os\nlinks hospedados estão lá.`]}),`\n`,_jsxs(_components.p,{children:[`Cria uma cobrança fora do ciclo, atrelada a uma assinatura: uma taxa de implantação, um acordo de\ndívida, um serviço pontual. O cliente recebe uma cobrança própria, com vencimento e formas de\npagamento independentes da mensalidade. Para valores pequenos que podem esperar a virada do ciclo,\nprefira `,_jsx(_components.a,{href:`/pt-BR/subscriptions/extra-items`,children:`lançar uma cobrança extra`}),` — ela entra na fatura da\nmensalidade, sem gerar uma segunda cobrança.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`O vencimento decide quando a cobrança dispara.`}),` `,_jsx(_components.code,{children:`dueAt`}),` precisa ser futuro; a cobrança é\ndisparada em `,_jsx(_components.code,{children:`dueAt - chargeLeadTimeDays`}),` da assinatura. Com folga, a fatura nasce `,_jsx(_components.code,{children:`scheduled`}),`\ne vira `,_jsx(_components.code,{children:`open`}),` na hora certa; vencimento próximo nasce `,_jsx(_components.code,{children:`open`}),` e cobra já. Se a data cair em fim\nde semana ou feriado e a conta só cobra em dia útil, o vencimento desliza para o próximo dia útil.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`freeInstallments`}),` não pode passar de `,_jsx(_components.code,{children:`maxInstallments`}),`.`]}),` A combinação responde `,_jsx(_components.code,{children:`400`}),`.`]})}),`\n`,_jsxs(Note,{children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`installmentsConfig`}),` oferece parcelas no cartão, e as acima de `,_jsx(_components.code,{children:`freeInstallments`}),` levam juros.`]}),`\nO pagador escolhe as parcelas na página da fatura. `,_jsx(_components.code,{children:`interestRate`}),` é a taxa `,_jsx(_components.strong,{children:`ao mês`}),`, em % (`,_jsx(_components.code,{children:`2.99`}),`\né 2,99%), e a conta é a Tabela Price, a mesma do Checkout; ausente ou `,_jsx(_components.code,{children:`0`}),`, nenhuma parcela tem\njuros. À vista nunca tem juros, e sem `,_jsx(_components.code,{children:`freeInstallments`}),` só a parcela única é sem juros. Pix e\nboleto não levam juros de parcelamento.`]}),_jsxs(_components.p,{children:[`O `,_jsx(_components.code,{children:`total`}),` da fatura não muda: o juro é cobrado no cartão em cima dele — e, numa fatura vencida,\ntambém sobre a multa e os juros de atraso — e entra em `,_jsx(_components.code,{children:`adjustments`}),`, como `,_jsx(_components.code,{children:`installment_interest`}),`,\nquando a fatura é paga. Por isso `,_jsx(_components.code,{children:`amountPaid`}),` passa do `,_jsx(_components.code,{children:`total`}),`. No `,_jsx(_components.code,{children:`invoice.payment_attempted`}),`, a\ntentativa no cartão parcelado já traz o juro em `,_jsx(_components.code,{children:`amount`}),` e em `,_jsx(_components.code,{children:`attempt.adjustments`}),`, aprovada ou\nrecusada, e a régua de cobrança repete nas novas tentativas as parcelas que o cliente escolheu, com\no juro. Ver `,_jsx(_components.a,{href:`/pt-BR/subscriptions/invoices/get`,children:`Buscar fatura por ID`}),`.`]})]}),`\n`,_jsx(_components.p,{children:`A fatura participa do split da assinatura como qualquer outra e sai nos mesmos webhooks de fatura.\nFunciona também em contrato encerrado — é o caminho para cobrar um valor renegociado ou uma dívida\nremanescente.`})]})}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 fatura avulsa","description":"Cria uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.","openapi":"openapi/billing.json POST /invoices","href":"/pt-BR/subscriptions/invoices/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Invoices"],"operationId":"InvoiceController_create","responses":{"201":"c0a5b877-3beb-401f-9ad3-127431e40afa","400":"d089b623-527f-4018-a00b-97511124fc37","401":"5ae9d379-9e2d-4746-a8ac-3896a7cfc735","404":"b66875cf-a12f-4ca8-af62-51ed848525a7","409":"878df0c3-d24e-4ca4-8b96-6fd65e7f1d17","422":"e641c45d-4fc9-4590-8db7-964d68b82d98"},"summary":"Criar fatura avulsa","description":"Cria uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.","parameters":["2bba13b8-6805-4b9a-abe0-045aaecd81ec"],"requestBody":"7774149b-446d-48cc-927f-a4ffd1199a3c","security":["24291a6d-f666-485c-8f5e-98b7b3a1ac99"],"method":"post","type":"path","servers":["33ec1336-2082-4bce-8045-371fbc9a290a","4958ed86-cd1a-4a43-a775-5c879141d77e"],"path":"/invoices","baseUrlOptions":["https://api.sandbox.z2pay.com/v1","https://api.z2pay.com/v1"],"title":"Criar fatura avulsa","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"2bba13b8-6805-4b9a-abe0-045aaecd81ec":{"name":"Idempotency-Key","in":"header","required":false,"description":"Chave única para garantir idempotência da requisição","schema":{"type":"string","isRequired":false,"description":"Chave única para garantir idempotência da requisição","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subscriptionId":{"type":"string","minLength":1,"description":"Assinatura dona da fatura. Aceita contratos encerrados — é o caminho para cobrar um valor renegociado ou dívida remanescente.","isRequired":true,"uniqueKey":"subscriptionId","typeLabel":"string"},"description":{"type":"string","minLength":1,"maxLength":200,"description":"O que está sendo cobrado (aparece na linha da fatura e na página de pagamento).","isRequired":true,"uniqueKey":"description","typeLabel":"string"},"amount":{"type":"integer","minimum":0,"exclusiveMinimum":true,"description":"Valor unitário, em centavos (menor unidade da moeda). A moeda é a da assinatura.","isRequired":true,"uniqueKey":"amount","typeLabel":"integer"},"dueAt":{"type":"string","format":"date-time","description":"Vencimento (ISO 8601 com timezone), estritamente no futuro. A cobrança dispara em `dueAt - chargeLeadTimeDays` da assinatura; se a data cair em fim de semana ou feriado e a política da conta só cobrar em dia útil, o vencimento desliza para o próximo dia útil.","isRequired":true,"uniqueKey":"dueAt","typeLabel":"string\u003cdate-time>"},"reason":{"type":"string","enum":["extra_service","adjustment","penalty","ad_hoc","other"],"description":"Classificação da cobrança, para auditoria e relatório.","isRequired":true,"uniqueKey":"reason","typeLabel":"enum\u003cstring>"},"reasonDetails":{"type":"string","minLength":1,"maxLength":500,"description":"Justificativa em texto livre (1 a 500 caracteres). Fica na trilha de auditoria — o pagador não vê; o que ele vê é `description`.","isRequired":true,"uniqueKey":"reasonDetails","typeLabel":"string"},"quantity":{"type":"integer","minimum":0,"exclusiveMinimum":true,"default":1,"description":"Quantidade. Default `1` — o total da fatura é `amount * quantity`.","uniqueKey":"quantity","typeLabel":"integer"},"allowedPaymentMethods":{"type":"array","items":{"type":"string","enum":["card","pix","boleto"],"uniqueKey":"allowedPaymentMethods.items.[INDEX]","typeLabel":"enum\u003cstring>"},"minItems":1,"maxItems":3,"description":"Formas de pagamento oferecidas na página de pagamento desta fatura. Ausente = o método padrão da assinatura.","uniqueKey":"allowedPaymentMethods","typeLabel":"enum\u003cstring>[]"},"collectionMethod":{"type":"string","enum":["charge_automatically","send_invoice"],"description":"Como esta cobrança sai. `charge_automatically` passa sozinha o cartão salvo na assinatura, sem ação do pagador — exige `card` em `allowedPaymentMethods`. `send_invoice` envia o link e deixa o pagador escolher, inclusive um cartão diferente do da assinatura. Ausente = o método de cobrança da assinatura.","uniqueKey":"collectionMethod","typeLabel":"enum\u003cstring>"},"installmentsConfig":{"oneOf":[{"type":"object","properties":{"maxInstallments":{"type":"integer","minimum":1,"maximum":12,"isRequired":true,"uniqueKey":"installmentsConfig.oneOf.0.maxInstallments","typeLabel":"integer"},"freeInstallments":{"type":"integer","minimum":1,"maximum":12,"uniqueKey":"installmentsConfig.oneOf.0.freeInstallments","typeLabel":"integer"},"interestRate":{"type":"number","minimum":0,"maximum":100,"uniqueKey":"installmentsConfig.oneOf.0.interestRate","typeLabel":"number"}},"required":["maxInstallments"],"description":"Parcelamento oferecido ao pagador no cartão — só faz sentido com `card` em `allowedPaymentMethods`. Ausente/null = à vista. Com `interestRate` (% ao mês), a opção acima de `freeInstallments` é cobrada com juros pela Tabela Price, como no checkout; à vista nunca tem juros. O juro entra em `adjustments` (`installment_interest`) quando a fatura é paga, e `amountPaid` passa do `total`.","uniqueKey":"installmentsConfig.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"maxInstallments":{"type":"integer","minimum":1,"maximum":12},"freeInstallments":{"type":"integer","minimum":1,"maximum":12},"interestRate":{"type":"number","minimum":0,"maximum":100}},"required":["maxInstallments"],"description":"Parcelamento oferecido ao pagador no cartão — só faz sentido com `card` em `allowedPaymentMethods`. Ausente/null = à vista. Com `interestRate` (% ao mês), a opção acima de `freeInstallments` é cobrada com juros pela Tabela Price, como no checkout; à vista nunca tem juros. O juro entra em `adjustments` (`installment_interest`) quando a fatura é paga, e `amountPaid` passa do `total`.","uniqueKey":"installmentsConfig.oneOf.1","typeLabel":"null"}],"uniqueKey":"installmentsConfig","typeLabel":"object | null"}},"required":["subscriptionId","description","amount","dueAt","reason","reasonDetails"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"subscriptionId":"\u003cstring>","description":"\u003cstring>","amount":1,"dueAt":"2023-11-07T05:31:56Z","reasonDetails":"\u003cstring>","quantity":1,"allowedPaymentMethods":[],"installmentsConfig":{"maxInstallments":6,"freeInstallments":6,"interestRate":50}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"c0a5b877-3beb-401f-9ad3-127431e40afa":{"description":"Fatura criada","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"d089b623-527f-4018-a00b-97511124fc37":{"description":"Vencimento no passado ou corpo inválido","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"Identificador estável do erro. É por ele que você deve ramificar, não pela mensagem.","uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"Descrição legível. Pode mudar sem aviso e não deve ser usada em condicional.","uniqueKey":"error.message","typeLabel":"string"},"issues":{"type":"array","description":"Um item por campo rejeitado. Nunca vem vazio: se há 400 de validação, há pelo menos um.","items":{"type":"object","properties":{"path":{"type":"string","description":"Campo que falhou. Vem vazio quando o erro é do corpo como um todo.","uniqueKey":"error.issues.items.[INDEX].path","typeLabel":"string"},"message":{"type":"string","description":"O que há de errado com esse campo.","uniqueKey":"error.issues.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"error.issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.issues","typeLabel":"object[]"}},"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"VALIDATION_ERROR","message":"Validation failed","issues":[{"path":"status","message":"Status inválido. Valores aceitos: pending, waiting_payment, paid, refused, canceled, refunded"},{"path":"startDate","message":"Data deve ser ISO 8601 com timezone (ex.: 2026-06-24T00:00:00Z)"}]}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION_ERROR","message":"Validation failed","issues":[{"path":"status","message":"Status inválido. Valores aceitos: pending, waiting_payment, paid, refused, canceled, refunded"},{"path":"startDate","message":"Data deve ser ISO 8601 com timezone (ex.: 2026-06-24T00:00:00Z)"}]}}}},"exampleType":"examples"}},"exampleType":"examples"},"5ae9d379-9e2d-4746-a8ac-3896a7cfc735":{"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"},"b66875cf-a12f-4ca8-af62-51ed848525a7":{"description":"Assinatura não encontrada","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":"NOT_FOUND","message":"Invoice not found"}},"examples":{"Example":{"title":"Example","value":{"error":{"code":"NOT_FOUND","message":"Invoice not found"}}}},"exampleType":"examples"}},"exampleType":"examples"},"878df0c3-d24e-4ca4-8b96-6fd65e7f1d17":{"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"},"e641c45d-4fc9-4590-8db7-964d68b82d98":{"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":{"24291a6d-f666-485c-8f5e-98b7b3a1ac99":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key da Credential (gerada no Backoffice)","scopes":[],"schemeName":"apiKey"}}},"servers":{"33ec1336-2082-4bce-8045-371fbc9a290a":{"url":"https://api.sandbox.z2pay.com/v1","description":"Sandbox"},"4958ed86-cd1a-4a43-a775-5c879141d77e":{"url":"https://api.z2pay.com/v1","description":"Produção"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key da Credential (gerada no Backoffice)","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","description":"API Key da Credential (gerada no Backoffice)","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"}]},"originalFileLocation":"openapi/billing.json"},"subdomain":"z2pay","siteName":"Z2Pay Developers","title":"Criar fatura avulsa - Z2Pay Developers","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T20:24:49.221Z","originalFileLocation":"pt-BR/subscriptions/invoices/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 uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.\">\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 fatura avulsa - Z2Pay Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cria uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.\">\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/subscriptions/invoices/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=Faturas\u0026amp;title=Criar+fatura+avulsa\u0026amp;description=Cria+uma+fatura+separada+do+ciclo%2C+com+vencimento+e+formas+de+pagamento+pr%C3%B3prios.\u0026amp;theme=c62ba0724a04aec70ad77de9\u0026amp;signature=815d435ec0d314f28318bac6edfbce3c2542190900eab8e8b5a4cf949f0f5bbb\">\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 fatura avulsa - Z2Pay Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cria uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://z2pay.mintlify.site/_mintlify/api/og/v2?division=Faturas\u0026amp;title=Criar+fatura+avulsa\u0026amp;description=Cria+uma+fatura+separada+do+ciclo%2C+com+vencimento+e+formas+de+pagamento+pr%C3%B3prios.\u0026amp;theme=c62ba0724a04aec70ad77de9\u0026amp;signature=815d435ec0d314f28318bac6edfbce3c2542190900eab8e8b5a4cf949f0f5bbb\">\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/subscriptions/invoices/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/subscriptions/invoices/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/subscriptions/invoices/create#webpage\",\"url\":\"https://docs.z2pay.com/pt-BR/subscriptions/invoices/create\",\"name\":\"Criar fatura avulsa\",\"description\":\"Cria uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.\",\"dateModified\":\"2026-11-24T20:24:49.221Z\",\"isPartOf\":{\"@id\":\"https://docs.z2pay.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.z2pay.com/pt-BR/subscriptions/invoices/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.z2pay.com/pt-BR/subscriptions/invoices/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cobrança recorrente\",\"item\":\"https://docs.z2pay.com/pt-BR/subscriptions/visao-geral\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Faturas\",\"item\":\"https://docs.z2pay.com/pt-BR/subscriptions/invoices\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Criar fatura avulsa\",\"item\":\"https://docs.z2pay.com/pt-BR/subscriptions/invoices/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.z2pay.com/pt-BR/subscriptions/invoices/create#apireference\",\"headline\":\"Criar fatura avulsa\",\"name\":\"Criar fatura avulsa\",\"description\":\"Cria uma fatura separada do ciclo, com vencimento e formas de pagamento próprios.\",\"url\":\"https://docs.z2pay.com/pt-BR/subscriptions/invoices/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.z2pay.com/pt-BR/subscriptions/invoices/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/subscriptions/invoices/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","href":"/pt-BR/checkout/pos"},{"title":"Criar intenção de pagamento","openapi":"openapi/checkout.json POST /pos/intents","href":"/pt-BR/checkout/pos/create"},{"title":"Listar intenções de pagamento","openapi":"openapi/checkout.json GET /pos/intents","href":"/pt-BR/checkout/pos/list"},{"title":"Buscar intenção de pagamento","openapi":"openapi/checkout.json GET /pos/intents/{id}","href":"/pt-BR/checkout/pos/get"},{"title":"Consultar situação da intenção","openapi":"openapi/checkout.json GET /public/pos/intents/{id}/status","href":"/pt-BR/checkout/pos/status"},{"title":"Cancelar intenção de pagamento","openapi":"openapi/checkout.json POST /pos/intents/{id}/cancel","href":"/pt-BR/checkout/pos/cancel"}]},{"title":"Integrar a maquininha","href":"/pt-BR/checkout/maquininha"}]},{"group":"Cobrança recorrente","pages":[{"title":"Assinaturas: visão geral","sidebarTitle":"Visão geral","href":"/pt-BR/subscriptions/visao-geral"},{"group":"Planos","pages":[{"sidebarTitle":"Visão geral","title":"Planos e Preços","href":"/pt-BR/subscriptions/plans"},{"title":"Criar plano","openapi":"openapi/billing.json POST /plans","href":"/pt-BR/subscriptions/plans/create"},{"title":"Listar planos","openapi":"openapi/billing.json GET /plans","href":"/pt-BR/subscriptions/plans/list"},{"title":"Buscar plano por ID","openapi":"openapi/billing.json GET /plans/{id}","href":"/pt-BR/subscriptions/plans/get"},{"title":"Atualizar plano","openapi":"openapi/billing.json PATCH /plans/{id}","href":"/pt-BR/subscriptions/plans/update"},{"title":"Arquivar plano","openapi":"openapi/billing.json POST /plans/{id}/archive","href":"/pt-BR/subscriptions/plans/archive"}]},{"group":"Itens do plano","pages":[{"title":"Adicionar item ao plano","openapi":"openapi/billing.json POST /plans/{id}/items","href":"/pt-BR/subscriptions/plans/items"},{"title":"Atualizar item do plano","openapi":"openapi/billing.json PATCH /plans/{id}/items/{itemId}","href":"/pt-BR/subscriptions/plans/items-update"},{"title":"Arquivar item do plano","openapi":"openapi/billing.json DELETE /plans/{id}/items/{itemId}","href":"/pt-BR/subscriptions/plans/items-delete"}]},{"group":"Preços","pages":[{"title":"Criar versão de preço","openapi":"openapi/billing.json POST /plans/{id}/prices","href":"/pt-BR/subscriptions/plans/prices-post"},{"title":"Listar versões de preço","openapi":"openapi/billing.json GET /plans/{id}/prices","href":"/pt-BR/subscriptions/plans/prices"},{"title":"Arquivar versão de preço","openapi":"openapi/billing.json POST /plans/{id}/prices/{priceId}/archive","href":"/pt-BR/subscriptions/plans/prices-archive"}]},{"group":"Assinaturas","pages":[{"sidebarTitle":"Visão geral","title":"Assinaturas","href":"/pt-BR/subscriptions"},{"title":"Criar assinatura","openapi":"openapi/billing.json POST /subscriptions","href":"/pt-BR/subscriptions/create"},{"title":"Listar assinaturas","openapi":"openapi/billing.json GET /subscriptions","href":"/pt-BR/subscriptions/list"},{"title":"Buscar assinatura por ID","openapi":"openapi/billing.json GET /subscriptions/{id}","href":"/pt-BR/subscriptions/get"},{"title":"Atualizar forma de pagamento","openapi":"openapi/billing.json POST /subscriptions/{id}/payment-method","href":"/pt-BR/subscriptions/payment-method"}]},{"group":"Ciclo de vida","pages":[{"title":"Pausar assinatura","openapi":"openapi/billing.json POST /subscriptions/{id}/pause","href":"/pt-BR/subscriptions/pause"},{"title":"Retomar assinatura pausada","openapi":"openapi/billing.json POST /subscriptions/{id}/resume","href":"/pt-BR/subscriptions/resume"},{"title":"Cancelar assinatura","openapi":"openapi/billing.json POST /subscriptions/{id}/cancel","href":"/pt-BR/subscriptions/cancel"},{"title":"Desfazer cancelamento agendado","openapi":"openapi/billing.json POST /subscriptions/{id}/uncancel","href":"/pt-BR/subscriptions/uncancel"}]},{"group":"Troca de plano","pages":[{"title":"Trocar o plano da assinatura","openapi":"openapi/billing.json POST /subscriptions/{id}/change-plan","href":"/pt-BR/subscriptions/change-plan"},{"title":"Simular a troca de plano","openapi":"openapi/billing.json POST /subscriptions/{id}/change-plan/preview","href":"/pt-BR/subscriptions/change-plan-preview"},{"title":"Desfazer a troca de plano agendada","openapi":"openapi/billing.json DELETE /subscriptions/{id}/change-plan","href":"/pt-BR/subscriptions/change-plan-delete"}]},{"group":"Cobranças extras","pages":[{"title":"Lançar cobrança extra","openapi":"openapi/billing.json POST /subscriptions/{id}/extra-items","href":"/pt-BR/subscriptions/extra-items"},{"title":"Listar cobranças extras","openapi":"openapi/billing.json GET /subscriptions/{id}/extra-items","href":"/pt-BR/subscriptions/extra-items-get"},{"title":"Fechar as cobranças extras agora","openapi":"openapi/billing.json POST /subscriptions/{id}/extra-items/settle","href":"/pt-BR/subscriptions/extra-items-settle"},{"title":"Cancelar cobrança extra","openapi":"openapi/billing.json DELETE /subscriptions/{id}/extra-items/{itemId}","href":"/pt-BR/subscriptions/extra-items-delete"}]},{"group":"Faturas","pages":[{"sidebarTitle":"Visão geral","title":"Faturas","description":"O documento de cobrança que cada ciclo emite — os oito estados por que passa e os dois links que a Z2Pay hospeda para o pagador.","href":"/pt-BR/subscriptions/invoices"},{"title":"Criar fatura avulsa","openapi":"openapi/billing.json POST /invoices","href":"/pt-BR/subscriptions/invoices/create"},{"title":"Listar faturas","description":"Lista paginada das faturas da conta, com filtros por estado, assinatura, cliente, valor e data.","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 fatura avulsa - 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"]}