Subscription Past Due Webhook
The CUSTOMER_SUBSCRIPTION_PAST_DUE webhook is sent when payment for a subscription was not received by the end of the billing period.
CUSTOMER_SUBSCRIPTION_PAST_DUE Webhook
{ "id": "wh_f7ddc0e0b63c82d1a38c3092cdcd98bd", "data": { "id": "sub_8130a18f5835951c146c7373f3f53e99", "type": "payment", "status": "past_due", "billing": "pay_automatically", "discount": null, "ended_at": null, "metadata": {}, "trial_end": null, "created_at": 1702347910, "canceled_at": null, "tax_percent": 0, "trial_start": null, "payout_fields": null, "customer_token": "cus_cac661b201c726e536c5bdb051ef1414", "days_until_due": 30, "payment_fields": null, "payment_method": "card_eb67716cfd8f090686a5157ea86450d7", "current_period_end": 1705026310, "subscription_items": { "url": "/v1/subscription_items?subscription=sub_8130a18f5835951c146c7373f3f53e99", "data": [{ "id": "subi_e61b910e3bd9898d18ddcfcef147951b", "plan": { "id": "plan_f538ff2918d5d105c83e859e56ec2c74", "tiers": [], "active": true, "amount": 100, "product": { "id": "Aut_gSzXJC", "name": "Subs Checks", "skus": [], "type": "services", "active": true, "images": [], "metadata": {}, "shippable": false, "attributes": [], "created_at": 1702347909, "unit_label": "checks", "updated_at": 1702347909, "description": "", "package_dimensions": { "width": 0, "height": 0, "length": 0, "weight": 0 }, "statement_descriptor": "" }, "currency": "USD", "interval": "month", "metadata": {}, "nickname": "", "created_at": 1702347909, "tiers_mode": "", "usage_type": "licensed", "billing_scheme": "per_unit", "interval_count": 1, "aggregate_usage": "sum", "transform_usage": { "round": "up", "divide_by": 1 }, "trial_period_days": 0 }, "created": 1702347910, "metadata": null, "quantity": 1 } ], "has_more": false, "total_count": 1 }, "billing_cycle_anchor": 1702347910, "cancel_at_period_end": false, "current_period_start": 1702347910, "simultaneous_invoice": false }, "type": "CUSTOMER_SUBSCRIPTION_PAST_DUE", "status": "NEW", "created_at": 1702944360, "extended_timestamp": 1702944360631, "trigger_operation_id": "6c29ba08-eeca-4530-9ccc-02d77e2ec5a9" }