Event triggered when a subscription renewal could not be paid.
subscription.renewal.failed is always sent and cannot be turned off.
Fired when a renewal’s charge was declined or could not be attempted, and when the charge of a paid renewal is disputed or returned. renewal.status tells a retry notice from the end:
renewal.status
Meaning
pending
Soap will charge the renewal again at renewal.next_attempt_at. The subscription reads past_due until then.
failed
No attempt is left.
renewal.status is read when Soap builds the event, so a delayed event can carry a later status: processing once the next attempt has begun, or failed with the renewal.next_attempt_at of an attempt that has since run.
Retries and cancellation
A declined renewal is retried 1 day after the first decline, 3 days after the second and 7 days after the third: at most four attempts. Only a decline the processor may approve later is retried.
When the last attempt is declined, Soap cancels the subscription at once and sends subscription.canceled with reason payment_failed.
This event and subscription.canceled are sent separately and can arrive in either order. Read the subscription with GET /api/v1/subscriptions/{id} for its current state.
Any other failure on the customer’s side fails the renewal at once, and Soap cancels the subscription the same way 11 days after the renewal’s first failed attempt.
A failure on Soap’s side (renewal_error, payment_review_expired) never cancels the subscription: it stays past_due until it is resolved. Contact Soap support.
A disputed or returned renewal charge ends the subscription now, with subscription.canceled and that reason.
A renewal being charged when you canceled is not retried. If it is declined, subscription.renewal.failed is not sent.
Failure reasons
failure_reason
Meaning
charge_declined
The charge was declined. failure_message is the processor’s own message.
payment_review_declined
The renewal was declined in payment review.
payment_review_expired
Nobody decided the renewal’s payment review in time.
payment_method_not_chargeable
You disabled the customer’s payment method.
customer_restricted
The customer is restricted from making payments.
renewal_error
Soap couldn’t attempt the charge.
charge_disputed
The customer disputed the renewal’s payment.
charge_returned
The renewal’s payment was returned.
Payload Structure
interface WebhookEvent { event_id: string; data: { subscription: { id: string; interval: "day" | "week" | "month" | "year"; interval_count: number; status: "incomplete" | "active" | "past_due" | "paused" | "canceled"; current_period_end: string | null; next_billing_at: string | null; // the next attempt while one is scheduled }; renewal: { id: string; period_start: string; period_end: string; amount_cents: number; status: "pending" | "processing" | "failed"; failure_reason: string; // see Failure reasons failure_message: string | null; next_attempt_at: string | null; checkout: { id: string } | null; // the checkout of the attempt this is about charge: { id: string } | null; // null when no charge was attempted }; }; type: "subscription.renewal.failed";}
The event is not sent if the renewal was paid or voided before delivery.
Example Response
{ "event_id": "ev_2ZxCvBn3MaSdFg4HjKl5QwEr6TyUiOp7", "data": { "subscription": { "id": "sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG", "interval": "month", "interval_count": 1, "status": "past_due", "current_period_end": "2026-12-18T15:02:00Z", "next_billing_at": "2026-12-19T16:07:42Z" }, "renewal": { "id": "ren_4TgBnHy6UjMk7IkOl8PqAz2WsXe3DcRf", "period_start": "2026-12-18T15:02:00Z", "period_end": "2027-01-18T15:02:00Z", "amount_cents": 2999, "status": "pending", "failure_reason": "charge_declined", "failure_message": "The card was declined for an unknown reason. The cardholder needs to contact their issuing bank for more information.", "next_attempt_at": "2026-12-19T16:07:42Z", "checkout": { "id": "chk_twijxXgVFofj9mdnvzF7vhbJSZEhfUpC" }, "charge": { "id": "ch_yRZcCGouimTgbz4thtrfbj2mh3ZT6vnz" } } }, "type": "subscription.renewal.failed"}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Soap","colors":{"primary":"#4B9EF4","light":"#FFF5E1","dark":"#1C1C1E"},"logo":{"light":"https://mintcdn.com/soappaymentsinc/xLCEKqTin27F3B_G/logo/soap-payments-light-large.png?fit=max\u0026auto=format\u0026n=xLCEKqTin27F3B_G\u0026q=85\u0026s=80edefa85946042d6b589971385d221a","dark":"https://mintcdn.com/soappaymentsinc/xLCEKqTin27F3B_G/logo/soap-payments-dark-large.png?fit=max\u0026auto=format\u0026n=xLCEKqTin27F3B_G\u0026q=85\u0026s=5c1cd400b95800d745b2adfae3d0dbdf"},"favicon":"https://mintcdn.com/soappaymentsinc/wi7l5TPQvnY0ywwl/favicon.svg?fit=max\u0026auto=format\u0026n=wi7l5TPQvnY0ywwl\u0026q=85\u0026s=599c1c310c53f1e169af11ff2d739d3a","api":{"openapi":"api-reference/openapi.json"},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[],"primary":{"type":"button","label":"Request Access","href":"https://www.paywithsoap.com"}},"footer":{"socials":{"twitter":"https://x.com/paywithsoap","github":"https://github.com/Soap-Payments","linkedin":"https://www.linkedin.com/company/soap-payments"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode","add-mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"soappaymentsinc","hasAudioNarration":false,"actualSubdomain":"soappaymentsinc","customDomains":["docs.paywithsoap.com"],"gitSource":{"type":"github","owner":"soap-payments","repo":"soap-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":"","_id":"6adeb175ae0dc487a6162dea"},"entitlements":{},"buildId":"6b0e2b2d13ff154fa8b7f69a","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API Reference","count":49},{"language":"default","tag":"Webhooks","count":24},{"language":"default","tag":"Documentation","count":21},{"language":"default","tag":"API Endpoints","count":20},{"language":"default","tag":"Dashboard","count":18},{"language":"default","tag":"Checkouts","count":8},{"language":"default","tag":"Receive Payments","count":5},{"language":"default","tag":"Subscriptions","count":4},{"language":"default","tag":"API Documentation","count":4},{"language":"default","tag":"Getting Started","count":3}]},"assistantConfig":{},"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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/api-v1/webhooks/subscription-renewal-failed","slug":"/api-reference/api-v1/webhooks/subscription-renewal-failed","pageMetadata":{"title":"subscription.renewal.failed","description":"Event triggered when a subscription renewal could not be paid.","href":"/api-reference/api-v1/webhooks/subscription-renewal-failed"},"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: \"Event triggered when a subscription renewal could not be paid.\"\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`,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:[_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`subscription.renewal.failed`}),` is always sent and cannot be turned off.`]})}),`\n`,_jsxs(_components.p,{children:[`Fired when a renewal’s charge was declined or could not be attempted, and when the charge of a paid renewal is disputed or returned. `,_jsx(_components.code,{children:`renewal.status`}),` tells a retry notice from the end:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`renewal.status`})}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsxs(_components.td,{children:[`Soap will charge the renewal again at `,_jsx(_components.code,{children:`renewal.next_attempt_at`}),`. The subscription reads `,_jsx(_components.code,{children:`past_due`}),` until then.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsx(_components.td,{children:`No attempt is left.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`renewal.status`}),` is read when Soap builds the event, so a delayed event can carry a later status: `,_jsx(_components.code,{children:`processing`}),` once the next attempt has begun, or `,_jsx(_components.code,{children:`failed`}),` with the `,_jsx(_components.code,{children:`renewal.next_attempt_at`}),` of an attempt that has since run.`]}),`\n`,_jsx(Heading,{level:`2`,id:`retries-and-cancellation`,children:`Retries and cancellation`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A declined renewal is retried 1 day after the first decline, 3 days after the second and 7 days after the third: at most four attempts. Only a decline the processor may approve later is retried.`}),`\n`,_jsxs(_components.li,{children:[`When the last attempt is declined, Soap cancels the subscription at once and sends `,_jsx(_components.code,{children:`subscription.canceled`}),` with reason `,_jsx(_components.code,{children:`payment_failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`This event and `,_jsx(_components.code,{children:`subscription.canceled`}),` are sent separately and can arrive in either order. Read the subscription with `,_jsx(_components.a,{href:`/api-reference/api-v1/subscriptions/show`,children:_jsx(_components.code,{children:`GET /api/v1/subscriptions/{id}`})}),` for its current state.`]}),`\n`,_jsx(_components.li,{children:`Any other failure on the customer’s side fails the renewal at once, and Soap cancels the subscription the same way 11 days after the renewal’s first failed attempt.`}),`\n`,_jsxs(_components.li,{children:[`A failure on Soap’s side (`,_jsx(_components.code,{children:`renewal_error`}),`, `,_jsx(_components.code,{children:`payment_review_expired`}),`) never cancels the subscription: it stays `,_jsx(_components.code,{children:`past_due`}),` until it is resolved. Contact Soap support.`]}),`\n`,_jsxs(_components.li,{children:[`A disputed or returned renewal charge ends the subscription now, with `,_jsx(_components.code,{children:`subscription.canceled`}),` and that reason.`]}),`\n`,_jsxs(_components.li,{children:[`A renewal being charged when you canceled is not retried. If it is declined, `,_jsx(_components.code,{children:`subscription.renewal.failed`}),` is not sent.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`failure-reasons`,children:`Failure reasons`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`failure_reason`})}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`charge_declined`})}),_jsxs(_components.td,{children:[`The charge was declined. `,_jsx(_components.code,{children:`failure_message`}),` is the processor’s own message.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_review_declined`})}),_jsx(_components.td,{children:`The renewal was declined in payment review.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_review_expired`})}),_jsx(_components.td,{children:`Nobody decided the renewal’s payment review in time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`payment_method_not_chargeable`})}),_jsx(_components.td,{children:`You disabled the customer’s payment method.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`customer_restricted`})}),_jsx(_components.td,{children:`The customer is restricted from making payments.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`renewal_error`})}),_jsx(_components.td,{children:`Soap couldn’t attempt the charge.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`charge_disputed`})}),_jsx(_components.td,{children:`The customer disputed the renewal’s payment.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`charge_returned`})}),_jsx(_components.td,{children:`The renewal’s payment was returned.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`payload-structure`,children:`Payload Structure`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,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:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` WebhookEvent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` event_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` subscription`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` interval`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"day\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"week\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"month\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"year\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` interval_count`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--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:` \"incomplete\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"active\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"past_due\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"paused\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"canceled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` current_period_end`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` next_billing_at`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the next attempt while one is scheduled`})]}),`\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:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` renewal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` period_start`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` period_end`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` amount_cents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--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:` \"pending\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"processing\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` failure_reason`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// see Failure reasons`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` failure_message`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` next_attempt_at`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` checkout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_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:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// the checkout of the attempt this is about`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` charge`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_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:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// null when no charge was attempted`})]}),`\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:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subscription.renewal.failed\"`}),_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`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Timestamps are ISO 8601.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`subscription`}),` is short: read `,_jsx(_components.a,{href:`/api-reference/api-v1/subscriptions/show`,children:_jsx(_components.code,{children:`GET /api/v1/subscriptions/{id}`})}),` for the customer and line items.`]}),`\n`,_jsx(_components.li,{children:`The event is not sent if the renewal was paid or voided before delivery.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-response`,children:`Example Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`30`,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:`30`,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:` \"event_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ev_2ZxCvBn3MaSdFg4HjKl5QwEr6TyUiOp7\"`}),_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`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subscription\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_7Hn2Kq9Wx4Lm8Pz3Rt6Vb1Ys5JdCfEaG\"`}),_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:` \"interval\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"month\"`}),_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:` \"interval_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"past_due\"`}),_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:` \"current_period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-18T15:02: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:` \"next_billing_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-19T16:07:42Z\"`})]}),`\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:` \"renewal\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ren_4TgBnHy6UjMk7IkOl8PqAz2WsXe3DcRf\"`}),_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:` \"period_start\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-18T15:02: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:` \"period_end\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2027-01-18T15:02: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:` \"amount_cents\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2999`}),_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:`\"pending\"`}),_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:` \"failure_reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"charge_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:` \"failure_message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The card was declined for an unknown reason. The cardholder needs to contact their issuing bank for more information.\"`}),_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:` \"next_attempt_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-19T16:07:42Z\"`}),_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:` \"checkout\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chk_twijxXgVFofj9mdnvzF7vhbJSZEhfUpC\"`})]}),`\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:` \"charge\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ch_yRZcCGouimTgbz4thtrfbj2mh3ZT6vnz\"`})]}),`\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`,_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subscription.renewal.failed\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\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":"subscription.renewal.failed","description":"Event triggered when a subscription renewal could not be paid.","href":"/api-reference/api-v1/webhooks/subscription-renewal-failed"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Retries and cancellation","slug":"retries-and-cancellation","depth":2,"children":[]},{"title":"Failure reasons","slug":"failure-reasons","depth":2,"children":[]},{"title":"Payload Structure","slug":"payload-structure","depth":2,"children":[]},{"title":"Example Response","slug":"example-response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"soappaymentsinc","siteName":"Soap","title":"subscription.renewal.failed - Soap","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T03:08:12.254Z","originalFileLocation":"api-reference/api-v1/webhooks/subscription-renewal-failed.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=\"Event triggered when a subscription renewal could not be paid.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Soap\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/soappaymentsinc/uwmep72Fim3-ANhF/_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/soappaymentsinc/uwmep72Fim3-ANhF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/soappaymentsinc/uwmep72Fim3-ANhF/_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/soappaymentsinc/uwmep72Fim3-ANhF/_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/soappaymentsinc/uwmep72Fim3-ANhF/_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/soappaymentsinc/uwmep72Fim3-ANhF/_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/soappaymentsinc/uwmep72Fim3-ANhF/_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/soappaymentsinc/uwmep72Fim3-ANhF/_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/soappaymentsinc/uwmep72Fim3-ANhF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"subscription.renewal.failed - Soap\">\u003cmeta data-mint-head property=\"og:description\" content=\"Event triggered when a subscription renewal could not be paid.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Soap\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://soappaymentsinc.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=subscription.renewal.failed\u0026amp;description=Event+triggered+when+a+subscription+renewal+could+not+be+paid.\u0026amp;theme=8f5505fbb6d7285f5c0028dd\u0026amp;signature=dc0f805a7396f43da7a6042565f28eedf138b482c0f26609ae8dd027584a6ada\">\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=\"subscription.renewal.failed - Soap\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Event triggered when a subscription renewal could not be paid.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://soappaymentsinc.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=subscription.renewal.failed\u0026amp;description=Event+triggered+when+a+subscription+renewal+could+not+be+paid.\u0026amp;theme=8f5505fbb6d7285f5c0028dd\u0026amp;signature=dc0f805a7396f43da7a6042565f28eedf138b482c0f26609ae8dd027584a6ada\">\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/soappaymentsinc/uwmep72Fim3-ANhF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Soap\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4B9EF4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/api-v1/webhooks/subscription-renewal-failed.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.paywithsoap.com/#organization\",\"name\":\"Soap\",\"url\":\"https://docs.paywithsoap.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/soappaymentsinc/xLCEKqTin27F3B_G/logo/soap-payments-light-large.png?fit=max\u0026auto=format\u0026n=xLCEKqTin27F3B_G\u0026q=85\u0026s=80edefa85946042d6b589971385d221a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.paywithsoap.com#website\",\"name\":\"Soap\",\"url\":\"https://docs.paywithsoap.com\",\"publisher\":{\"@id\":\"https://docs.paywithsoap.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed#webpage\",\"url\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed\",\"name\":\"subscription.renewal.failed\",\"description\":\"Event triggered when a subscription renewal could not be paid.\",\"dateModified\":\"2026-11-30T03:08:12.254Z\",\"isPartOf\":{\"@id\":\"https://docs.paywithsoap.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Webhooks\",\"item\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"subscription.renewal.failed\",\"item\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed#article\",\"headline\":\"subscription.renewal.failed\",\"name\":\"subscription.renewal.failed\",\"description\":\"Event triggered when a subscription renewal could not be paid.\",\"url\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed\",\"mainEntityOfPage\":{\"@id\":\"https://docs.paywithsoap.com/api-reference/api-v1/webhooks/subscription-renewal-failed#webpage\"},\"dateModified\":\"2026-11-30T03:08:12.254Z\",\"publisher\":{\"@id\":\"https://docs.paywithsoap.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.paywithsoap.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Soap\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Soap\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/api-v1/webhooks/subscription-renewal-failed.md","siteName":"Soap","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/get_started/introduction"}]},{"anchor":"API Reference","icon":"rectangle-terminal","groups":[{"group":"API Documentation","pages":[{"title":"API Introduction","href":"/api-reference/introduction"},{"title":"Checkouts, Charges and Reviews","href":"/api-reference/lifecycles"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Soap Docs MCP Server","href":"/api-reference/soap-mcp-server"}]},{"group":"API Endpoints","pages":[{"title":"Create Customer","openapi":"POST /api/v1/customers","href":"/api-reference/api-v1/customers/create"},{"title":"Update Customer","openapi":"PATCH /api/v1/customers/{id}","href":"/api-reference/api-v1/customers/update"},{"title":"Search Customers","openapi":"GET /api/v1/customers/search","href":"/api-reference/api-v1/customers/search"},{"group":"Checkouts","pages":[{"title":"Create Checkout","openapi":"POST /api/v1/checkouts","href":"/api-reference/api-v1/checkouts/create"},{"group":"Receive Payments","pages":[{"title":"Custom Amount Deposit","href":"/api-reference/api-v1/checkouts/draftkings-deposit"},{"title":"Preset Amount Deposit","href":"/api-reference/api-v1/checkouts/preset-deposit"},{"title":"Subscription Checkout","href":"/api-reference/api-v1/checkouts/subscription-checkout"},{"title":"Digital Goods Purchase","href":"/api-reference/api-v1/checkouts/sweeps-purchase"},{"title":"Ecomm Purchase","href":"/api-reference/api-v1/checkouts/ecomm-purchase"}]},{"group":"Send Payments","pages":[{"title":"Balance Withdrawal","href":"/api-reference/api-v1/checkouts/balance-withdrawal"},{"title":"Preset Amount Withdrawal","href":"/api-reference/api-v1/checkouts/preset-withdrawal"}]}]},{"group":"Subscriptions","pages":[{"title":"Retrieve a Subscription","openapi":"GET /api/v1/subscriptions/{id}","href":"/api-reference/api-v1/subscriptions/show"},{"title":"Cancel a Subscription","openapi":"POST /api/v1/subscriptions/{id}/cancel","href":"/api-reference/api-v1/subscriptions/cancel"},{"title":"Pause a Subscription","openapi":"POST /api/v1/subscriptions/{id}/pause","href":"/api-reference/api-v1/subscriptions/pause"},{"title":"Resume a Subscription","openapi":"POST /api/v1/subscriptions/{id}/resume","href":"/api-reference/api-v1/subscriptions/resume"}]},{"title":"Retrieve a Charge","openapi":"GET /api/v1/charges/{id}","href":"/api-reference/api-v1/charges/show"},{"title":"Refund a Charge","openapi":"POST /api/v1/charges/{id}/refund","href":"/api-reference/api-v1/charges/refund"},{"title":"Upsert KYC","openapi":"POST /api/v1/kyc/upsert","href":"/api-reference/api-v1/kyc/upsert"},{"title":"Create Device Ping","openapi":"POST /api/v1/device_pings","href":"/api-reference/api-v1/device_pings/create"},{"title":"Get Latest Geo Check","openapi":"GET /api/v1/device_pings/latest_geo_check","href":"/api-reference/api-v1/device_pings/latest_geo_check"}]},{"group":"Webhooks","pages":[{"title":"Webhooks Overview","href":"/api-reference/api-v1/webhooks/webhooks"},{"title":"Receiving Webhooks","href":"/api-reference/api-v1/webhooks/setup"},{"title":"checkout.succeeded","href":"/api-reference/api-v1/webhooks/checkout-succeeded"},{"title":"checkout.hold","href":"/api-reference/api-v1/webhooks/checkout-hold"},{"title":"checkout.release_hold","href":"/api-reference/api-v1/webhooks/checkout-release-hold"},{"title":"checkout.returned","href":"/api-reference/api-v1/webhooks/checkout-returned"},{"title":"checkout.failed","href":"/api-reference/api-v1/webhooks/checkout-failed"},{"title":"checkout.pending","href":"/api-reference/api-v1/webhooks/checkout-pending"},{"title":"checkout.terminally_failed","href":"/api-reference/api-v1/webhooks/checkout-terminally-failed"},{"title":"checkout.expired","href":"/api-reference/api-v1/webhooks/checkout-expired"},{"title":"checkout.voided","href":"/api-reference/api-v1/webhooks/checkout-voided"},{"title":"checkout.refunded","href":"/api-reference/api-v1/webhooks/checkout-refunded"},{"title":"checkout.cancelled","href":"/api-reference/api-v1/webhooks/checkout-cancelled"},{"title":"checkout.review.created","href":"/api-reference/api-v1/webhooks/checkout-review-created"},{"title":"checkout.review.approved","href":"/api-reference/api-v1/webhooks/checkout-review-approved"},{"title":"checkout.review.declined","href":"/api-reference/api-v1/webhooks/checkout-review-declined"},{"title":"customer.kyc.created","href":"/api-reference/api-v1/webhooks/customer-kyc-created"},{"title":"customer.restricted","href":"/api-reference/api-v1/webhooks/customer-restricted"},{"title":"customer.unrestricted","href":"/api-reference/api-v1/webhooks/customer-unrestricted"},{"title":"subscription.renewed","description":"Event triggered when a subscription renewal is paid.","href":"/api-reference/api-v1/webhooks/subscription-renewed"},{"title":"subscription.renewal.failed","href":"/api-reference/api-v1/webhooks/subscription-renewal-failed"},{"title":"subscription.canceled","description":"Event triggered when a subscription is canceled.","href":"/api-reference/api-v1/webhooks/subscription-canceled"},{"title":"subscription.paused","href":"/api-reference/api-v1/webhooks/subscription-paused"},{"title":"subscription.resumed","href":"/api-reference/api-v1/webhooks/subscription-resumed"}]},{"group":"Testing","pages":[{"title":"Sandbox Test Data","href":"/api-reference/api-v1/testing"}]}]},{"anchor":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"subscription.renewal.failed - Soap","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}