Verify a payment callback against the authenticated API.
Read data.invoice_id from the webhook envelope and retrieve the authoritative
invoice. This is the recommended verification flow for both intermediate and
final statuses. Webhook signature verification is optional defense in depth and
does not replace the API lookup.
try { const webhook = request.body; const invoice = await api.getInvoiceFromWebhook(webhook); // Deduplicate deliveries using webhook.webhook_id. // Update intermediate state when useful. // Fulfill invoice.order_no exactly once only when status is completed. return response.status(200).send('OK');} catch (error) { // A non-200 response causes Billions to retry the webhook. return response.status(500).send('Could not retrieve invoice');}
try: invoice = api.get_invoice_from_webhook(webhook) # Deduplicate deliveries using webhook["webhook_id"]. # Update intermediate state when useful. # Fulfill invoice["order_no"] exactly once only when status is completed.except Exception: # Return a non-200 response so Billions retries the webhook. raise
<?phptry { $webhook = json_decode(file_get_contents('php://input'), true, 512, JSON_THROW_ON_ERROR); $invoice = $api->getInvoiceFromWebhook($webhook); // Deduplicate deliveries using $webhook['webhook_id']. // Update intermediate state when useful. // Fulfill $invoice['order_no'] exactly once only when status is completed.} catch (Throwable $exception) { // Return a non-200 response so Billions retries the webhook.}
To authenticate the callback before this lookup, verify
X-Billions-Signature as described in
Callbacks and security.
The official SDKs now provide verifyWebhookSignature() in TypeScript and
PHP, and verify_webhook_signature() in Python.
Add callback schema validation, order matching, and transactional idempotency
before using these illustrative handlers in production. A callback status is
informational until confirmed by the authenticated API.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Billions","description":"Integrate Billions payments into your application, store, or billing platform.","colors":{"primary":"#FC4C07","light":"#FC4C07","dark":"#FF7138"},"logo":{"light":"https://mintcdn.com/billions/GmnorJJmmpzZPFoc/logo/logo-black.svg?fit=max\u0026auto=format\u0026n=GmnorJJmmpzZPFoc\u0026q=85\u0026s=e47ff33b3137a04e2ae4b8773ec5e5af","dark":"https://mintcdn.com/billions/GmnorJJmmpzZPFoc/logo/logo-white.svg?fit=max\u0026auto=format\u0026n=GmnorJJmmpzZPFoc\u0026q=85\u0026s=81016c8b19a97e7ddecb5ae8a5681578","href":"https://billions.works"},"api":{"playground":{"display":"simple"}},"appearance":{"default":"system","strict":false},"background":{"color":{"light":"#FFFFFF","dark":"#111110"}},"navbar":{"links":[{"href":"https://app.billions.works","label":"Dashboard"}]},"footer":{"socials":{"github":"https://github.com/billions-works"}},"seo":{"metatags":{"og:image":"https://billions.works/images/og/og-image.png","twitter:image":"https://billions.works/images/og/og-image.png","twitter:card":"summary_large_image"},"indexing":"all"},"fonts":{"family":"Instrument Sans"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":{"light":"github-dark","dark":"github-dark"}},"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"billions","hasAudioNarration":false,"actualSubdomain":"billions","customDomains":["docs.billions.works"],"gitSource":{"type":"github","owner":"billions-works","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b00203dde75caffbb015865","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Developer","count":25},{"language":"default","tag":"Integration guide","count":6},{"language":"default","tag":"Public API","count":5},{"language":"default","tag":"Platform integrations","count":5},{"language":"default","tag":"SDKs","count":4},{"language":"default","tag":"Examples","count":3},{"language":"default","tag":"Legal","count":2},{"language":"default","tag":"Overview","count":1},{"language":"default","tag":"Introduction","count":1},{"language":"default","tag":"Testing","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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":true},"customCss":[{"filePath":"style.css","content":":root{--billions-accent: #fc4c07;--billions-accent-hover: #e24406;--billions-accent-soft: #f6e4dd;--billions-background: #ffffff;--billions-surface: #fafafa;--billions-surface-raised: #ffffff;--billions-border: #ededed;--billions-heading: #000000;--billions-text: #555555;--billions-muted: #737373;--billions-code: #222221;--billions-shadow: 0 10px 30px rgb(0 0 0 / 4%)}html.dark{--billions-accent: #ff7138;--billions-accent-hover: #ff8657;--billions-accent-soft: rgb(252 76 7 / 16%);--billions-background: #111110;--billions-surface: #181817;--billions-surface-raised: #1e1e1c;--billions-border: #30302d;--billions-heading: #ffffff;--billions-text: #c8c8c8;--billions-muted: #92928d;--billions-code: #222221;--billions-shadow: 0 12px 36px rgb(0 0 0 / 24%)}html,body,#body-content{background-color:var(--billions-background)}body{color:var(--billions-text);font-variation-settings:\"wdth\" 100;text-rendering:optimizeLegibility}#navbar{min-height:76px;border-bottom-color:var(--billions-border);background-color:color-mix(in srgb, var(--billions-background) 92%, transparent);backdrop-filter:blur(16px)}#sidebar-content{scrollbar-color:var(--billions-border) transparent}#sidebar-content li[data-active]{color:var(--billions-accent);background:var(--billions-accent-soft);border-radius:10px}toc-item[data-active],toc-item[data-active-deepest]{color:var(--billions-accent)}[data-component-name=\"theme-toggle\"],#topbar-cta-button{border-color:var(--billions-border);border-radius:16px}#topbar-cta-button{box-shadow:none}#content-area{padding-top:48px}#content{max-width:712px}#page-title{color:var(--billions-heading);font-size:clamp(2.5rem, 4vw, 3rem);font-weight:500;line-height:1.04;letter-spacing:-0.035em}#content h2{color:var(--billions-heading);font-size:2rem;font-weight:500;line-height:1.125;letter-spacing:-0.025em}#content h3,#content h4{color:var(--billions-heading);font-weight:550;letter-spacing:-0.015em}#content p,#content li{line-height:1.625}#content a:not([class]){text-decoration-color:color-mix(in srgb, var(--billions-accent) 38%, transparent);text-underline-offset:3px}html[data-current-path$=\"/integration/unified-merchant-api\"] #content [data-as=\"p\"]:has(>em:only-child){color:var(--billions-muted);font-size:0.75rem}card,.card{border-color:var(--billions-border)!important;border-radius:24px!important;background:var(--billions-surface)!important;box-shadow:none!important;transition:border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease}card:hover,.card:hover{border-color:color-mix(in srgb, var(--billions-accent) 38%, var(--billions-border))!important;box-shadow:var(--billions-shadow)!important;transform:translateY(-1px)}callout,.callout{border-radius:16px!important;border-width:1px!important;border-style:solid!important}.callout[data-callout-type=\"note\"]{border-color:#bfd4ff!important}.callout[data-callout-type=\"tip\"]{border-color:#9edfc4!important}.callout[data-callout-type=\"info\"]{border-color:#d4d4d4!important}.callout[data-callout-type=\"warning\"]{border-color:#f3c985!important}.callout[data-callout-type=\"danger\"]{border-color:#f4aaa6!important}html.dark .callout[data-callout-type=\"note\"]{border-color:#315ca8!important}html.dark .callout[data-callout-type=\"tip\"]{border-color:#277253!important}html.dark .callout[data-callout-type=\"info\"]{border-color:#575757!important}html.dark .callout[data-callout-type=\"warning\"]{border-color:#8c5c17!important}html.dark .callout[data-callout-type=\"danger\"]{border-color:#963e39!important}steps,.steps{--tw-prose-counters: var(--billions-accent)}.step [data-component-part=\"step-line\"]{display:none}.step [data-component-part=\"step-number\"]{color:inherit;background:transparent;border:0;border-radius:0}.step [data-component-part=\"step-number\"]>div{width:28px;height:28px;color:var(--billions-accent);background:var(--billions-accent-soft);border:0;border-radius:9999px}code-block,code-group,.code-block,.code-group{overflow:hidden;border-color:color-mix(in srgb, var(--billions-code) 82%, white)!important;border-radius:12px!important;background:var(--billions-code)!important}#content .code-block [data-component-part=\"code-block-root\"],#content .code-group [data-component-part=\"code-block-root\"],.code-block pre.shiki,.code-group pre.shiki{color:var(--shiki-dark, #d4d4d4)!important;background-color:var(--billions-code)!important}.code-block pre.shiki span,.code-group pre.shiki span{color:var(--shiki-dark, inherit)!important}.code-block [data-fade-overlay],.code-group [data-fade-overlay]{--fade-color-light: var(--billions-code) !important;--fade-color-dark: var(--billions-code) !important}.code-block [data-floating-buttons] button,.code-group [data-floating-buttons] button{color:#a3a3a3;background:var(--billions-code)!important}.code-block [data-floating-buttons] button:hover,.code-group [data-floating-buttons] button:hover{color:#ffffff}.code-block [data-floating-buttons] button svg,.code-group [data-floating-buttons] button svg{color:inherit!important}#content :not(pre)>code{color:var(--billions-heading);background:var(--billions-surface);border:1px solid var(--billions-border);border-radius:7px}#content table{overflow:hidden;border:1px solid var(--billions-border);border-radius:16px;border-collapse:separate;border-spacing:0}#content thead{color:var(--billions-heading);background:var(--billions-surface)}#content th,#content td{border-color:var(--billions-border)}#content th{padding-top:8px}#content th:first-child,#content td:first-child{padding-left:16px}#content th:last-child,#content td:last-child{padding-right:16px}::selection{color:var(--billions-heading);background:var(--billions-accent-soft)}@media (max-width: 1023px){#content-area{padding-top:36px}}@media (max-width: 767px){#navbar{min-height:64px}#content-area{padding-top:28px}#page-title{font-size:2.25rem;line-height:1.08}#content h2{font-size:1.75rem}card,.card{border-radius:20px!important}}@media (prefers-reduced-motion: reduce){card,.card{transition:none}}"}]}
{"page":{"pagePath":"examples/handle-a-callback","slug":"/examples/handle-a-callback","pageMetadata":{"title":"Handle a callback","description":"Verify a payment callback against the authenticated API.","icon":"webhook","href":"/examples/handle-a-callback"},"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: \"Verify a payment callback against the authenticated API.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Read `,_jsx(_components.code,{children:`data.invoice_id`}),` from the webhook envelope and retrieve the authoritative\ninvoice. This is the recommended verification flow for both intermediate and\nfinal statuses. Webhook signature verification is optional defense in depth and\ndoes not replace the API lookup.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`12`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-dark github-dark`,style:{backgroundColor:`#24292e`,\"--shiki-dark-bg\":`#24292e`,color:`#e1e4e8`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`try`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` const`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` webhook`}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` request.body;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` const`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` invoice`}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` =`}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` await`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` api.`}),_jsx(_components.span,{style:{color:`#B392F0`,\"--shiki-dark\":`#B392F0`},children:`getInvoiceFromWebhook`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`(webhook);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Deduplicate deliveries using webhook.webhook_id.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Update intermediate state when useful.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Fulfill invoice.order_no exactly once only when status is completed.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` return`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` response.`}),_jsx(_components.span,{style:{color:`#B392F0`,\"--shiki-dark\":`#B392F0`},children:`status`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:`200`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`).`}),_jsx(_components.span,{style:{color:`#B392F0`,\"--shiki-dark\":`#B392F0`},children:`send`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'OK'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`} `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`catch`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` (error) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // A non-200 response causes Billions to retry the webhook.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` return`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` response.`}),_jsx(_components.span,{style:{color:`#B392F0`,\"--shiki-dark\":`#B392F0`},children:`status`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:`500`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`).`}),_jsx(_components.span,{style:{color:`#B392F0`,\"--shiki-dark\":`#B392F0`},children:`send`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'Could not retrieve invoice'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`9`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-dark github-dark`,style:{backgroundColor:`#24292e`,\"--shiki-dark-bg\":`#24292e`,color:`#e1e4e8`,\"--shiki-dark\":`#e1e4e8`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`try`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` invoice `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` api.get_invoice_from_webhook(webhook)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` # Deduplicate deliveries using webhook[\"webhook_id\"].`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` # Update intermediate state when useful.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` # Fulfill invoice[\"order_no\"] exactly once only when status is completed.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`except`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` Exception`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` # Return a non-200 response so Billions retries the webhook.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` raise`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`PHP`,numberOfLines:`12`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-dark github-dark`,style:{backgroundColor:`#24292e`,\"--shiki-dark-bg\":`#24292e`,color:`#e1e4e8`,\"--shiki-dark\":`#e1e4e8`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`\u003c?`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:`php`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`try`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` $webhook `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` json_decode`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:`file_get_contents`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`(`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'php://input'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`), `}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:`true`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:`512`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`, `}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:`JSON_THROW_ON_ERROR`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` $invoice `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`=`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` $api`}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`->`}),_jsx(_components.span,{style:{color:`#B392F0`,\"--shiki-dark\":`#B392F0`},children:`getInvoiceFromWebhook`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`($webhook);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Deduplicate deliveries using $webhook['webhook_id'].`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Update intermediate state when useful.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Fulfill $invoice['order_no'] exactly once only when status is completed.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`} `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`catch`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` (`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:`Throwable`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` $exception) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Return a non-200 response so Billions retries the webhook.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-dark github-dark`,style:{backgroundColor:`#24292e`,\"--shiki-dark-bg\":`#24292e`,color:`#e1e4e8`,\"--shiki-dark\":`#e1e4e8`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#B392F0`,\"--shiki-dark\":`#B392F0`},children:`curl`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` --request`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:` GET`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` --url`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:` \"`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`$BILLIONS_API_URL`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`/public/v1/invoices/`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`$BILLIONS_INVOICE_ID`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`\"`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` --header`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#79B8FF`,\"--shiki-dark\":`#79B8FF`},children:` --header`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`$BILLIONS_API_KEY`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`\"`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`To authenticate the callback before this lookup, verify\n`,_jsx(_components.code,{children:`X-Billions-Signature`}),` as described in\n`,_jsx(_components.a,{href:`/integration/callbacks-and-security#webhook-signature`,children:`Callbacks and security`}),`.\nThe official SDKs now provide `,_jsx(_components.code,{children:`verifyWebhookSignature()`}),` in TypeScript and\nPHP, and `,_jsx(_components.code,{children:`verify_webhook_signature()`}),` in Python.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Add callback schema validation, order matching, and transactional idempotency\nbefore using these illustrative handlers in production. A callback status is\ninformational until confirmed by the authenticated API.`})})]})}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":{"codeStyling":{"theme":{"light":"github-dark","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Handle a callback","description":"Verify a payment callback against the authenticated API.","icon":"webhook","href":"/examples/handle-a-callback"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"billions","siteName":"Billions","title":"Handle a callback - Billions","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T19:16:19.393Z","originalFileLocation":"examples/handle-a-callback.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=\"Verify a payment callback against the authenticated API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Billions\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/billions/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/billions/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/billions/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/billions/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Handle a callback - Billions\">\u003cmeta data-mint-head property=\"og:description\" content=\"Verify a payment callback against the authenticated API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Billions\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.billions.works/examples/handle-a-callback\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://billions.works/images/og/og-image.png\">\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=\"Handle a callback - Billions\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Verify a payment callback against the authenticated API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://billions.works/images/og/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/billions/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Billions\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FC4C07\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.billions.works/examples/handle-a-callback\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/examples/handle-a-callback.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.billions.works/#organization\",\"name\":\"Billions\",\"url\":\"https://docs.billions.works\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/billions/GmnorJJmmpzZPFoc/logo/logo-black.svg?fit=max\u0026auto=format\u0026n=GmnorJJmmpzZPFoc\u0026q=85\u0026s=e47ff33b3137a04e2ae4b8773ec5e5af\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.billions.works#website\",\"name\":\"Billions\",\"url\":\"https://docs.billions.works\",\"publisher\":{\"@id\":\"https://docs.billions.works/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.billions.works/examples/handle-a-callback#webpage\",\"url\":\"https://docs.billions.works/examples/handle-a-callback\",\"name\":\"Handle a callback\",\"description\":\"Verify a payment callback against the authenticated API.\",\"dateModified\":\"2026-10-15T19:16:19.393Z\",\"isPartOf\":{\"@id\":\"https://docs.billions.works#website\"},\"breadcrumb\":{\"@id\":\"https://docs.billions.works/examples/handle-a-callback#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.billions.works/examples/handle-a-callback#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Examples\",\"item\":\"https://docs.billions.works/examples/create-an-invoice\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Handle a callback\",\"item\":\"https://docs.billions.works/examples/handle-a-callback\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.billions.works/examples/handle-a-callback#article\",\"headline\":\"Handle a callback\",\"name\":\"Handle a callback\",\"description\":\"Verify a payment callback against the authenticated API.\",\"url\":\"https://docs.billions.works/examples/handle-a-callback\",\"mainEntityOfPage\":{\"@id\":\"https://docs.billions.works/examples/handle-a-callback#webpage\"},\"image\":\"https://billions.works/images/og/og-image.png\",\"dateModified\":\"2026-10-15T19:16:19.393Z\",\"publisher\":{\"@id\":\"https://docs.billions.works/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.billions.works#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Billions\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Billions\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/examples/handle-a-callback.md","siteName":"Billions","nav":{"global":null,"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":""}]},{"tab":"Developer","groups":[{"group":"Overview","pages":[{"title":"Developer documentation","icon":"code","href":"/developer/overview"}]},{"group":"Integration guide","pages":[{"title":"Integration overview","icon":"diagram-project","href":"/integration/overview"},{"title":"Prerequisites","icon":"list-check","href":"/integration/prerequisites"},{"title":"Payment flow","icon":"credit-card","href":"/integration/payment-flow"},{"title":"Unified Merchant API","icon":"plug","href":"/integration/unified-merchant-api"},{"title":"Callbacks and security","icon":"shield-halved","href":"/integration/callbacks-and-security"},{"title":"Go-live checklist","icon":"rocket","href":"/integration/go-live-checklist"}]},{"group":"Testing","pages":[{"title":"Sandbox testing","icon":"flask","href":"/integration/sandbox-testing"}]},{"group":"Public API","pages":[{"title":"Public API overview","icon":"brackets-curly","href":"/api/overview"},{"title":"Create an invoice API","icon":"file-invoice","href":"/api/create-invoice"},{"title":"Statuses and lifecycle","icon":"list-check","href":"/api/statuses"},{"title":"Request signing","icon":"signature","href":"/api/request-signing"},{"title":"Withdrawals and refunds","icon":"money-bill-transfer","href":"/api/withdrawals-and-refunds"}]},{"group":"Examples","pages":[{"title":"Create an invoice","description":"Create a hosted payment invoice with an SDK.","icon":"file-invoice","href":"/examples/create-an-invoice"},{"title":"Handle a callback","icon":"webhook","href":"/examples/handle-a-callback"},{"title":"Get invoices from the API","description":"Retrieve Billions invoices using your order reference.","icon":"rotate","href":"/examples/get-invoices-from-api"}]},{"group":"SDKs","pages":[{"title":"SDK overview","icon":"boxes-stacked","href":"/sdks/overview"},{"title":"TypeScript SDK","icon":"js","href":"/sdks/typescript"},{"title":"Python SDK","icon":"python","href":"/sdks/python"},{"title":"PHP SDK","icon":"php","href":"/sdks/php"}]},{"group":"Platform integrations","pages":[{"title":"Platform integrations","icon":"store","href":"/store-integrations/overview"},{"title":"WooCommerce","icon":"wordpress","href":"/store-integrations/woocommerce"},{"title":"BILLmanager","icon":"server","href":"/store-integrations/billmanager"},{"title":"WHMCS","icon":"server","href":"/store-integrations/whmcs"},{"title":"Tilda","icon":"cart-shopping","href":"/store-integrations/tilda"}]}]},{"tab":"Legal","pages":[{"title":"Legal","href":"/legal/overview"}]}]},"basePath":"","title":"Handle a callback - Billions","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}