Disponível a partir da v0.8.2. Retorna uma linha por tentativa lógica de cobrança em todos os ciclos da série — ciclo 1 interativo, cada cobrança silenciosa, cada retry, cada mark-paid manual. Cada linha carrega o failureCode canônico para recusas, possibilitando auditar por que uma série recorrente caiu em atraso.
Quando usar
Debug de cliente reclamando “minha cobrança falhou e não sei por quê”
Dashboard interno mostrando histórico de tentativas
Auditoria de SLA: quantas tentativas a Garu fez antes de marcar como overdue
Cliente pagou no link público do ciclo 1 (tokenização inicial)
silent_charge
Cron de billing cobrou silenciosamente o cartão salvo (ciclo N≥2)
card_retry
Cron de retry chamou o endpoint nativo de retry do gateway
manual_mark_paid
Seller marcou ciclo como pago manualmente
fallback_pix
(reservado; ainda não emitido)
Status
Valor
Descrição
pending
Requisição feita, aguardando webhook do gateway
succeeded
Convertido em transação paga
declined
Negado pelo emissor (ver failureCode)
canceled
Cancelado antes de completar
errored
Erro técnico — distinto de declined (rede, 5xx, etc.)
O snapshot de cardLast4 / cardBrand é capturado no momento da tentativa e sobrevive à exclusão do PaymentMethod (LGPD removal). paymentMethodId pode ficar null se a row foi deletada, mas você ainda vê o final do cartão.
Exemplo
Auditoria de uma série em atraso:
# Quantas vezes tentamos cobrar o ciclo 3?curl https://garu.com.br/api/v1/scheduled-charges/sch_abc/attempts?cycleNumber=3 \ -H "Authorization: Bearer $GARU_API_KEY"
// Pegando todas as recusas com falha distintaimport { Garu } from '@garuhq/node';const garu = new Garu({ apiKey: process.env.GARU_API_KEY! });const { data } = await garu.scheduledCharges.listAttempts('sch_abc');const declines = data.filter((a) => a.status === 'declined');const codes = new Set(declines.map((a) => a.failureCode));// → Set { 'insufficient_funds', 'issuer_unavailable' }
Ferramenta list_scheduled_charge_attempts — agentes podem inspecionar histórico de cobrança como parte de fluxos de suporte.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"Garu","description":"Documentação oficial da API Garu - Gateway de pagamentos que simplifica a gestão e apoia empreendedores no seu crescimento. Integre PIX, Cartão de Crédito e Boleto em minutos.","colors":{"primary":"#257264","light":"#FAF6ED","dark":"#005243"},"logo":{"light":"https://mintcdn.com/garu/g-shOvMOEbJZqokd/logo/light.svg?fit=max\u0026auto=format\u0026n=g-shOvMOEbJZqokd\u0026q=85\u0026s=b6c0de2b9b2378205ccf76d131a91a69","dark":"https://mintcdn.com/garu/g-shOvMOEbJZqokd/logo/dark.svg?fit=max\u0026auto=format\u0026n=g-shOvMOEbJZqokd\u0026q=85\u0026s=4c31441f3c8b4cf869015f4f30d47395"},"favicon":"https://mintcdn.com/garu/g-shOvMOEbJZqokd/favicon.png?fit=max\u0026auto=format\u0026n=g-shOvMOEbJZqokd\u0026q=85\u0026s=8cac01c3f496d267e96afa23109702bf","api":{"playground":{},"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://garu.com.br"}},"navbar":{"links":[{"href":"mailto:contato@garu.com.br","label":"Suporte"}],"primary":{"type":"button","label":"Dashboard","href":"https://garu.com.br/inicio"}},"footer":{"socials":{"instagram":"https://www.instagram.com/tecnosolve","linkedin":"https://www.linkedin.com/company/tecnosolve"}},"seo":{},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":false},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://garu.com.br/inicio"},{"anchor":"OpenAPI","icon":"code","href":"https://garu.com.br/api/openapi.json"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"garu","hasAudioNarration":false,"actualSubdomain":"garu","customDomains":["docs.garu.com.br"],"gitSource":{"type":"github","owner":"garu-pagamentos","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":false},"entitlements":{},"buildId":"6ada8827b792eded1561428d","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Referência da API","count":74},{"language":"default","tag":"Guias","count":22},{"language":"default","tag":"Integrando Pagamentos","count":12},{"language":"default","tag":"Cobranças Agendadas","count":9},{"language":"default","tag":"Boleto Parcelado (Carnê)","count":8},{"language":"default","tag":"Webhooks e Exemplos","count":8},{"language":"default","tag":"Assinaturas","count":7},{"language":"default","tag":"Clientes","count":6},{"language":"default","tag":"Produtos","count":6},{"language":"default","tag":"Preços de Assinatura","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/cobrancas-agendadas/tentativas","slug":"/api-reference/cobrancas-agendadas/tentativas","pageMetadata":{"title":"Listar tentativas de cobrança","description":"Log per-attempt para auditoria de billing recorrente","api":"GET /api/v1/scheduled-charges/{id}/attempts","href":"/api-reference/cobrancas-agendadas/tentativas"},"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: \"Log per-attempt para auditoria de billing recorrente\"\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={code:`code`,li:`li`,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,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Disponível a partir da `,_jsx(_components.strong,{children:`v0.8.2`}),`. Retorna `,_jsx(_components.strong,{children:`uma linha por tentativa lógica de cobrança`}),` em todos os ciclos da série — ciclo 1 interativo, cada cobrança silenciosa, cada retry, cada `,_jsx(_components.code,{children:`mark-paid`}),` manual. Cada linha carrega o `,_jsx(_components.code,{children:`failureCode`}),` canônico para recusas, possibilitando auditar por que uma série recorrente caiu em atraso.`]}),`\n`,_jsx(Heading,{level:`2`,id:`quando-usar`,children:`Quando usar`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Debug de cliente reclamando “minha cobrança falhou e não sei por quê”`}),`\n`,_jsx(_components.li,{children:`Dashboard interno mostrando histórico de tentativas`}),`\n`,_jsxs(_components.li,{children:[`Auditoria de SLA: quantas tentativas a Garu fez antes de marcar como `,_jsx(_components.code,{children:`overdue`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`query-params`,children:`Query params`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Param`}),_jsx(_components.th,{children:`Tipo`}),_jsx(_components.th,{children:`Default`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cycleNumber`})}),_jsx(_components.td,{children:`int`}),_jsx(_components.td,{children:`(todos os ciclos)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`page`})}),_jsx(_components.td,{children:`int`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`int (1..100)`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`20`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`resposta`,children:`Resposta`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`25`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`25`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1234`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cycleId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"scc_01HG...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cycleNumber\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"attemptNumber\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"attemptedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-04T19:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"card_retry\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentMethod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"card\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paymentMethodId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`99`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cardLast4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4242\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cardBrand\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"visa\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"declined\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failureCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"insufficient_funds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failureReason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Saldo insuficiente\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"gatewayFailureCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"51\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"gatewayChargeId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`887766`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transactionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5544`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalCount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"totalPages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Heading,{level:`2`,id:`origem-da-tentativa-source`,children:[`Origem da tentativa (`,_jsx(_components.code,{children:`source`}),`)`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Valor`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cycle1_interactive`})}),_jsx(_components.td,{children:`Cliente pagou no link público do ciclo 1 (tokenização inicial)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`silent_charge`})}),_jsx(_components.td,{children:`Cron de billing cobrou silenciosamente o cartão salvo (ciclo N≥2)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`card_retry`})}),_jsx(_components.td,{children:`Cron de retry chamou o endpoint nativo de retry do gateway`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`manual_mark_paid`})}),_jsx(_components.td,{children:`Seller marcou ciclo como pago manualmente`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fallback_pix`})}),_jsx(_components.td,{children:`(reservado; ainda não emitido)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`status`,children:`Status`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Valor`}),_jsx(_components.th,{children:`Descrição`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsx(_components.td,{children:`Requisição feita, aguardando webhook do gateway`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`succeeded`})}),_jsx(_components.td,{children:`Convertido em transação paga`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`declined`})}),_jsxs(_components.td,{children:[`Negado pelo emissor (ver `,_jsx(_components.code,{children:`failureCode`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`canceled`})}),_jsx(_components.td,{children:`Cancelado antes de completar`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`errored`})}),_jsxs(_components.td,{children:[`Erro técnico — distinto de `,_jsx(_components.code,{children:`declined`}),` (rede, 5xx, etc.)`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`O snapshot de `,_jsx(_components.code,{children:`cardLast4`}),` / `,_jsx(_components.code,{children:`cardBrand`}),` é capturado no momento da tentativa e `,_jsx(_components.strong,{children:`sobrevive`}),` à exclusão do PaymentMethod (LGPD removal). `,_jsx(_components.code,{children:`paymentMethodId`}),` pode ficar `,_jsx(_components.code,{children:`null`}),` se a row foi deletada, mas você ainda vê o final do cartão.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`exemplo`,children:`Exemplo`}),`\n`,_jsx(_components.p,{children:`Auditoria de uma série em atraso:`}),`\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:`# Quantas vezes tentamos cobrar o ciclo 3?`})}),`\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://garu.com.br/api/v1/scheduled-charges/sch_abc/attempts?cycleNumber=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_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 `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$GARU_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Pegando todas as recusas com falha distinta`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Garu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@garuhq/node'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` garu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Garu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`GARU_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` garu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scheduledCharges`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`listAttempts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'sch_abc'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` declines`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`filter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`a`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` a`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ===`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'declined'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` codes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`declines`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`a`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` a`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`failureCode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// → Set { 'insufficient_funds', 'issuer_unavailable' }`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`sdk`,children:`SDK`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` garu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`scheduledCharges`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`listAttempts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'sch_abc'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` cycleNumber:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` limit:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`mcp`,children:`MCP`}),`\n`,_jsxs(_components.p,{children:[`Ferramenta `,_jsx(_components.code,{children:`list_scheduled_charge_attempts`}),` — agentes podem inspecionar histórico de cobrança como parte de fluxos de suporte.`]})]})}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":"Listar tentativas de cobrança","description":"Log per-attempt para auditoria de billing recorrente","api":"GET /api/v1/scheduled-charges/{id}/attempts","href":"/api-reference/cobrancas-agendadas/tentativas"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Quando usar","slug":"quando-usar","depth":2,"children":[]},{"title":"Query params","slug":"query-params","depth":2,"children":[]},{"title":"Resposta","slug":"resposta","depth":2,"children":[]},{"title":"Origem da tentativa (source)","slug":"origem-da-tentativa-source","depth":2,"children":[]},{"title":"Status","slug":"status","depth":2,"children":[]},{"title":"Exemplo","slug":"exemplo","depth":2,"children":[]},{"title":"SDK","slug":"sdk","depth":2,"children":[]},{"title":"MCP","slug":"mcp","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Listar tentativas de cobrança","path":"/api/v1/scheduled-charges/{id}/attempts","method":"get","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"garu","siteName":"Garu","title":"Listar tentativas de cobrança - Garu","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-22T22:28:27.971Z","originalFileLocation":"api-reference/cobrancas-agendadas/tentativas.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=\"Log per-attempt para auditoria de billing recorrente\">\u003cmeta data-mint-head name=\"application-name\" content=\"Garu\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_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/garu/ITGxpj5UQhT-Vt8F/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Listar tentativas de cobrança - Garu\">\u003cmeta data-mint-head property=\"og:description\" content=\"Log per-attempt para auditoria de billing recorrente\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Garu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://garu.mintlify.site/_mintlify/api/og/v2?division=Cobran%C3%A7as+Agendadas\u0026amp;title=Listar+tentativas+de+cobran%C3%A7a\u0026amp;description=Log+per-attempt+para+auditoria+de+billing+recorrente\u0026amp;theme=284dae2754295f04476f1dce\u0026amp;signature=5c46ad986a7f6809929d3a1b87ee9909072e712567b335c8b7c735ebc949e563\">\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=\"Listar tentativas de cobrança - Garu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Log per-attempt para auditoria de billing recorrente\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://garu.mintlify.site/_mintlify/api/og/v2?division=Cobran%C3%A7as+Agendadas\u0026amp;title=Listar+tentativas+de+cobran%C3%A7a\u0026amp;description=Log+per-attempt+para+auditoria+de+billing+recorrente\u0026amp;theme=284dae2754295f04476f1dce\u0026amp;signature=5c46ad986a7f6809929d3a1b87ee9909072e712567b335c8b7c735ebc949e563\">\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/garu/ITGxpj5UQhT-Vt8F/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Garu\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#257264\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/cobrancas-agendadas/tentativas.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.garu.com.br/#organization\",\"name\":\"Garu\",\"url\":\"https://docs.garu.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/garu/g-shOvMOEbJZqokd/logo/light.svg?fit=max\u0026auto=format\u0026n=g-shOvMOEbJZqokd\u0026q=85\u0026s=b6c0de2b9b2378205ccf76d131a91a69\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.garu.com.br#website\",\"name\":\"Garu\",\"url\":\"https://docs.garu.com.br\",\"publisher\":{\"@id\":\"https://docs.garu.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas#webpage\",\"url\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas\",\"name\":\"Listar tentativas de cobrança\",\"description\":\"Log per-attempt para auditoria de billing recorrente\",\"dateModified\":\"2026-08-22T22:28:27.971Z\",\"isPartOf\":{\"@id\":\"https://docs.garu.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Cobranças Agendadas\",\"item\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/criar\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Listar tentativas de cobrança\",\"item\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas#apireference\",\"headline\":\"Listar tentativas de cobrança\",\"name\":\"Listar tentativas de cobrança\",\"description\":\"Log per-attempt para auditoria de billing recorrente\",\"url\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas\",\"mainEntityOfPage\":{\"@id\":\"https://docs.garu.com.br/api-reference/cobrancas-agendadas/tentativas#webpage\"},\"dateModified\":\"2026-08-22T22:28:27.971Z\",\"publisher\":{\"@id\":\"https://docs.garu.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.garu.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Garu\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Garu\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/cobrancas-agendadas/tentativas.md","siteName":"Garu","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"gauge","href":"https://garu.com.br/inicio"},{"anchor":"OpenAPI","icon":"code","href":"https://garu.com.br/api/openapi.json"}]},"tabs":[{"tab":"Guias","pages":[{"title":"Guias","href":""}]},{"tab":"Referência da API","groups":[{"group":"Primeiros Passos","pages":[{"title":"Introdução","href":"/api-reference/introduction"},{"title":"Autenticação","href":"/api-reference/autenticacao"}]},{"group":"Produtos","pages":[{"title":"Criar Produto","api":"POST /api/v1/products","href":"/api-reference/produtos/criar"},{"title":"Link de Pagamento","href":"/api-reference/produtos/link-pagamento"},{"title":"Listar Produtos","api":"GET /api/v1/products","href":"/api-reference/produtos/listar"},{"title":"Atualizar Produto","api":"PATCH /api/v1/products/{uuid}","href":"/api-reference/produtos/atualizar"},{"title":"Excluir Produto","api":"DELETE /api/v1/products/{uuid}","href":"/api-reference/produtos/excluir"},{"title":"Portal customizado por produto (B2B2C)","href":"/api-reference/produtos/portal-config"}]},{"group":"Checkout Sessions","pages":[{"title":"Criar Checkout Session","api":"POST /api/checkout/sessions","href":"/api-reference/checkout/criar"},{"title":"Listar Checkout Sessions","api":"GET /api/checkout/sessions","href":"/api-reference/checkout/listar"},{"title":"Detalhes da Checkout Session","api":"GET /api/checkout/sessions/{id}","href":"/api-reference/checkout/detalhes"},{"title":"Expirar Checkout Session","api":"POST /api/checkout/sessions/{id}/expire","href":"/api-reference/checkout/expirar"}]},{"group":"Cobranças","pages":[{"title":"Criar Cobrança","api":"POST /api/v1/charges","href":"/api-reference/cobrancas/criar"},{"title":"Consultar Cobrança","api":"GET /api/v1/charges/{uuid}","href":"/api-reference/cobrancas/detalhes"},{"title":"Listar Cobranças","api":"GET /api/v1/charges","href":"/api-reference/cobrancas/listar"},{"title":"Estornar Cobrança","api":"POST /api/v1/charges/{uuid}/refund","href":"/api-reference/cobrancas/reembolsar"},{"title":"Cancelar Cobrança","api":"DELETE /api/v1/charges/{uuid}","href":"/api-reference/cobrancas/cancelar"}]},{"group":"Clientes","pages":[{"title":"Registrar Cliente","api":"POST /api/v1/customers","href":"/api-reference/clientes/criar"},{"title":"Listar Clientes","api":"GET /api/v1/customers","href":"/api-reference/clientes/listar"},{"title":"Consultar Cliente","api":"GET /api/v1/customers/{uuid}","href":"/api-reference/clientes/detalhes"},{"title":"Atualizar Cliente","api":"PATCH /api/v1/customers/{uuid}","href":"/api-reference/clientes/atualizar"},{"title":"Definir E-mail de Cobrança","api":"PATCH /api/v1/customers/{uuid}/billing-email-override","href":"/api-reference/clientes/definir-email-cobranca"},{"title":"Remover Cliente","api":"DELETE /api/v1/customers/{uuid}","href":"/api-reference/clientes/excluir"}]},{"group":"Transações","pages":[{"title":"Listar Transações","api":"GET /api/transactions","href":"/api-reference/transacoes/listar"},{"title":"Detalhes da Transação","api":"GET /api/transactions/{id}","href":"/api-reference/transacoes/detalhes"},{"title":"Consultar Status","api":"GET /api/transactions/status/{galaxPayId}","href":"/api-reference/transacoes/status"},{"title":"Reembolsar Transação","api":"POST /api/transactions/{id}/refund","href":"/api-reference/transacoes/reembolsar"},{"title":"Cancelar Transação","api":"DELETE /api/transactions/{id}","href":"/api-reference/transacoes/cancelar"}]},{"group":"Preços de Assinatura","pages":[{"title":"Criar Preço de Assinatura","api":"POST /api/subscription-prices","href":"/api-reference/assinaturas/precos/criar"},{"title":"Listar Preços de Assinatura","api":"GET /api/subscription-prices","href":"/api-reference/assinaturas/precos/listar"},{"title":"Detalhes do Preço","api":"GET /api/subscription-prices/{id}","href":"/api-reference/assinaturas/precos/detalhes"},{"title":"Atualizar Preço de Assinatura","api":"PATCH /api/subscription-prices/{id}","href":"/api-reference/assinaturas/precos/atualizar"},{"title":"Excluir Preço de Assinatura","api":"DELETE /api/subscription-prices/{id}","href":"/api-reference/assinaturas/precos/excluir"}]},{"group":"Assinaturas","pages":[{"title":"Listar Assinaturas","api":"GET /api/subscriptions","href":"/api-reference/assinaturas/listar"},{"title":"Detalhes da Assinatura","api":"GET /api/subscriptions/{id}","href":"/api-reference/assinaturas/detalhes"},{"title":"Cancelar Assinatura","api":"POST /api/subscriptions/{id}/cancel","href":"/api-reference/assinaturas/cancelar"},{"title":"Pausar Assinatura","api":"POST /api/subscriptions/{id}/pause","href":"/api-reference/assinaturas/pausar"},{"title":"Retomar Assinatura","api":"POST /api/subscriptions/{id}/resume","href":"/api-reference/assinaturas/retomar"},{"title":"Eventos da Assinatura","api":"GET /api/subscriptions/{id}/events","href":"/api-reference/assinaturas/eventos"},{"title":"Portal do Cliente","api":"POST /api/portal/sessions","href":"/api-reference/assinaturas/portal"}]},{"group":"Cobranças Agendadas","pages":[{"title":"Criar Cobrança Agendada","api":"POST /api/v1/scheduled-charges","href":"/api-reference/cobrancas-agendadas/criar"},{"title":"Listar Cobranças Agendadas","api":"GET /api/v1/scheduled-charges","href":"/api-reference/cobrancas-agendadas/listar"},{"title":"Detalhes da Cobrança Agendada","api":"GET /api/v1/scheduled-charges/{id}","href":"/api-reference/cobrancas-agendadas/detalhes"},{"title":"Cobrar Agora","api":"POST /api/v1/scheduled-charges/{id}/charge-now","href":"/api-reference/cobrancas-agendadas/cobrar-agora"},{"title":"Adiar Cobrança","api":"POST /api/v1/scheduled-charges/{id}/postpone","href":"/api-reference/cobrancas-agendadas/adiar"},{"title":"Pausar Cobrança","api":"POST /api/v1/scheduled-charges/{id}/pause","href":"/api-reference/cobrancas-agendadas/pausar"},{"title":"Retomar Cobrança","api":"POST /api/v1/scheduled-charges/{id}/resume","href":"/api-reference/cobrancas-agendadas/retomar"},{"title":"Marcar como Paga","description":"Registre um pagamento feito fora do Garu (transferência, dinheiro, etc.)","api":"POST /api/v1/scheduled-charges/{id}/mark-paid","href":"/api-reference/cobrancas-agendadas/marcar-como-paga"},{"title":"Listar tentativas de cobrança","api":"GET /api/v1/scheduled-charges/{id}/attempts","href":"/api-reference/cobrancas-agendadas/tentativas"}]},{"group":"Boleto Parcelado (Carnê)","pages":[{"title":"Criar Carnê","description":"Venda um produto em até 12 boletos mensais","api":"POST /api/v1/installment-plans","href":"/api-reference/carne/criar"},{"title":"Listar Carnês","api":"GET /api/v1/installment-plans","href":"/api-reference/carne/listar"},{"title":"Detalhes do Carnê","api":"GET /api/v1/installment-plans/{uuid}","href":"/api-reference/carne/detalhes"},{"title":"Segunda Via de Parcela","api":"POST /api/v1/installment-plans/{uuid}/installments/{number}/reissue","href":"/api-reference/carne/segunda-via"},{"title":"Adiar Parcela","api":"POST /api/v1/installment-plans/{uuid}/installments/{number}/postpone","href":"/api-reference/carne/adiar"},{"title":"Marcar Parcela como Paga","api":"POST /api/v1/installment-plans/{uuid}/installments/{number}/mark-paid","href":"/api-reference/carne/marcar-como-paga"},{"title":"Cancelar Carnê","api":"POST /api/v1/installment-plans/{uuid}/cancel","href":"/api-reference/carne/cancelar"},{"title":"Solicitar Estorno de Carnê","api":"POST /api/v1/installment-plans/{uuid}/refund-requests","href":"/api-reference/carne/solicitar-estorno"}]},{"group":"Pedidos de Estorno","pages":[{"title":"Listar Pedidos de Estorno","api":"GET /api/v1/refund-requests","href":"/api-reference/estornos/listar"},{"title":"Detalhes do Pedido de Estorno","api":"GET /api/v1/refund-requests/{uuid}","href":"/api-reference/estornos/detalhes"},{"title":"Confirmar Estorno","api":"POST /api/v1/refund-requests/{uuid}/confirm","href":"/api-reference/estornos/confirmar"},{"title":"Rejeitar Estorno","api":"POST /api/v1/refund-requests/{uuid}/reject","href":"/api-reference/estornos/rejeitar"}]},{"group":"Portal do Cliente","pages":[{"title":"Solicitar Link Mágico","api":"POST /api/public/minha-area/request","href":"/api-reference/portal-do-cliente/solicitar-link"},{"title":"Listar Cobranças do Cliente","api":"GET /api/public/minha-area/charges","href":"/api-reference/portal-do-cliente/listar-cobrancas"},{"title":"Atualizar E-mail de Cobrança","api":"PATCH /api/public/minha-area/profile","href":"/api-reference/portal-do-cliente/atualizar-email"}]},{"group":"Configuração da Conta","pages":[{"title":"Consultar Taxas Negociadas","api":"GET /api/seller-config/me","href":"/api-reference/seller-config/taxas"}]},{"group":"Webhooks e Exemplos","pages":[{"title":"Webhooks","href":"/api-reference/webhooks"},{"title":"Códigos de falha","href":"/api-reference/webhooks/codigos-de-falha"},{"title":"Disparar webhook manualmente","api":"POST /api/webhook-endpoints/{id}/trigger","href":"/api-reference/webhooks/disparar-manualmente"},{"title":"Listar Eventos de Webhook","api":"GET /api/v1/webhook-events","href":"/api-reference/webhooks/eventos/listar"},{"title":"Detalhes do Evento de Webhook","api":"GET /api/v1/webhook-events/{uuid}","href":"/api-reference/webhooks/eventos/detalhes"},{"title":"Reenviar (clonando) Evento de Webhook","api":"POST /api/v1/webhook-events/{uuid}/resend","href":"/api-reference/webhooks/eventos/resend"},{"title":"Reenviar Evento de Webhook","api":"POST /api/v1/webhook-events/{uuid}/retry","href":"/api-reference/webhooks/eventos/reenviar"},{"title":"Exemplos de Código","href":"/api-reference/exemplos"}]},{"group":"Suporte","pages":[{"title":"Solução de Problemas","href":"/api-reference/troubleshooting"}]}]}]},"basePath":"","title":"Listar tentativas de cobrança - Garu","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js"]}