Skip to content

Commit

Permalink
Add variables
Browse files Browse the repository at this point in the history
  • Loading branch information
that-guy-iain committed Jun 18, 2024
1 parent cfcc706 commit 27c7f04
Showing 1 changed file with 70 additions and 1 deletion.
71 changes: 70 additions & 1 deletion docs/user/integration/slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,73 @@ title: Slack Notification Variables
sidebar_label: Slack Variables
sidebar_position: 1
---
Docs here
Here you can find the template variables for slack notitifactions.

## Customer Created

| Name | Description | Example |
| --- | --- | --- |
| customer.id | The ID of the customer | `6edfd773-6772-4607-b869-4f10622c948b` |
| customer.email | The email of the customer | `[email protected]` |
| customer.brand | The brand of the customer | `default` |
| customer.billing_type | How the customer is billed | `invoice` or `card` |
| customer.customer_type | If the customer is a business or a sole indivual | `business` |

## Payment Processed

| Name | Description | Example |
| --- | --- | --- |
| customer.id | The ID of the customer | `6edfd773-6772-4607-b869-4f10622c948b` |
| customer.email | The email of the customer | `[email protected]` |
| customer.brand | The brand of the customer | `default` |
| customer.billing_type | How the customer is billed | `invoice` or `card` |
| customer.customer_type | If the customer is a business or a sole indivual | `business` |
| payment.amount | The amount that we attempted to collect as an int | `1000` |
| payment.currency | The currency that we attempted to collect | `USD` |
| payment.formatted_amount | The amount formatted | `USD 10.00` |


## Payment Failed

| Name | Description | Example |
| --- | --- | --- |
| customer.id | The ID of the customer | `6edfd773-6772-4607-b869-4f10622c948b` |
| customer.email | The email of the customer | `[email protected]` |
| customer.brand | The brand of the customer | `default` |
| customer.billing_type | How the customer is billed | `invoice` or `card` |
| customer.customer_type | If the customer is a business or a sole indivual | `business` |
| payment_attempt.amount | The amount that we attempted to collect as an int | `1000` |
| payment_attempt.currency | The currency that we attempted to collect | `USD` |
| payment_attempt.formatted_amount | The amount formatted | `USD 10.00` |


## Subscription Created

| Name | Description | Example |
| --- | --- | --- |
| customer.id | The ID of the customer | `6edfd773-6772-4607-b869-4f10622c948b` |
| customer.email | The email of the customer | `[email protected]` |
| customer.brand | The brand of the customer | `default` |
| customer.billing_type | How the customer is billed | `invoice` or `card` |
| customer.customer_type | If the customer is a business or a sole indivual | `business` |
| subscription.id | The ID of the subscription | `c15fe43c-94af-4cd2-baa2-1eefc724a03c` |
| subscription.plan_name | The name of the plan | `cool_plan` |
| subscription.seats_number | The number of seats for the plan | 4 |
| subscrtipion.start_date | The start date of the subscription | |
| subscrtipion.valid_until | The end date of the subscription | |


## Subscription Cancelled

| Name | Description | Example |
| --- | --- | --- |
| customer.id | The ID of the customer | `6edfd773-6772-4607-b869-4f10622c948b` |
| customer.email | The email of the customer | `[email protected]` |
| customer.brand | The brand of the customer | `default` |
| customer.billing_type | How the customer is billed | `invoice` or `card` |
| customer.customer_type | If the customer is a business or a sole indivual | `business` |
| subscription.id | The ID of the subscription | `c15fe43c-94af-4cd2-baa2-1eefc724a03c` |
| subscription.plan_name | The name of the plan | `cool_plan` |
| subscription.seats_number | The number of seats for the plan | 4 |
| subscrtipion.start_date | The start date of the subscription | |
| subscrtipion.valid_until | The end date of the subscription | |

0 comments on commit 27c7f04

Please sign in to comment.