|
| 1 | +{ |
| 2 | + "id": "evt_1GB4fgKb9q6OnNsLBGVcHQST", |
| 3 | + "object": "event", |
| 4 | + "api_version": "2019-12-03", |
| 5 | + "created": 1581450323, |
| 6 | + "data": { |
| 7 | + "object": { |
| 8 | + "id": "sub_GiX3TpyO37x5BW", |
| 9 | + "object": "subscription", |
| 10 | + "application_fee_percent": null, |
| 11 | + "billing_cycle_anchor": 1581449989, |
| 12 | + "billing_thresholds": null, |
| 13 | + "cancel_at": null, |
| 14 | + "cancel_at_period_end": false, |
| 15 | + "canceled_at": 1581450078, |
| 16 | + "collection_method": "charge_automatically", |
| 17 | + "created": 1581449989, |
| 18 | + "current_period_end": 1583955589, |
| 19 | + "current_period_start": 1581449989, |
| 20 | + "customer": "cus_GiX3P6izX4lG5p", |
| 21 | + "days_until_due": null, |
| 22 | + "default_payment_method": null, |
| 23 | + "default_source": null, |
| 24 | + "default_tax_rates": [], |
| 25 | + "discount": null, |
| 26 | + "ended_at": 1581450323, |
| 27 | + "items": { |
| 28 | + "object": "list", |
| 29 | + "data": [ |
| 30 | + { |
| 31 | + "id": "si_GiVbZCo1K4JXci", |
| 32 | + "object": "subscription_item", |
| 33 | + "billing_thresholds": null, |
| 34 | + "created": 1581449989, |
| 35 | + "metadata": {}, |
| 36 | + "plan": { |
| 37 | + "id": "plan_FiJ55YK6UYftPa", |
| 38 | + "object": "plan", |
| 39 | + "active": true, |
| 40 | + "aggregate_usage": null, |
| 41 | + "amount": 999, |
| 42 | + "amount_decimal": "999", |
| 43 | + "billing_scheme": "per_unit", |
| 44 | + "created": 1567103726, |
| 45 | + "currency": "usd", |
| 46 | + "interval": "month", |
| 47 | + "interval_count": 1, |
| 48 | + "livemode": false, |
| 49 | + "metadata": { |
| 50 | + "successActionButtonURL": "https://stage.guardian.nonprod.cloudops.mozgcp.net/vpn/download?utm_medium=email&utm_source=email&utm_campaign=subscription-download" |
| 51 | + }, |
| 52 | + "nickname": "guardian_monthly", |
| 53 | + "product": "prod_FiJ42WCzZNRSbS", |
| 54 | + "tiers": null, |
| 55 | + "tiers_mode": null, |
| 56 | + "transform_usage": null, |
| 57 | + "trial_period_days": null, |
| 58 | + "usage_type": "licensed" |
| 59 | + }, |
| 60 | + "quantity": 1, |
| 61 | + "subscription": "sub_GiVbeUvwkJj6x1", |
| 62 | + "tax_rates": [] |
| 63 | + } |
| 64 | + ], |
| 65 | + "has_more": false, |
| 66 | + "total_count": 1, |
| 67 | + "url": "/v1/subscription_items?subscription=sub_GiVbeUvwkJj6x1" |
| 68 | + }, |
| 69 | + "latest_invoice": "in_1GB4aHKb9q6OnNsLC9pbVY5a", |
| 70 | + "livemode": false, |
| 71 | + "metadata": { |
| 72 | + "amount": "500", |
| 73 | + "autoCancelledRedundantFor": "sub_1RM8vLBVqmGyQTMaqE7jLIRh", |
| 74 | + "cancelled_for_customer_at": "1746628021", |
| 75 | + "currency": "USD", |
| 76 | + "redundantCancellation": "true" |
| 77 | + }, |
| 78 | + "next_pending_invoice_item_invoice": null, |
| 79 | + "pending_invoice_item_interval": null, |
| 80 | + "pending_setup_intent": null, |
| 81 | + "pending_update": null, |
| 82 | + "plan": { |
| 83 | + "id": "plan_FiJ55YK6UYftPa", |
| 84 | + "object": "plan", |
| 85 | + "active": true, |
| 86 | + "aggregate_usage": null, |
| 87 | + "amount": 999, |
| 88 | + "amount_decimal": "999", |
| 89 | + "billing_scheme": "per_unit", |
| 90 | + "created": 1567103726, |
| 91 | + "currency": "usd", |
| 92 | + "interval": "month", |
| 93 | + "interval_count": 1, |
| 94 | + "livemode": false, |
| 95 | + "metadata": { |
| 96 | + "successActionButtonURL": "https://stage.guardian.nonprod.cloudops.mozgcp.net/vpn/download?utm_medium=email&utm_source=email&utm_campaign=subscription-download" |
| 97 | + }, |
| 98 | + "nickname": "guardian_monthly", |
| 99 | + "product": "prod_FiJ42WCzZNRSbS", |
| 100 | + "tiers": null, |
| 101 | + "tiers_mode": null, |
| 102 | + "transform_usage": null, |
| 103 | + "trial_period_days": null, |
| 104 | + "usage_type": "licensed" |
| 105 | + }, |
| 106 | + "quantity": 1, |
| 107 | + "schedule": null, |
| 108 | + "start_date": 1581449989, |
| 109 | + "status": "canceled", |
| 110 | + "tax_percent": null, |
| 111 | + "trial_end": null, |
| 112 | + "trial_start": null |
| 113 | + } |
| 114 | + }, |
| 115 | + "livemode": false, |
| 116 | + "pending_webhooks": 1, |
| 117 | + "request": { |
| 118 | + "id": "req_0Hhb1j3UqSE7Pr", |
| 119 | + "idempotency_key": null |
| 120 | + }, |
| 121 | + "type": "customer.subscription.deleted" |
| 122 | +} |
0 commit comments