Sent when a customer state has changed.
It's triggered when:
Discord & Slack support: Basic
"customer.state_changed"A customer along with additional state information:
Show child attributes
The ID of the customer.
Creation timestamp of the object.
Last modification timestamp of the object.
The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
"usr_1337"
The email address of the customer. This must be unique within the organization.
Whether the customer email address is verified. The address is automatically verified when the customer accesses the customer portal using their email address.
The name of the customer.
"John Doe"
Show child attributes
AD, AE, AF, AG, AI, AL, AM, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW 2 elements["911144442", "us_ein"]The ID of the organization owning the customer.
Timestamp for when the customer was soft deleted.
The customer's active subscriptions.
Show child attributes
The ID of the subscription.
Creation timestamp of the object.
Last modification timestamp of the object.
active, trialing The amount of the subscription.
The currency of the subscription.
The interval at which the subscription recurs.
day, week, month, year The start timestamp of the current billing period.
The end timestamp of the current billing period.
"2025-03-03T13:37:00Z"
The start timestamp of the trial period, if any.
"2025-02-03T13:37:00Z"
The end timestamp of the trial period, if any.
"2025-03-03T13:37:00Z"
Whether the subscription will be canceled at the end of the current period.
The timestamp when the subscription was canceled. The subscription might still be active if cancel_at_period_end is true.
null
The timestamp when the subscription started.
"2025-01-03T13:37:00Z"
The timestamp when the subscription will end.
null
The ID of the subscribed product.
The ID of the applied discount, if any.
null
List of meters associated with the subscription.
Show child attributes
Creation timestamp of the object.
Last modification timestamp of the object.
The ID of the object.
The number of consumed units so far in this billing period.
The number of credited units so far in this billing period.
The amount due in cents so far in this billing period.
The ID of the meter.
The customer's active benefit grants.
Show child attributes
The ID of the grant.
Creation timestamp of the object.
Last modification timestamp of the object.
The timestamp when the benefit was granted.
The ID of the benefit concerned by this grant.
The type of the benefit concerned by this grant.
custom, discord, github_repository, downloadables, license_keys, meter_credit The customer's active meters.
Show child attributes
The ID of the object.
Creation timestamp of the object.
Last modification timestamp of the object.
The ID of the meter.
The number of consumed units.
The number of credited units.
The balance of the meter, i.e. the difference between credited and consumed units.
Was this page helpful?