diff --git a/events/parameters-and-properties.md b/events/parameters-and-properties.md index 782f004..176ffc3 100644 --- a/events/parameters-and-properties.md +++ b/events/parameters-and-properties.md @@ -54,7 +54,7 @@ Besides events Apphud also sends user properties to analytics: | Property | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `[Apphud] status-`, where `` – name of subscription group | Status of subscription. Possible values: `none`, `trial`, `intro`, `regular`, `promo`, `refunded`, `expired` | +| `[Apphud] status-`, where `` – name of subscription group | Status of subscription. Possible values: `none`, `trial`, `intro`, `regular`, `grace`, `promo`, `refunded`, `expired` | | `[Apphud] autorenew-`, where `` – name of subscription group | Whether autorenew option is turned on | | `[Apphud] total_spent` | Total amount of money that user has been charged, in USD | | `[Apphud] paying` | Whether user is paying or not | @@ -70,6 +70,7 @@ All values are applied for given subscription group: * `trial`: user has a subscription that is currently in trial period; * `intro`: user has a subscription that is currently in introductory offer; * `regular`: user has a subscription with regular price; +* `grace`: user has a subscription that is currently in grace period; * `promo`: user has a subscription that is currently in promotional offer; * `refunded`: user has refunded a subscription; * `expired`: subscription lapsed. diff --git a/integrations/webhook.md b/integrations/webhook.md index d946878..bf84492 100644 --- a/integrations/webhook.md +++ b/integrations/webhook.md @@ -179,7 +179,7 @@ This dictionary contains information about the user. | `user.subscriptions[].id` | String | Apphud subscription ID | | | `user.subscriptions[].product_id` | String | Product ID | | | `user.subscriptions[].group` | String | Group name | | -| `user.subscriptions[].status` | String | Current status |

trial

intro

promo

regular

refunded

expired

| +| `user.subscriptions[].status` | String | Current status |

trial

intro

promo

regular

grace

refunded

expired

| | `user.subscriptions[].intro_period` | Boolean | Is subscription in an introductory period. | | | `user.subscriptions[].trial_period` | Boolean | Is subscription in the trial period. | | | `user.subscriptions[].started_at` | Date | Subscription start date. | |