subscription.created

The subscription.created event is triggered when a user subscribes. (when the end-user subscribes - new subscription is created on the end-user's account)

Here are some examples:

  • If a user decides to create an account on a website, but does not subscribe, they will still receive an email
  • If a new user decides to subscribe, that will trigger both events "Customer.created" & "Subscription.created", which in return, will send two emails to the end-user
  • If an existing user decides to subscribe 3 months after registration, that will trigger the "Subscription.created" event, which in return, will send an email to the end-user
{
  "type": "subscription.created",
  "id": "evt_82pSmP2fFGYfNxNKX0kCf4qX",
  "created": 1676976753,
  "triggered_from": "open_api",
  "data": {
    "object": {
      "object": "subscription",
      "id": 2896253,
      "address_id": 7462132,
      "campaign_id": null,
      "campaign_key":null,
      "address_shipping": {
        "object": "address",
        "id": 7462132,
        "city": "New York",
        "company": null,
        "country": "US",
        "country_name": "United States",
        "created_at": "2022-10-31T18:15:45.000000Z",
        "department": null,
        "first_name": "Chandler",
        "is_default": true,
        "last_name": "Bing",
        "line1": "545 Grove Street",
        "line2": "19",
        "postal_code": "100016",
        "salutation": null,
        "site_ids": [
          699
        ],
        "state": "NY",
        "state_name": "New York",
        "title": null,
        "type": "shipping",
        "updated_at": "2022-10-31T18:15:45.000000Z"
      },
      "agency_id": null,
      "auto_renew": true,
      "backdate_start_date": null,
      "billing": "charge_automatically",
      "billing_cycle_anchor": "2023-02-21T10:52:31.000000Z",
      "campaign_id": 5374,
      "campaign_key": "InstantPromo",
      "cancel_at": null,
      "cancel_at_period_end": 0,
      "cancel_reason": null,
      "canceled_at": null,
      "canceled_by_email": null,
      "canceled_by_type": null,
      "coupon": null,
      "created": "2023-02-21T10:52:31.000000Z",
      "current_period_end": "2024-02-21T10:52:31.000000Z",
      "current_period_start": "2023-02-21T10:52:31.000000Z",
      "customer": {
        "object": "customer",
        "id": 7589568,
        "balance": -3520000,
        "created": "2022-10-31T18:15:45.000000Z",
        "currency": "usd",
        "default_source": {
          "object": "source",
          "id": 433596,
          "object_id": "src_1Lz2ZEAQMlpW1iAw0YNjLv5t",
          "object_gateway": "stripe",
          "address_line1_check": "pass",
          "address_zip_check": "pass",
          "brand": "Visa",
          "country": "US",
          "cvc_check": "pass",
          "dynamic_last4": null,
          "exp_month": 4,
          "exp_year": 2024,
          "funding": "credit",
          "last4": "4242",
          "name": null,
          "three_d_secure": "optional",
          "tokenization_method": null,
          "site_ids": [
            699
          ]
        },
        "delinquent": false,
        "display_name": null,
        "email": "[email protected]",
        "email_confirm": null,
        "email_hardbounce": false,
        "first_name": "Chandler",
        "has_password": 1,
        "language": null,
        "last_login_method": "email",
        "last_name": "Bing",
        "metadata": {
          "Social Media": "Linkedin, Facebook",
          "Interested in special reports/webinars": "Yes"
        },
        "object_id": "cus_MiTTWPkcFZrL2f",
        "organization": {
          "id": 827,
          "account_id": 100029,
          "name": "Data Processing Transponsters",
          "created_at": "2023-01-26T17:34:39.000000Z",
          "updated_at": "2023-01-26T17:34:39.000000Z"
        },
        "password_last_updated_at": "2022-12-09T13:21:37.000000Z",
        "phone": null,
        "phone_confirm": null,
        "salutation": null,
        "site_ids": [
          699
        ],
        "title": null,
        "username": null
      },
      "days_until_due": null,
      "default_source": {
        "object": "source",
        "id": 433596,
        "object_id": "src_1Lz2ZEAQMlpW1iAw0YNjLv5t",
        "object_gateway": "stripe",
        "address_line1_check": "pass",
        "address_zip_check": "pass",
        "brand": "Visa",
        "country": "US",
        "cvc_check": "pass",
        "dynamic_last4": null,
        "exp_month": 4,
        "exp_year": 2024,
        "funding": "credit",
        "last4": "4242",
        "name": null,
        "three_d_secure": "optional",
        "tokenization_method": null,
        "site_ids": [
          699
        ]
      },
      "default_tax_rates": null,
      "ended_at": null,
      "expires_at": null,
      "gift_code": null,
      "gift_donor_subscription_id": null,
      "gift_message": null,
      "gift_notification_sent": 0,
      "gift_donor_first_name":null,
      "gift_donor_last_name":null,
      "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": 2946065,
        "address_billing": {
          "object": "address",
          "id": 7462133,
          "city": "New York",
          "company": null,
          "country": "US",
          "country_name": "United States",
          "created_at": "2022-10-31T18:15:46.000000Z",
          "department": null,
          "first_name": "Chandler",
          "is_default": true,
          "last_name": "Bing",
          "line1": "545 Grove Street",
          "line2": "19",
          "postal_code": "100016",
          "salutation": null,
          "site_ids": [
            699
          ],
          "state": "NY",
          "state_name": "New York",
          "title": null,
          "type": "billing",
          "updated_at": "2022-10-31T18:15:46.000000Z"
        },
        "address_shipping": {
          "object": "address",
          "id": 7462132,
          "city": "New York",
          "company": null,
          "country": "US",
          "country_name": "United States",
          "created_at": "2022-10-31T18:15:45.000000Z",
          "department": null,
          "first_name": "Chandler",
          "is_default": true,
          "last_name": "Bing",
          "line1": "545 Grove Street",
          "line2": "19",
          "postal_code": "100016",
          "salutation": null,
          "site_ids": [
            699
          ],
          "state": "NY",
          "state_name": "New York",
          "title": null,
          "type": "shipping",
          "updated_at": "2022-10-31T18:15:45.000000Z"
        },
        "amount_due": 0,
        "amount_paid": 0,
        "amount_remaining": 0,
        "auto_advance": false,
        "billing": "charge_automatically",
        "billing_address": {
          "object": "address",
          "id": 7462133,
          "city": "New York",
          "company": null,
          "country": "US",
          "country_name": "United States",
          "created_at": "2022-10-31T18:15:46.000000Z",
          "department": null,
          "first_name": "Chandler",
          "is_default": true,
          "last_name": "Bing",
          "line1": "545 Grove Street",
          "line2": "19",
          "postal_code": "100016",
          "salutation": null,
          "site_ids": [
            699
          ],
          "state": "NY",
          "state_name": "New York",
          "title": null,
          "type": "billing",
          "updated_at": "2022-10-31T18:15:46.000000Z"
        },
        "billing_reason": "subscription_create",
        "charge_id": null,
        "created": "2023-02-21T10:52:31.000000Z",
        "currency": "usd",
        "customer": {
          "object": "customer",
          "id": 7589568,
          "balance": -3520000,
          "created": "2022-10-31T18:15:45.000000Z",
          "currency": "usd",
          "default_source": {
            "object": "source",
            "id": 433596,
            "object_id": "src_1Lz2ZEAQMlpW1iAw0YNjLv5t",
            "object_gateway": "stripe",
            "address_line1_check": "pass",
            "address_zip_check": "pass",
            "brand": "Visa",
            "country": "US",
            "cvc_check": "pass",
            "dynamic_last4": null,
            "exp_month": 4,
            "exp_year": 2024,
            "funding": "credit",
            "last4": "4242",
            "name": null,
            "three_d_secure": "optional",
            "tokenization_method": null,
            "site_ids": [
              699
            ]
          },
          "delinquent": false,
          "display_name": null,
          "email": "[email protected]",
          "email_confirm": null,
          "email_hardbounce": false,
          "first_name": "Chandler",
          "has_password": 1,
          "language": null,
          "last_login_method": "email",
          "last_name": "Bing",
          "metadata": {
            "Social Media": "Linkedin, Facebook",
            "Interested in special reports/webinars": "Yes"
          },
          "object_id": "cus_MiTTWPkcFZrL2f",
          "organization": {
            "id": 827,
            "account_id": 100029,
            "name": "Data Processing Transponsters",
            "created_at": "2023-01-26T17:34:39.000000Z",
            "updated_at": "2023-01-26T17:34:39.000000Z"
          },
          "password_last_updated_at": "2022-12-09T13:21:37.000000Z",
          "phone": null,
          "phone_confirm": null,
          "salutation": null,
          "site_ids": [
            699
          ],
          "title": null,
          "username": null
        },
        "customer_address": {
          "city": "New York",
          "country": "US",
          "line1": "545 Grove Street",
          "line2": "19",
          "postal_code": "100016",
          "state": "NY"
        },
        "customer_shipping": null,
        "days_to_creation": null,
        "default_tax_rates": null,
        "deleted_at": null,
        "discount_id": null,
        "ending_balance": -3508000,
        "finalized_at": "2023-02-21T10:52:31.000000Z",
        "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1JeNdIAQMlpW1iAw/test_YWNjdF8xSmVOZElBUU1scFcxaUF3LF9OT2dxV3VjM0Y1Z05xN25iOXR2cnM0dndaeGpXQmZsLDY3NTE3NTUy020086Ws9yJd?s=ap",
        "invoice_pdf": "https://staging.pelcro.com/pdf/invoice/eyJpdiI6IjFKU2pNUVdvKzMvUjRSVUlSMUJmNUE9PSIsInZhbHVlIjoiTlFabEFNUW1vMzNSSE9rMUthRGpyL21YdWRobHJpWHppaUF5WDM5Qit3TT0iLCJtYWMiOiI3NmEwMjFkOGEyMDQyNjViZjkzZjliODBhYjQ5NzIxYzdhYWE3NTFmNmYyMmIwYzUxYWZiMTRhZWE4Nzk5YmI2IiwidGFnIjoiIn0=",
        "is_imported": null,
        "lines": null,
        "marked_uncollectible_at": null,
        "number": "DA00620E-0053",
        "object_id": "in_1MdtSVAQMlpW1iAw3mlEvG9f",
        "paid_at": "2023-02-21T10:52:31.000000Z",
        "period_end": "2023-02-21T10:52:31.000000Z",
        "period_start": "2023-02-21T10:52:31.000000Z",
        "plan": {
          "id": 372434,
          "nickname": "Online - Annual",
          "interval": "year"
        },
        "post_payment_credit_notes_amount": 0,
        "pre_payment_credit_notes_amount": 0,
        "product": {
          "id": 4177,
          "name": "Nature Portfolio",
          "name_internal": null
        },
        "purchase_order": null,
        "site_id": 699,
        "source": {
          "object": "source",
          "id": 433596,
          "object_id": "src_1Lz2ZEAQMlpW1iAw0YNjLv5t",
          "object_gateway": "stripe",
          "address_line1_check": "pass",
          "address_zip_check": "pass",
          "brand": "Visa",
          "country": "US",
          "cvc_check": "pass",
          "dynamic_last4": null,
          "exp_month": 4,
          "exp_year": 2024,
          "funding": "credit",
          "last4": "4242",
          "name": null,
          "three_d_secure": "optional",
          "tokenization_method": null,
          "site_ids": [
            699
          ]
        },
        "starting_balance": -3520000,
        "status": "paid",
        "subscription": {
          "object": "subscription",
          "id": 2896253,
          "billing": "charge_automatically",
          "cancel_at_period_end": 0,
          "canceled_at": null,
          "created": "2023-02-21T10:52:31.000000Z",
          "current_period_start": "2023-02-21T10:52:31.000000Z",
          "current_period_end": "2024-02-21T10:52:31.000000Z",
          "schedules": null,
          "plan": {
            "id": 372434,
            "product_id": 4177,
            "parent_plan_id": null,
            "object_id": "plan_MgFpUSQBxNYuwd",
            "active": "active",
            "type": "regular",
            "amount": 12000,
            "recognized_revenue_type": "time",
            "renewal_strategy": null,
            "auto_renew": true,
            "available_online": true,
            "allow_send_invoice": false,
            "auto_uncollectible_days": null,
            "invoice_upcoming_notification": null,
            "currency": "usd",
            "countries": null,
            "entitlements": null,
            "interval": "year",
            "interval_count": 1,
            "is_imported": false,
            "is_hidden": false,
            "is_donation": false,
            "metadata": null,
            "member_seat_capacity": null,
            "nickname": "Online - Annual",
            "name_internal": null,
            "refundable": true,
            "shipments_per_interval": null,
            "description": null,
            "trial_period_days": 0,
            "ip_addresses": null,
            "domains": null,
            "created_at": "2022-10-25T20:02:13.000000Z",
            "updated_at": "2022-10-25T20:02:14.000000Z",
            "site_ids": [
              699
            ],
            "product": {
              "id": 4177,
              "object_id": "prod_MgFoL5nVGokzFV",
              "type": "service",
              "active": "active",
              "address_required": false,
              "countries": null,
              "description": null,
              "entitlements": null,
              "is_imported": null,
              "is_hidden": null,
              "language": "en_US",
              "livemode": false,
              "metadata": null,
              "name": "Nature Portfolio",
              "name_internal": null,
              "shippable": null,
              "statement_descriptor": null,
              "created_at": "2022-10-25T20:00:30.000000Z",
              "updated_at": "2023-01-05T14:59:26.000000Z",
              "site_ids": [
                699
              ]
            }
          }
        },
        "subscription_id": 2896253,
        "subtotal": 12000,
        "tax": null,
        "tax_percent": null,
        "total": 12000,
        "total_tax_amounts": null,
        "updated_at": "2023-02-21T10:52:32.000000Z",
        "voided_at": null
      },
      "object_id": "sub_1MdtSVAQMlpW1iAwWSKhmg8Q",
      "plan": {
        "id": 372434,
        "product_id": 4177,
        "parent_plan_id": null,
        "object_id": "plan_MgFpUSQBxNYuwd",
        "active": "active",
        "type": "regular",
        "amount": 12000,
        "recognized_revenue_type": "time",
        "renewal_strategy": null,
        "auto_renew": true,
        "available_online": true,
        "allow_send_invoice": false,
        "auto_uncollectible_days": null,
        "invoice_upcoming_notification": null,
        "currency": "usd",
        "countries": null,
        "entitlements": null,
        "interval": "year",
        "interval_count": 1,
        "is_imported": false,
        "is_hidden": false,
        "is_donation": false,
        "metadata": null,
        "member_seat_capacity": null,
        "nickname": "Online - Annual",
        "name_internal": null,
        "refundable": true,
        "shipments_per_interval": null,
        "description": null,
        "trial_period_days": 0,
        "ip_addresses": null,
        "domains": null,
        "created_at": "2022-10-25T20:02:13.000000Z",
        "updated_at": "2022-10-25T20:02:14.000000Z",
        "site_ids": [
          699
        ],
        "product": {
          "id": 4177,
          "object_id": "prod_MgFoL5nVGokzFV",
          "type": "service",
          "active": "active",
          "address_required": false,
          "countries": null,
          "description": null,
          "entitlements": null,
          "is_imported": null,
          "is_hidden": null,
          "language": "en_US",
          "livemode": false,
          "metadata": null,
          "name": "Nature Portfolio",
          "name_internal": null,
          "shippable": null,
          "statement_descriptor": null,
          "created_at": "2022-10-25T20:00:30.000000Z",
          "updated_at": "2023-01-05T14:59:26.000000Z",
          "site_ids": [
            699
          ]
        }
      },
      "quantity": 1,
      "renews_at": 1708512751,
      "schedules": null,
      "shipments_remaining": null,
      "shipments_suspended_until": null,
      "shipments_undeliverable": false,
      "shipping_address": {
        "object": "address",
        "id": 7462132,
        "city": "New York",
        "company": null,
        "country": "US",
        "country_name": "United States",
        "created_at": "2022-10-31T18:15:45.000000Z",
        "department": null,
        "first_name": "Chandler",
        "is_default": true,
        "last_name": "Bing",
        "line1": "545 Grove Street",
        "line2": "19",
        "postal_code": "100016",
        "salutation": null,
        "site_ids": [
          699
        ],
        "state": "NY",
        "state_name": "New York",
        "title": null,
        "type": "shipping",
        "updated_at": "2022-10-31T18:15:45.000000Z"
      },
      "site_id": 699,
      "source": "Phone",
      "start_date": "2023-02-21T10:52:31.000000Z",
      "status": "active",
      "trial_end": null,
      "trial_start": null
    }
  }
}