O secret nunca é retornado pela API — você define o valor que quiser (mínimo 8 caracteres). Armazene-o em um cofre seguro e use-o para verificar a assinatura dos webhooks recebidos. Para rotacionar, basta enviar um novo webhookSecret na mesma requisição.
Em caso de falha (status ≠ 2xx ou timeout), a plataforma retenta com backoff exponencial por até 24 h. Após isso, o evento é marcado como falho e não será entregue novamente.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Astron Pay","colors":{"primary":"#AE0900","light":"#D1251C","dark":"#7A0600"},"favicon":"https://mintcdn.com/astronpay/UUbKvlzDU35kAyYt/logo/astronpay.png?fit=max\u0026auto=format\u0026n=UUbKvlzDU35kAyYt\u0026q=85\u0026s=0a6bc0ae72b019a54fae289e6122df26","logo":{"light":"https://mintcdn.com/astronpay/UUbKvlzDU35kAyYt/logo/astronpay.png?fit=max\u0026auto=format\u0026n=UUbKvlzDU35kAyYt\u0026q=85\u0026s=0a6bc0ae72b019a54fae289e6122df26","dark":"https://mintcdn.com/astronpay/UUbKvlzDU35kAyYt/logo/astronpay.png?fit=max\u0026auto=format\u0026n=UUbKvlzDU35kAyYt\u0026q=85\u0026s=0a6bc0ae72b019a54fae289e6122df26"},"api":{"openapi":["cripto/openapi.json","gateway/openapi.json"]},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://web.astronpay.co"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/astronpay"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Status","href":"https://status.astronpay.co","icon":"signal-bars"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"astronpay","hasAudioNarration":false,"actualSubdomain":"astronpay","customDomains":["docs.astronpay.co"],"gitSource":{"type":"github","owner":"beginssoftwares","repo":"3xchange2.0","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad7e2bbaf742268de255a78","collectionId":"0d8815c6-4420-4487-ae7c-ede39576e4fb","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad7e2bbaf742268de255a78"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad7e2bbaf742268de255a78","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"PIX ↔ Cripto","count":46},{"language":"default","tag":"Gateway PIX","count":33},{"language":"default","tag":"Receivers","count":8},{"language":"default","tag":"Transações","count":8},{"language":"default","tag":"Introdução","count":7},{"language":"default","tag":"Banking as a Service (BaaS)","count":7},{"language":"default","tag":"Guias","count":6},{"language":"default","tag":"Conceitos","count":5},{"language":"default","tag":"Sub-accounts API","count":5},{"language":"default","tag":"Webhooks","count":5}]},"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":"cripto/guides/webhook-setup","slug":"/cripto/guides/webhook-setup","pageMetadata":{"title":"Configurando webhooks","description":"Como configurar URL e secret de webhook.","href":"/cripto/guides/webhook-setup"},"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: \"Como configurar URL e secret de webhook.\"\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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Webhooks notificam seu backend quando ordens mudam de estado. Você configura a URL de destino e um secret para validação da assinatura.`}),`\n`,_jsx(Heading,{level:`2`,id:`configuração-inicial`,children:`Configuração inicial`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,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:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.astronpay.co/api/v1/webhook/config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-secret: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_SECRET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"webhookUrl\": \"https://meuapp.com/webhooks/astronpay\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"webhookSecret\": \"meu-secret-min-8-chars\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Resposta:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,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:` \"webhookUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://meuapp.com/webhooks/astronpay\"`}),_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:` \"webhookSecretConfigured\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`O secret `,_jsx(_components.strong,{children:`nunca é retornado pela API`}),` — você define o valor que quiser (mínimo 8 caracteres). Armazene-o em um cofre seguro e use-o para verificar a assinatura dos webhooks recebidos. Para rotacionar, basta enviar um novo `,_jsx(_components.code,{children:`webhookSecret`}),` na mesma requisição.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`atualizar-apenas-a-url`,children:`Atualizar apenas a URL`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.astronpay.co/api/v1/webhook/config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-secret: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_SECRET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"webhookUrl\": \"https://meuapp.com/nova-url\" }'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`rotacionar-o-secret`,children:`Rotacionar o secret`}),`\n`,_jsxs(_components.p,{children:[`Para rotacionar sem mudar a URL, envie apenas `,_jsx(_components.code,{children:`webhookSecret`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.astronpay.co/api/v1/webhook/config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-secret: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_SECRET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"webhookSecret\": \"novo-secret-min-8-chars\" }'`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`O secret anterior é invalidado imediatamente após essa chamada.`}),`\n`,_jsx(Heading,{level:`2`,id:`requisitos-da-url`,children:`Requisitos da URL`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`HTTPS obrigatório em produção.`}),`\n`,_jsxs(_components.li,{children:[`Precisa responder `,_jsx(_components.strong,{children:`200`}),` dentro de 10 s. Respostas 4xx/5xx provocam retentativas.`]}),`\n`,_jsx(_components.li,{children:`Deve ser idempotente: retentativas podem entregar o mesmo evento mais de uma vez.`}),`\n`,_jsx(_components.li,{children:`IPs privados e localhost são bloqueados.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`retry`,children:`Retry`}),`\n`,_jsx(_components.p,{children:`Em caso de falha (status ≠ 2xx ou timeout), a plataforma retenta com backoff exponencial por até 24 h. Após isso, o evento é marcado como falho e não será entregue novamente.`}),`\n`,_jsx(Heading,{level:`2`,id:`consultando-o-status`,children:`Consultando o status`}),`\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.astronpay.co/api/v1/webhook/config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-secret: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_SECRET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Retorna URL atual e `,_jsx(_components.code,{children:`webhookSecretConfigured: true|false`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`removendo-a-configuração`,children:`Removendo a configuração`}),`\n`,_jsxs(_components.p,{children:[`Passe `,_jsx(_components.code,{children:`null`}),` para limpar URL ou secret:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,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:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.astronpay.co/api/v1/webhook/config`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-secret: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$API_SECRET`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{ \"webhookUrl\": null }'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`logs-de-entrega`,children:`Logs de entrega`}),`\n`,_jsxs(_components.p,{children:[`O dashboard (`,_jsx(_components.code,{children:`web.astronpay.co`}),`) mostra o histórico de envios, latência e status. Use-o para depurar falhas.`]}),`\n`,_jsx(Heading,{level:`2`,id:`próximos-passos`,children:`Próximos passos`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/cripto/webhooks/events`,children:`Eventos emitidos`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/cripto/webhooks/validation`,children:`Validação de assinatura`})}),`\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":"Configurando webhooks","description":"Como configurar URL e secret de webhook.","href":"/cripto/guides/webhook-setup"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Configuração inicial","slug":"configuração-inicial","depth":2,"children":[]},{"title":"Atualizar apenas a URL","slug":"atualizar-apenas-a-url","depth":2,"children":[]},{"title":"Rotacionar o secret","slug":"rotacionar-o-secret","depth":2,"children":[]},{"title":"Requisitos da URL","slug":"requisitos-da-url","depth":2,"children":[]},{"title":"Retry","slug":"retry","depth":2,"children":[]},{"title":"Consultando o status","slug":"consultando-o-status","depth":2,"children":[]},{"title":"Removendo a configuração","slug":"removendo-a-configuração","depth":2,"children":[]},{"title":"Logs de entrega","slug":"logs-de-entrega","depth":2,"children":[]},{"title":"Próximos passos","slug":"próximos-passos","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"astronpay","siteName":"Astron Pay","title":"Configurando webhooks - Astron Pay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-30T17:43:04.895Z","originalFileLocation":"cripto/guides/webhook-setup.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=\"Como configurar URL e secret de webhook.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Astron Pay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/astronpay/jn7N72HOsC2MZGCC/_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/astronpay/jn7N72HOsC2MZGCC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/astronpay/jn7N72HOsC2MZGCC/_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/astronpay/jn7N72HOsC2MZGCC/_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/astronpay/jn7N72HOsC2MZGCC/_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/astronpay/jn7N72HOsC2MZGCC/_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/astronpay/jn7N72HOsC2MZGCC/_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/astronpay/jn7N72HOsC2MZGCC/_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/astronpay/jn7N72HOsC2MZGCC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Configurando webhooks - Astron Pay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Como configurar URL e secret de webhook.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Astron Pay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.astronpay.co/cripto/guides/webhook-setup\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://astronpay.mintlify.app/_mintlify/api/og/v2?division=Guias\u0026amp;title=Configurando+webhooks\u0026amp;description=Como+configurar+URL+e+secret+de+webhook.\u0026amp;theme=56405a1875fffb17dea0e909\u0026amp;signature=60e944de8e2bba908aeb7e930252eb5cc7e22cbfeccd0fffe095dd657f32c592\">\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=\"Configurando webhooks - Astron Pay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Como configurar URL e secret de webhook.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://astronpay.mintlify.app/_mintlify/api/og/v2?division=Guias\u0026amp;title=Configurando+webhooks\u0026amp;description=Como+configurar+URL+e+secret+de+webhook.\u0026amp;theme=56405a1875fffb17dea0e909\u0026amp;signature=60e944de8e2bba908aeb7e930252eb5cc7e22cbfeccd0fffe095dd657f32c592\">\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/astronpay/jn7N72HOsC2MZGCC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Astron Pay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#AE0900\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.astronpay.co/cripto/guides/webhook-setup\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cripto/guides/webhook-setup.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.astronpay.co/#organization\",\"name\":\"Astron Pay\",\"url\":\"https://docs.astronpay.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/astronpay/UUbKvlzDU35kAyYt/logo/astronpay.png?fit=max\u0026auto=format\u0026n=UUbKvlzDU35kAyYt\u0026q=85\u0026s=0a6bc0ae72b019a54fae289e6122df26\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.astronpay.co#website\",\"name\":\"Astron Pay\",\"url\":\"https://docs.astronpay.co\",\"publisher\":{\"@id\":\"https://docs.astronpay.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.astronpay.co/cripto/guides/webhook-setup#webpage\",\"url\":\"https://docs.astronpay.co/cripto/guides/webhook-setup\",\"name\":\"Configurando webhooks\",\"description\":\"Como configurar URL e secret de webhook.\",\"dateModified\":\"2026-07-30T17:43:04.895Z\",\"isPartOf\":{\"@id\":\"https://docs.astronpay.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.astronpay.co/cripto/guides/webhook-setup#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.astronpay.co/cripto/guides/webhook-setup#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guias\",\"item\":\"https://docs.astronpay.co/cripto/guides/receiver-onboarding\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configurando webhooks\",\"item\":\"https://docs.astronpay.co/cripto/guides/webhook-setup\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.astronpay.co/cripto/guides/webhook-setup#article\",\"headline\":\"Configurando webhooks\",\"name\":\"Configurando webhooks\",\"description\":\"Como configurar URL e secret de webhook.\",\"url\":\"https://docs.astronpay.co/cripto/guides/webhook-setup\",\"mainEntityOfPage\":{\"@id\":\"https://docs.astronpay.co/cripto/guides/webhook-setup#webpage\"},\"dateModified\":\"2026-07-30T17:43:04.895Z\",\"publisher\":{\"@id\":\"https://docs.astronpay.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.astronpay.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Astron Pay\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Astron Pay","nav":{"global":{"anchors":[{"anchor":"Status","href":"https://status.astronpay.co","icon":"signal-bars"}]},"tabs":[{"tab":"Gateway PIX","pages":[{"title":"Gateway PIX","href":"/gateway/introduction"}]},{"tab":"PIX ↔ Cripto","groups":[{"group":"Introdução","pages":[{"title":"Introdução","href":"/cripto/introduction"},{"title":"Autenticação","href":"/cripto/authentication"},{"title":"Quickstart","href":"/cripto/quickstart"},{"title":"Erros","href":"/cripto/errors"}]},{"group":"Conceitos","pages":[{"title":"Merchants e Receivers","href":"/cripto/concepts/merchants-receivers"},{"title":"Ciclo de vida das ordens","href":"/cripto/concepts/orders-lifecycle"},{"title":"Taxas","href":"/cripto/concepts/fees"},{"title":"Ledger e liquidações","href":"/cripto/concepts/ledger-settlements"},{"title":"Assinatura de transações","href":"/cripto/concepts/wallet-signing"}]},{"group":"Guias","pages":[{"title":"Onboarding de receiver","href":"/cripto/guides/receiver-onboarding"},{"title":"Fluxo Payin (BRL → Crypto)","href":"/cripto/guides/payin-flow"},{"title":"Fluxo Payout (Crypto → BRL)","href":"/cripto/guides/payout-flow"},{"title":"Depósito de payout assinado pela Astron Pay","description":"Use POST /payout/build-transfer-tx + POST /merchant/wallet/sign-and-send-transaction para depositar USDC em payouts sem montar transações Solana no seu lado e sem ter SOL para gas.","href":"/cripto/guides/payout-deposit-tx"},{"title":"Configurando webhooks","href":"/cripto/guides/webhook-setup"},{"title":"Consultando saldos","description":"Como consultar saldos, entries, taxas e liquidações.","href":"/cripto/guides/ledger-queries"}]},{"group":"Webhooks recebidos","pages":[{"title":"Webhooks — visão geral","href":"/cripto/webhooks/overview"},{"title":"Eventos","href":"/cripto/webhooks/events"},{"title":"Validação de assinatura","href":"/cripto/webhooks/validation"}]},{"group":"Fee Tiers","pages":[{"title":"Lista fee tiers","openapi":"cripto/openapi.json GET /fee-tiers","href":"/cripto/api-reference/fee-tiers/get-fee-tiers"},{"title":"Atualiza fee tiers","openapi":"cripto/openapi.json PUT /fee-tiers/{orderType}","href":"/cripto/api-reference/fee-tiers/put-fee-tiers"}]},{"group":"Receivers","pages":[{"title":"Cria receiver","openapi":"cripto/openapi.json POST /receivers","href":"/cripto/api-reference/receivers/create"},{"title":"Lista receivers","openapi":"cripto/openapi.json GET /receivers","href":"/cripto/api-reference/receivers/list"},{"title":"Busca receiver","openapi":"cripto/openapi.json GET /receivers/{id}","href":"/cripto/api-reference/receivers/get"},{"title":"Atualiza receiver","openapi":"cripto/openapi.json PATCH /receivers/{id}","href":"/cripto/api-reference/receivers/update"},{"title":"Limites do receiver","openapi":"cripto/openapi.json GET /receivers/{id}/limits","href":"/cripto/api-reference/receivers/limits"},{"title":"Submete KYC","openapi":"cripto/openapi.json POST /receivers/{id}/kyc/submit","href":"/cripto/api-reference/receivers/kyc-submit"},{"title":"Assina transação","openapi":"cripto/openapi.json POST /receivers/{receiverId}/wallet/sign-transaction","href":"/cripto/api-reference/receivers/wallet-sign"},{"title":"Assina e transmite","openapi":"cripto/openapi.json POST /receivers/{receiverId}/wallet/sign-and-send-transaction","href":"/cripto/api-reference/receivers/wallet-sign-and-send"}]},{"group":"Quote","pages":[{"title":"Cotação payin","openapi":"cripto/openapi.json POST /quote/payin","href":"/cripto/api-reference/quote/payin"},{"title":"Cotação payout","openapi":"cripto/openapi.json POST /quote/payout","href":"/cripto/api-reference/quote/payout"}]},{"group":"Payin","pages":[{"title":"Cria ordem de payin","openapi":"cripto/openapi.json POST /payin","href":"/cripto/api-reference/payin/create"},{"title":"Busca ordem de payin","openapi":"cripto/openapi.json GET /payin/{id}","href":"/cripto/api-reference/payin/get"}]},{"group":"Payout","pages":[{"title":"Cria ordem de payout","openapi":"cripto/openapi.json POST /payout","href":"/cripto/api-reference/payout/create"},{"title":"Busca ordem de payout","openapi":"cripto/openapi.json GET /payout/{id}","href":"/cripto/api-reference/payout/get"}]},{"group":"Orders","pages":[{"title":"Lista ordens","openapi":"cripto/openapi.json GET /orders","href":"/cripto/api-reference/orders/list"},{"title":"Cotação rápida","openapi":"cripto/openapi.json GET /orders/quote","href":"/cripto/api-reference/orders/quote"},{"title":"Busca ordem","openapi":"cripto/openapi.json GET /orders/{id}","href":"/cripto/api-reference/orders/get"}]},{"group":"Merchant Wallet","pages":[{"title":"Assina transação (merchant)","openapi":"cripto/openapi.json POST /merchant/wallet/sign-transaction","href":"/cripto/api-reference/merchant-wallet/sign"},{"title":"Assina e transmite (merchant)","openapi":"cripto/openapi.json POST /merchant/wallet/sign-and-send-transaction","href":"/cripto/api-reference/merchant-wallet/sign-and-send"}]},{"group":"Ledger","pages":[{"title":"Saldo do receiver","openapi":"cripto/openapi.json GET /ledger/receivers/{id}/balance","href":"/cripto/api-reference/ledger/receiver-balance"},{"title":"Entries do receiver","openapi":"cripto/openapi.json GET /ledger/receivers/{id}/entries","href":"/cripto/api-reference/ledger/receiver-entries"},{"title":"Saldo de taxas","openapi":"cripto/openapi.json GET /ledger/fees/balance","href":"/cripto/api-reference/ledger/fees-balance"},{"title":"Liquidações","openapi":"cripto/openapi.json GET /ledger/settlements","href":"/cripto/api-reference/ledger/settlements"}]},{"group":"Webhook Config","pages":[{"title":"Config de webhook","openapi":"cripto/openapi.json GET /webhook/config","href":"/cripto/api-reference/webhook-config/get"},{"title":"Atualiza config","openapi":"cripto/openapi.json PATCH /webhook/config","href":"/cripto/api-reference/webhook-config/update"},{"title":"Eventos disponíveis","openapi":"cripto/openapi.json GET /webhook/events","href":"/cripto/api-reference/webhook-config/events"}]}]}]},"title":"Configurando webhooks - Astron Pay","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":[],"chunks":[]}