Reconciliação é o mecanismo da plataforma para resolver o estado de transações cujo resultado não pôde ser confirmado de forma imediata — seja por falha de rede, timeout ou resposta ambígua do BaaS.Quando o despacho de uma operação retorna uma resposta inconclusiva, a plataforma marca a transação com PROVIDER_RESULT_UNKNOWN e inicia um ciclo de consultas ao BaaS. Se o BaaS responder com clareza, a transação é resolvida automaticamente. Se as tentativas se esgotarem, o estado avança para RECONCILIATION_REQUIRED.
Resposta ambígua do BaaS; reconciliação em andamento
Monitore com GET; não conclua a operação.
RECONCILIATION_REQUIRED
Tentativas esgotadas sem resultado claro
Escale para suporte; não conclua a operação.
Nunca trate PROVIDER_RESULT_UNKNOWN ou RECONCILIATION_REQUIRED como PAID, CONFIRMED, FAILED ou qualquer outro estado terminal. A operação ainda pode ser resolvida em qualquer direção.
Além da reconciliação automática da plataforma, o integrador deve fazer sua própria reconciliação periódica para garantir consistência entre o sistema interno e a plataforma.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ClearPago","description":"Documentação oficial da API Pix ClearPago — integração, referência e operações.","colors":{"primary":"#0f766e"},"logo":{"light":"https://mintcdn.com/clearpago/mSJ86kniaUbCKbT4/logo_lightmode.png?fit=max\u0026auto=format\u0026n=mSJ86kniaUbCKbT4\u0026q=85\u0026s=874e04286f63996eee39a525d0e88605","dark":"https://mintcdn.com/clearpago/mSJ86kniaUbCKbT4/logo_darkmode.png?fit=max\u0026auto=format\u0026n=mSJ86kniaUbCKbT4\u0026q=85\u0026s=b1d1e55f3c47423ae78c56d021c837f6"},"footer":{"socials":{}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"clearpago","hasAudioNarration":false,"actualSubdomain":"clearpago","customDomains":["docs.clearpago.com"],"gitSource":{"type":"github","owner":"europixgopay","repo":"doc-clearpago","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21b6e8b246900909733949","collectionId":"d62e408a-61dd-4644-a467-75b991618918","schemaVersion":"v2"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a21b6e8b246900909733949:success","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Referência de API","count":17},{"language":"default","tag":"Guias","count":8},{"language":"default","tag":"Webhooks","count":7},{"language":"default","tag":"Conceitos","count":6},{"language":"default","tag":"Introdução","count":5},{"language":"default","tag":"Cash-out","count":4},{"language":"default","tag":"Cash-in","count":3},{"language":"default","tag":"Refund","count":3},{"language":"default","tag":"Erros","count":3},{"language":"default","tag":"Go-live","count":3}]},"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":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"ledger-and-reconciliation/reconciliation","slug":"/ledger-and-reconciliation/reconciliation","pageMetadata":{"title":"Reconciliação","description":"Por que existe reconciliação, quando ela é acionada, como o integrador deve agir e quando escalar.","href":"/ledger-and-reconciliation/reconciliation"},"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: \"Por que existe reconciliação, quando ela é acionada, como o integrador deve agir e quando escalar.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`o-que-é-reconciliação`,children:`O que é reconciliação`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Reconciliação`}),` é o mecanismo da plataforma para resolver o estado de transações cujo resultado não pôde ser confirmado de forma imediata — seja por falha de rede, timeout ou resposta ambígua do BaaS.`]}),`\n`,_jsxs(_components.p,{children:[`Quando o despacho de uma operação retorna uma resposta inconclusiva, a plataforma marca a transação com `,_jsx(_components.code,{children:`PROVIDER_RESULT_UNKNOWN`}),` e inicia um ciclo de consultas ao BaaS. Se o BaaS responder com clareza, a transação é resolvida automaticamente. Se as tentativas se esgotarem, o estado avança para `,_jsx(_components.code,{children:`RECONCILIATION_REQUIRED`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`estados-que-indicam-reconciliação-ativa`,children:`Estados que indicam reconciliação ativa`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Significado`}),_jsx(_components.th,{children:`Ação do integrador`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PROVIDER_RESULT_UNKNOWN`})}),_jsx(_components.td,{children:`Resposta ambígua do BaaS; reconciliação em andamento`}),_jsxs(_components.td,{children:[`Monitore com `,_jsx(_components.code,{children:`GET`}),`; não conclua a operação.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RECONCILIATION_REQUIRED`})}),_jsx(_components.td,{children:`Tentativas esgotadas sem resultado claro`}),_jsx(_components.td,{children:`Escale para suporte; não conclua a operação.`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Nunca`}),` trate `,_jsx(_components.code,{children:`PROVIDER_RESULT_UNKNOWN`}),` ou `,_jsx(_components.code,{children:`RECONCILIATION_REQUIRED`}),` como `,_jsx(_components.code,{children:`PAID`}),`, `,_jsx(_components.code,{children:`CONFIRMED`}),`, `,_jsx(_components.code,{children:`FAILED`}),` ou qualquer outro estado terminal. A operação ainda pode ser resolvida em qualquer direção.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`como-a-reconciliação-automática-funciona`,children:`Como a reconciliação automática funciona`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Transação entra em `,_jsx(_components.code,{children:`PROVIDER_RESULT_UNKNOWN`}),` após resposta ambígua.`]}),`\n`,_jsx(_components.li,{children:`Worker de reconciliação consulta o BaaS em intervalos crescentes (backoff).`}),`\n`,_jsxs(_components.li,{children:[`Se o BaaS confirmar: transação vai a `,_jsx(_components.code,{children:`PAID`}),` / `,_jsx(_components.code,{children:`CONFIRMED`}),` e notificação é despachada ao comerciante.`]}),`\n`,_jsxs(_components.li,{children:[`Se o BaaS informar falha: transação vai a `,_jsx(_components.code,{children:`FAILED`}),` e reserva é liberada.`]}),`\n`,_jsxs(_components.li,{children:[`Se o BaaS não responder após N tentativas: transação vai a `,_jsx(_components.code,{children:`RECONCILIATION_REQUIRED`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`o-que-fazer-em-cada-estado`,children:`O que fazer em cada estado`}),`\n`,_jsx(Heading,{level:`3`,id:`provider_result_unknown`,children:_jsx(_components.code,{children:`PROVIDER_RESULT_UNKNOWN`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Polling com `,_jsx(_components.code,{children:`GET`})]}),` periodicamente (ex.: a cada 60 segundos por até 15 minutos).`]}),`\n`,_jsxs(_components.li,{children:[`Aguarde o webhook `,_jsx(_components.code,{children:`pix_cash_out`}),` ou `,_jsx(_components.code,{children:`pix_cash_in`}),` com resultado.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Não reenvie`}),` a operação enquanto o estado for ambíguo.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.clearpago.com.br/api/pix/cash-out/{id}`}),_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:` \"Authorization: Bearer \u003cseu_api_token>\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reconciliation_required`,children:_jsx(_components.code,{children:`RECONCILIATION_REQUIRED`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Escale para suporte`}),` com o `,_jsx(_components.code,{children:`id`}),` da transação e o `,_jsx(_components.code,{children:`X-Correlation-ID`}),`.`]}),`\n`,_jsx(_components.li,{children:`Mantenha a operação como “em análise” na sua base.`}),`\n`,_jsx(_components.li,{children:`Não registre como sucesso ou falha até resolução.`}),`\n`,_jsx(_components.li,{children:`Informe o usuário final que há uma análise em andamento, se necessário.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`reconciliação-pelo-integrador`,children:`Reconciliação pelo integrador`}),`\n`,_jsx(_components.p,{children:`Além da reconciliação automática da plataforma, o integrador deve fazer sua própria reconciliação periódica para garantir consistência entre o sistema interno e a plataforma.`}),`\n`,_jsx(Heading,{level:`3`,id:`reconciliação-diária-recomendada`,children:`Reconciliação diária recomendada`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Liste as transações do dia`}),` com `,_jsx(_components.code,{children:`GET /api/pix/cash-in?start_date=YYYY-MM-DD\u0026end_date=YYYY-MM-DD`}),`.`]}),`\n`,_jsx(_components.li,{children:`Compare com os registros internos.`}),`\n`,_jsxs(_components.li,{children:[`Para cada divergência:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Transação na plataforma mas não no sistema interno: verificar se webhook foi perdido.`}),`\n`,_jsx(_components.li,{children:`Transação no sistema interno com status diferente da plataforma: atualizar pelo dado da plataforma.`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.li,{children:`Repita para cash-out, refund e ledger.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`reconciliação-do-ledger`,children:`Reconciliação do ledger`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Exporte o ledger do período`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.clearpago.com.br/api/pix/ledger?start_date=2026-04-01\u0026end_date=2026-04-01\u0026limit=100\"`}),_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:` \"Authorization: Bearer \u003cseu_api_token>\"`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Compare soma de créditos e débitos com o esperado pelo seu sistema financeiro.`}),`\n`,_jsx(Heading,{level:`2`,id:`divergências-comuns-e-como-resolver`,children:`Divergências comuns e como resolver`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Divergência`}),_jsx(_components.th,{children:`Causa`}),_jsx(_components.th,{children:`Resolução`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Webhook `,_jsx(_components.code,{children:`PAID`}),` mas GET mostra `,_jsx(_components.code,{children:`PENDING`})]}),_jsx(_components.td,{children:`Webhook chegou antes do estado ser persistido (raro)`}),_jsx(_components.td,{children:`Aguardar alguns segundos e consultar novamente.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`GET mostra `,_jsx(_components.code,{children:`PAID`}),` mas webhook não chegou`]}),_jsx(_components.td,{children:`Webhook perdido (5xx no seu endpoint)`}),_jsx(_components.td,{children:`Reconciliar via GET; corrigir endpoint; verificar logs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Valor no ledger diferente do webhook`}),_jsx(_components.td,{children:`Tarifa calculada diferente`}),_jsxs(_components.td,{children:[`Consultar `,_jsx(_components.code,{children:`GET /api/pix/ledger/{id}`}),` para detalhe; `,_jsx(_components.code,{children:`fee_amount_cents`}),` pode diferir.`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Cash-out `,_jsx(_components.code,{children:`CONFIRMED`}),` mas sem lançamento no ledger`]}),_jsx(_components.td,{children:`Atraso de worker`}),_jsx(_components.td,{children:`Aguardar alguns minutos; consultar ledger novamente.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`janelas-de-tempo-orientativas`,children:`Janelas de tempo orientativas`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`TODO: confirmar com a equipe de produto`}),` os SLAs exatos de reconciliação automática. Os valores abaixo são `,_jsx(_components.strong,{children:`orientativos`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Evento`}),_jsx(_components.th,{children:`Janela esperada`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cash-in normal (rede estável)`}),_jsx(_components.td,{children:`Segundos a 1–2 minutos`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cash-out normal (despacho imediato)`}),_jsx(_components.td,{children:`Segundos a poucos minutos`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Reconciliação de `,_jsx(_components.code,{children:`PROVIDER_RESULT_UNKNOWN`})]}),_jsx(_components.td,{children:`5–15 minutos (N tentativas com backoff)`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`RECONCILIATION_REQUIRED`}),` → resolução manual`]}),_jsx(_components.td,{children:`Variável; abrir ticket de suporte`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`referências`,children:`Referências`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/ledger-and-reconciliation/operational-monitoring`,children:`Monitoramento operacional`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/reconcile-transactions`,children:`Guia de reconciliação de transações`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/core-concepts/status-model`,children:`Modelo de status`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/errors/troubleshooting`,children:`Troubleshooting`})}),`\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":"Reconciliação","description":"Por que existe reconciliação, quando ela é acionada, como o integrador deve agir e quando escalar.","href":"/ledger-and-reconciliation/reconciliation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"O que é reconciliação","slug":"o-que-é-reconciliação","depth":2,"children":[]},{"title":"Estados que indicam reconciliação ativa","slug":"estados-que-indicam-reconciliação-ativa","depth":2,"children":[]},{"title":"Como a reconciliação automática funciona","slug":"como-a-reconciliação-automática-funciona","depth":2,"children":[]},{"title":"O que fazer em cada estado","slug":"o-que-fazer-em-cada-estado","depth":2,"children":[{"title":"PROVIDER_RESULT_UNKNOWN","slug":"provider_result_unknown","depth":3,"children":[]},{"title":"RECONCILIATION_REQUIRED","slug":"reconciliation_required","depth":3,"children":[]}]},{"title":"Reconciliação pelo integrador","slug":"reconciliação-pelo-integrador","depth":2,"children":[{"title":"Reconciliação diária recomendada","slug":"reconciliação-diária-recomendada","depth":3,"children":[]},{"title":"Reconciliação do ledger","slug":"reconciliação-do-ledger","depth":3,"children":[]}]},{"title":"Divergências comuns e como resolver","slug":"divergências-comuns-e-como-resolver","depth":2,"children":[]},{"title":"Janelas de tempo orientativas","slug":"janelas-de-tempo-orientativas","depth":2,"children":[]},{"title":"Referências","slug":"referências","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"clearpago","siteName":"ClearPago","title":"Reconciliação - ClearPago","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-23T18:50:50.132Z","originalFileLocation":"ledger-and-reconciliation/reconciliation.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=\"Por que existe reconciliação, quando ela é acionada, como o integrador deve agir e quando escalar.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ClearPago\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/clearpago/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/clearpago/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/clearpago/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/clearpago/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Reconciliação - ClearPago\">\u003cmeta data-mint-head property=\"og:description\" content=\"Por que existe reconciliação, quando ela é acionada, como o integrador deve agir e quando escalar.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ClearPago\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://clearpago.mintlify.app/_mintlify/api/og/v2?division=Ledger+e+Reconcilia%C3%A7%C3%A3o\u0026amp;title=Reconcilia%C3%A7%C3%A3o\u0026amp;description=Por+que+existe+reconcilia%C3%A7%C3%A3o%2C+quando+ela+%C3%A9+acionada%2C+como+o+integrador+deve+agir+e+quando+escalar.\u0026amp;theme=d304cf9661ece7b5262fc744\u0026amp;signature=855dda81b2cb9a27978058686c2e16092e9a6471b038c6ce34ed52e19e40d130\">\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=\"Reconciliação - ClearPago\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Por que existe reconciliação, quando ela é acionada, como o integrador deve agir e quando escalar.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://clearpago.mintlify.app/_mintlify/api/og/v2?division=Ledger+e+Reconcilia%C3%A7%C3%A3o\u0026amp;title=Reconcilia%C3%A7%C3%A3o\u0026amp;description=Por+que+existe+reconcilia%C3%A7%C3%A3o%2C+quando+ela+%C3%A9+acionada%2C+como+o+integrador+deve+agir+e+quando+escalar.\u0026amp;theme=d304cf9661ece7b5262fc744\u0026amp;signature=855dda81b2cb9a27978058686c2e16092e9a6471b038c6ce34ed52e19e40d130\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/clearpago/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ClearPago\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f766e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ledger-and-reconciliation/reconciliation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.clearpago.com/#organization\",\"name\":\"ClearPago\",\"url\":\"https://docs.clearpago.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/clearpago/mSJ86kniaUbCKbT4/logo_lightmode.png?fit=max\u0026auto=format\u0026n=mSJ86kniaUbCKbT4\u0026q=85\u0026s=874e04286f63996eee39a525d0e88605\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.clearpago.com#website\",\"name\":\"ClearPago\",\"url\":\"https://docs.clearpago.com\",\"publisher\":{\"@id\":\"https://docs.clearpago.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation#webpage\",\"url\":\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation\",\"name\":\"Reconciliação\",\"description\":\"Por que existe reconciliação, quando ela é acionada, como o integrador deve agir e quando escalar.\",\"dateModified\":\"2026-04-23T18:50:50.132Z\",\"isPartOf\":{\"@id\":\"https://docs.clearpago.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ledger e Reconciliação\",\"item\":\"https://docs.clearpago.com/ledger-and-reconciliation/ledger-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reconciliação\",\"item\":\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation#article\",\"headline\":\"Reconciliação\",\"name\":\"Reconciliação\",\"description\":\"Por que existe reconciliação, quando ela é acionada, como o integrador deve agir e quando escalar.\",\"url\":\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.clearpago.com/ledger-and-reconciliation/reconciliation#webpage\"},\"dateModified\":\"2026-04-23T18:50:50.132Z\",\"publisher\":{\"@id\":\"https://docs.clearpago.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.clearpago.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ClearPago\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"ClearPago","nav":{"global":null,"groups":[{"group":"Início","pages":[{"title":"ClearPago — API Pix","href":"/index"}]},{"group":"Introdução","pages":[{"title":"Visão geral","href":"/getting-started/overview"},{"title":"Autenticação","href":"/getting-started/authentication"},{"title":"Quickstart","href":"/getting-started/quickstart"},{"title":"Ambientes, headers e convenções","href":"/getting-started/environments-and-headers"},{"title":"Checklist de primeira integração","href":"/getting-started/first-integration-checklist"}]},{"group":"Conceitos","pages":[{"title":"Arquitetura","href":"/core-concepts/architecture"},{"title":"Modelo de identidade","href":"/core-concepts/identity-model"},{"title":"Ciclo de vida das operações","href":"/core-concepts/transaction-lifecycle"},{"title":"Modelo de status","href":"/core-concepts/status-model"},{"title":"Idempotência e correlação","href":"/core-concepts/idempotency-and-correlation"},{"title":"Ledger e saldo","href":"/core-concepts/ledger-and-balance"}]},{"group":"Guias","pages":[{"title":"Receber Pix (Cash-in)","href":"/guides/receive-pix-cash-in"},{"title":"Enviar Pix por chave (Cash-out)","href":"/guides/send-pix-cash-out-key"},{"title":"Enviar Pix por QR Code (Cash-out QR)","href":"/guides/send-pix-cash-out-qrcode"},{"title":"Devolver um cash-in (Refund-in)","href":"/guides/refund-a-cash-in"},{"title":"Lidar com reversão de cash-out","href":"/guides/handle-cash-out-reversal"},{"title":"Registrar webhooks do comerciante","href":"/guides/register-merchant-webhooks"},{"title":"Verificar assinaturas de webhook","href":"/guides/verify-webhook-signatures"},{"title":"Reconciliar transações","href":"/guides/reconcile-transactions"}]},{"group":"Referência de API","pages":[{"group":"Cash-in","pages":[{"title":"POST /api/pix/cash-in","href":"/api-reference/create-cash-in"},{"title":"GET /api/pix/cash-in","href":"/api-reference/list-cash-ins"},{"title":"GET /api/pix/cash-in/{id}","href":"/api-reference/get-cash-in"}]},{"group":"Cash-out","pages":[{"title":"POST /api/pix/cash-out","href":"/api-reference/create-cash-out"},{"title":"GET /api/pix/cash-out","href":"/api-reference/list-cash-outs"},{"title":"GET /api/pix/cash-out/{id}","href":"/api-reference/get-cash-out"},{"title":"POST /api/pix/cash-out-qrcode","href":"/api-reference/create-cash-out-qrcode"}]},{"group":"Refund","pages":[{"title":"POST /api/pix/refund-in/{id}","href":"/api-reference/create-refund-in"},{"title":"GET /api/pix/refund","href":"/api-reference/list-refunds"},{"title":"GET /api/pix/refund/{id}","href":"/api-reference/get-refund"}]},{"group":"Ledger","pages":[{"title":"GET /api/pix/ledger","href":"/api-reference/list-ledger-entries"},{"title":"GET /api/pix/ledger/{id}","href":"/api-reference/get-ledger-entry"}]},{"group":"Organização","pages":[{"title":"GET /organization/balance","href":"/api-reference/get-balance"}]},{"group":"Transações","pages":[{"title":"List transactions cash in","href":"/api-reference/list-transactions-cash-in"},{"title":"List transactions cash out","href":"/api-reference/list-transactions-cash-out"}]},{"group":"Webhooks","pages":[{"title":"POST /webhook (registro de notificações)","href":"/api-reference/register-webhook"},{"title":"GET /webhook","href":"/api-reference/list-webhooks"},{"title":"DELETE /webhook/{webhook_id}","href":"/api-reference/delete-webhook"},{"title":"GET /public-key","href":"/api-reference/get-public-key"}]}]},{"group":"Webhooks","pages":[{"title":"Webhooks: parceiro → ClearPago","href":"/webhooks/partner-to-clearpago"},{"title":"Webhooks: ClearPago → comerciante","href":"/webhooks/clearpago-to-merchant"},{"title":"Referência de payloads (webhooks)","href":"/webhooks/webhook-event-reference"}]},{"group":"Ledger e Reconciliação","pages":[{"title":"Ledger — Visão geral","description":"O que é o ledger da ClearPago, quando lançamentos são criados, como consultar e como interpretar créditos e débitos.","href":"/ledger-and-reconciliation/ledger-overview"},{"title":"Reconciliação","href":"/ledger-and-reconciliation/reconciliation"},{"title":"Monitoramento operacional","description":"O que monitorar, como detectar operações presas, divergências entre webhook e consulta, e práticas de suporte a incidentes.","href":"/ledger-and-reconciliation/operational-monitoring"}]},{"group":"Erros","pages":[{"title":"Tratamento de erros","href":"/errors/error-handling"},{"title":"Códigos, sintomas e ações","href":"/errors/error-codes"},{"title":"Troubleshooting","href":"/errors/troubleshooting"}]},{"group":"Go-live","pages":[{"title":"Checklist de produção","href":"/go-live/production-checklist"},{"title":"Checklist de segurança","href":"/go-live/security-checklist"},{"title":"Checklist de observabilidade","href":"/go-live/observability-checklist"}]},{"group":"FAQ","pages":[{"title":"Perguntas frequentes","href":"/faq/index"}]}]},"title":"Reconciliação - ClearPago","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":[],"chunks":[]}