customer.deleted

The customer.deleted webhook gets triggered once a customer gets deleted from the platform.

{
  "type": "customer.deleted",
  "id": "evt_3Kjwl5PB2SHppsjVb9vUfGX3",
  "created": 1676976729,
  "triggered_from": "open_api",
  "data": {
    "object": {
      "object": "customer",
      "id": 8189147,
      "balance": 0,
      "created": "2023-02-13T20:05:10.000000Z",
      "currency": "cad",
      "default_source": null,
      "delinquent": false,
      "display_name": null,
      "email": null,
      "email_confirm": null,
      "email_hardbounce": false,
      "first_name": "a",
      "has_password": 0,
      "language": null,
      "last_login_method": null,
      "last_name": "a",
      "metadata": null,
      "object_id": "cus_NLpwsBUjYRXjNA",
      "organization": null,
      "password_last_updated_at": null,
      "phone": null,
      "phone_confirm": null,
      "salutation": null,
      "site_ids": [
        699
      ],
      "title": null,
      "username": null,
      "subscriptions": {
        "object": "list",
        "data": [
          {
            "object": "subscription",
            "id": 2896005,
            "address_id": 8154229,
            "address_shipping": null,
            "agency_id": null,
            "auto_renew": false,
            "backdate_start_date": null,
            "billing": "charge_automatically",
            "billing_cycle_anchor": "2023-02-13T20:05:56.000000Z",
            "cancel_at": "2023-02-15T23:59:59.000000Z",
            "cancel_at_period_end": 0,
            "cancel_reason": null,
            "canceled_at": "2023-02-13T20:06:23.000000Z",
            "canceled_by_email": null,
            "canceled_by_type": null,
            "coupon": null,
            "created": "2023-02-13T20:05:56.000000Z",
            "current_period_end": "2023-02-15T23:59:59.000000Z",
            "current_period_start": "2023-02-13T20:05:56.000000Z",
            "customer": {
              "object": "customer",
              "id": 8189147,
              "balance": 0,
              "created": "2023-02-13T20:05:10.000000Z",
              "currency": "cad",
              "default_source": null,
              "delinquent": false,
              "display_name": null,
              "email": null,
              "email_confirm": null,
              "email_hardbounce": false,
              "first_name": "a",
              "has_password": 0,
              "language": null,
              "last_login_method": null,
              "last_name": "a",
              "metadata": null,
              "object_id": "cus_NLpwsBUjYRXjNA",
              "organization": null,
              "password_last_updated_at": null,
              "phone": null,
              "phone_confirm": null,
              "salutation": null,
              "site_ids": [
                699
              ],
              "title": null,
              "username": null
            },
            "days_until_due": null,
            "default_source": null,
            "default_tax_rates": null,
            "ended_at": "2023-02-15T23:59:59.000000Z",
            "expires_at": 1676505599,
            "gift_code": null,
            "gift_donor_subscription_id": null,
            "gift_message": null,
            "gift_notification_sent": 0,
            "gift_recipient_email": null,
            "gift_recipient_first_name": null,
            "gift_recipient_last_name": null,
            "gift_start_date": null,
            "is_gift_donor": null,
            "is_gift_recipient": null,
            "is_redeemed": null,
            "latest_invoice": {
              "object": "invoice",
              "id": 2895289,
              "address_billing": null,
              "address_shipping": null,
              "amount_due": 1000,
              "amount_paid": 1000,
              "amount_remaining": 0,
              "auto_advance": false,
              "billing": "charge_automatically",
              "billing_address": null,
              "billing_reason": "subscription_create",
              "charge": {
                "id": 1688642,
                "offline": false,
                "payment_category": "Card",
                "reference": null
              },
              "charge_id": 1688642,
              "created": "2023-02-13T20:05:56.000000Z",
              "currency": "cad",
              "customer": {
                "object": "customer",
                "id": 8189147,
                "balance": 0,
                "created": "2023-02-13T20:05:10.000000Z",
                "currency": "cad",
                "default_source": null,
                "delinquent": false,
                "display_name": null,
                "email": null,
                "email_confirm": null,
                "email_hardbounce": false,
                "first_name": "a",
                "has_password": 0,
                "language": null,
                "last_login_method": null,
                "last_name": "a",
                "metadata": null,
                "object_id": "cus_NLpwsBUjYRXjNA",
                "organization": null,
                "password_last_updated_at": null,
                "phone": null,
                "phone_confirm": null,
                "salutation": null,
                "site_ids": [
                  699
                ],
                "title": null,
                "username": null
              },
              "customer_address": {
                "city": "a",
                "country": "DZ",
                "line1": "a",
                "line2": null,
                "postal_code": "213123",
                "state": "16"
              },
              "customer_shipping": null,
              "days_to_creation": null,
              "default_tax_rates": null,
              "deleted_at": null,
              "discount_id": null,
              "ending_balance": 0,
              "finalized_at": "2023-02-13T20:05:56.000000Z",
              "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1JeNdIAQMlpW1iAw/test_YWNjdF8xSmVOZElBUU1scFcxaUF3LF9OTHB4OGszT2RPbFBwUHZMZmRsZGdNRHp6eGYxcHlDLDY2OTQ3OTAx0200NimDvocW?s=ap",
              "invoice_pdf": "https://staging.pelcro.com/pdf/invoice/eyJpdiI6InZ1bUNyVGd4eW1YVXJReHlOS0tkdnc9PSIsInZhbHVlIjoiZ1lNUHZNR1g5b1o1RXNpR1NVcy9FNEJaejJlN2d6SnlacCtWNGdFQmhCMD0iLCJtYWMiOiIwMzgzYzJiNjhiZjY5MjFlN2YzYWY4ZTM0YmE1MDBjYTdhNGYwNTQ2YTdiZmY3MmY5ZTVhYmVhM2ZlZTM1ZTE5IiwidGFnIjoiIn0=",
              "is_imported": null,
              "lines": {
                "object": "list",
                "data": [
                  {
                    "object": "line_item",
                    "id": 3356844,
                    "amount": 1000,
                    "created_at": "2023-02-13T20:06:00.000000Z",
                    "currency": "cad",
                    "deleted_at": null,
                    "description": "1 × Gadgets (at $10.00 / every 2 years)",
                    "metadata": null,
                    "object_id": "il_1Mb8HgAQMlpW1iAwlAduHCU8",
                    "period": {
                      "end": 1739477156,
                      "start": 1676318756
                    },
                    "quantity": 1,
                    "tax_amounts": null,
                    "tax_rates": null,
                    "updated_at": "2023-02-13T20:06:00.000000Z"
                  }
                ]
              },
              "marked_uncollectible_at": null,
              "number": "559A48D7-0001",
              "object_id": "in_1Mb8HgAQMlpW1iAwofBNu0Ym",
              "paid_at": "2023-02-13T20:05:56.000000Z",
              "period_end": "2023-02-13T20:05:56.000000Z",
              "period_start": "2023-02-13T20:05:56.000000Z",
              "plan": {
                "id": 375568,
                "nickname": "Monthly 2",
                "interval": "year"
              },
              "post_payment_credit_notes_amount": 0,
              "pre_payment_credit_notes_amount": 0,
              "product": {
                "id": 4867,
                "name": "Gadgets",
                "name_internal": null
              },
              "purchase_order": null,
              "site_id": 699,
              "source": null,
              "starting_balance": 0,
              "status": "paid",
              "subscription": {
                "object": "subscription",
                "id": 2896005,
                "billing": "charge_automatically",
                "cancel_at_period_end": 0,
                "canceled_at": "2023-02-13T20:06:23.000000Z",
                "created": "2023-02-13T20:05:56.000000Z",
                "current_period_start": "2023-02-13T20:05:56.000000Z",
                "current_period_end": "2023-02-15T23:59:59.000000Z",
                "schedules": null,
                "plan": {
                  "id": 375568,
                  "product_id": 4867,
                  "parent_plan_id": null,
                  "object_id": "plan_NLlCfwHt4VLmsl",
                  "active": "active",
                  "type": "regular",
                  "amount": 1000,
                  "recognized_revenue_type": "time",
                  "renewal_strategy": null,
                  "auto_renew": false,
                  "available_online": true,
                  "allow_send_invoice": false,
                  "auto_uncollectible_days": null,
                  "invoice_upcoming_notification": null,
                  "currency": "cad",
                  "countries": null,
                  "entitlements": null,
                  "interval": "year",
                  "interval_count": 2,
                  "is_imported": false,
                  "is_hidden": false,
                  "is_donation": false,
                  "metadata": null,
                  "member_seat_capacity": null,
                  "nickname": "Monthly 2",
                  "name_internal": null,
                  "refundable": true,
                  "shipments_per_interval": null,
                  "description": null,
                  "trial_period_days": 0,
                  "ip_addresses": null,
                  "domains": null,
                  "created_at": "2023-02-13T15:10:55.000000Z",
                  "updated_at": "2023-02-13T15:12:19.000000Z",
                  "site_ids": [
                    699
                  ],
                  "product": {
                    "id": 4867,
                    "object_id": "prod_MzIuBxwrF3pM6U",
                    "type": "service",
                    "active": "active",
                    "address_required": true,
                    "countries": null,
                    "description": null,
                    "entitlements": null,
                    "is_imported": null,
                    "is_hidden": null,
                    "language": "en_US",
                    "livemode": false,
                    "metadata": null,
                    "name": "Gadgets",
                    "name_internal": null,
                    "shippable": null,
                    "statement_descriptor": null,
                    "created_at": "2022-12-15T16:28:55.000000Z",
                    "updated_at": "2023-01-25T14:48:38.000000Z",
                    "site_ids": [
                      699
                    ]
                  }
                }
              },
              "subscription_id": 2896005,
              "subtotal": 1000,
              "tax": null,
              "tax_percent": null,
              "total": 1000,
              "total_tax_amounts": null,
              "updated_at": "2023-02-14T20:38:21.000000Z",
              "voided_at": null
            },
            "object_id": "sub_1Mb8HgAQMlpW1iAwfTpiQDdq",
            "plan": {
              "id": 375568,
              "product_id": 4867,
              "parent_plan_id": null,
              "object_id": "plan_NLlCfwHt4VLmsl",
              "active": "active",
              "type": "regular",
              "amount": 1000,
              "recognized_revenue_type": "time",
              "renewal_strategy": null,
              "auto_renew": false,
              "available_online": true,
              "allow_send_invoice": false,
              "auto_uncollectible_days": null,
              "invoice_upcoming_notification": null,
              "currency": "cad",
              "countries": null,
              "entitlements": null,
              "interval": "year",
              "interval_count": 2,
              "is_imported": false,
              "is_hidden": false,
              "is_donation": false,
              "metadata": null,
              "member_seat_capacity": null,
              "nickname": "Monthly 2",
              "name_internal": null,
              "refundable": true,
              "shipments_per_interval": null,
              "description": null,
              "trial_period_days": 0,
              "ip_addresses": null,
              "domains": null,
              "created_at": "2023-02-13T15:10:55.000000Z",
              "updated_at": "2023-02-13T15:12:19.000000Z",
              "site_ids": [
                699
              ],
              "product": {
                "id": 4867,
                "object_id": "prod_MzIuBxwrF3pM6U",
                "type": "service",
                "active": "active",
                "address_required": true,
                "countries": null,
                "description": null,
                "entitlements": null,
                "is_imported": null,
                "is_hidden": null,
                "language": "en_US",
                "livemode": false,
                "metadata": null,
                "name": "Gadgets",
                "name_internal": null,
                "shippable": null,
                "statement_descriptor": null,
                "created_at": "2022-12-15T16:28:55.000000Z",
                "updated_at": "2023-01-25T14:48:38.000000Z",
                "site_ids": [
                  699
                ]
              }
            },
            "quantity": 1,
            "renews_at": null,
            "schedules": null,
            "shipments_remaining": null,
            "shipments_suspended_until": null,
            "shipments_undeliverable": false,
            "shipping_address": null,
            "site_id": 699,
            "source": "Email",
            "start_date": "2023-02-13T20:05:56.000000Z",
            "status": "canceled",
            "trial_end": null,
            "trial_start": null
          }
        ]
      },
      "shipping_addresses": null,
      "billing_addresses": null
    },
    "previous_attributes": []
  }
}