Skip to content

Instantly share code, notes, and snippets.

{
"event":"subscription_created",
"success":true,
"is_subscription":true,
"is_renew":false,
"is_new":true,
"last_chance":false,
"error_message":null,
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":null,
{
"event":"single_product_bought",
"success":true,
"is_subscription":false,
"is_renew":false,
"is_new":true,
"last_chance":false,
"error_message":null,
"trial_ends_at":null,
"subscription_renews_at":null,
{
"event":"subscription_canceled",
"success":true,
"is_subscription":true,
"is_renew":false,
"is_new":false,
"last_chance":false,
"error_message":null,
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":null,
{
"event":"subscription_plan_changed",
"success":true,
"is_subscription":true,
"is_renew":false,
"is_new":false,
"last_chance":false,
"error_message":null,
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":null,
{
"event":"subscription_expired",
"success":true,
"is_subscription":true,
"is_renew":false,
"is_new":false,
"last_chance":false,
"error_message":null,
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":null,
{
"event":"subscription_renewed",
"success":true,
"is_subscription":true,
"is_renew":true,
"is_new":false,
"last_chance":false,
"error_message":null,
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":null,
{
"event":"subscription_renewal_failed",
"success":false,
"is_subscription":true,
"is_renew":true,
"is_new":false,
"last_chance":false,
"error_message":"wiadomość z błędem",
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":null,
{
"event":"subscription_renewal_upcoming",
"success":true,
"is_subscription":true,
"is_renew":false,
"is_new":false,
"last_chance":false,
"error_message":null,
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":"2021-06-03T13:58:04+02:00",
{
"event":"subscription_renewal_upcoming",
"success":true,
"is_subscription":true,
"is_renew":false,
"is_new":false,
"last_chance":false,
"error_message":null,
"trial_ends_at":"2021-06-03T13:58:04+02:00",
"subscription_renews_at":"2021-06-03T13:58:04+02:00",
{
"event":"customer_deleted",
"customer_name":"Jan Kowalski",
"customer_email":"jan@kowalski.pl",
"customer_id":30,
"customer_stripe_id":"cus_JQDJM3E4uJCk98"
}