Skip to main content

Slack Integration

BillaBear integrates with Slack to send real-time notifications about important events in your billing system. This integration helps your team stay informed about customer activities, payment statuses, subscription changes, and more without having to constantly check the BillaBear dashboard.

Setting Up Slack Integration

Accessing Slack Integration

  1. Log in to your BillaBear admin account
  2. Navigate to the main menu
  3. Select "Integrations"
  4. Choose "Notifications"
  5. Select "Slack" from the available notification channels

Configuring Slack Webhooks

To connect BillaBear with Slack, you'll need to create a webhook in your Slack workspace:

  1. Go to your Slack workspace
  2. Visit the Slack API Apps page
  3. Click "Create New App"
  4. Choose "From scratch"
  5. Give your app a name (e.g., "BillaBear Notifications") and select your workspace
  6. Click "Create App"
  7. In the left sidebar, click on "Incoming Webhooks"
  8. Toggle "Activate Incoming Webhooks" to On
  9. Click "Add New Webhook to Workspace"
  10. Select the channel where you want to receive notifications
  11. Click "Allow"
  12. Copy the Webhook URL that is generated
  13. Return to BillaBear and paste the Webhook URL in the Slack integration settings
  14. Click "Save" to establish the connection

Customizing Notification Templates

BillaBear allows you to customize the content of each notification type. For each event:

  1. Select the event type from the dropdown menu
  2. Customize the message template using the available variables
  3. Click "Save" to apply your changes

You can use the preview function to see how your notifications will appear in Slack before saving.

Notification Types

BillaBear can send Slack notifications for the following events:

  • Customer Created
  • Payment Processed
  • Payment Failed
  • Subscription Created
  • Subscription Cancelled
  • Trial Started
  • Trial Ended
  • Trial Extended
  • Country Tax Threshold Reached
  • State Tax Threshold Reached

Template Variables

You can customize notification messages using template variables. The format to use a variable is {{variable.name}}.

Customer Created

NameDescriptionExample
customer.idThe ID of the customer6edfd773-6772-4607-b869-4f10622c948b
customer.emailThe email of the customerinvoices@example.org
customer.brandThe brand of the customerdefault
customer.billing_typeHow the customer is billedinvoice or card
customer.customer_typeIf the customer is a business or a sole individualbusiness

Payment Processed

NameDescriptionExample
customer.idThe ID of the customer6edfd773-6772-4607-b869-4f10622c948b
customer.emailThe email of the customerinvoices@example.org
customer.brandThe brand of the customerdefault
customer.billing_typeHow the customer is billedinvoice or card
customer.customer_typeIf the customer is a business or a sole individualbusiness
payment.amountThe amount that we attempted to collect as an int1000
payment.currencyThe currency that we attempted to collectUSD
payment.formatted_amountThe amount formattedUSD 10.00

Payment Failed

NameDescriptionExample
customer.idThe ID of the customer6edfd773-6772-4607-b869-4f10622c948b
customer.emailThe email of the customerinvoices@example.org
customer.brandThe brand of the customerdefault
customer.billing_typeHow the customer is billedinvoice or card
customer.customer_typeIf the customer is a business or a sole individualbusiness
payment_attempt.amountThe amount that we attempted to collect as an int1000
payment_attempt.currencyThe currency that we attempted to collectUSD
payment_attempt.formatted_amountThe amount formattedUSD 10.00

Subscription Created

NameDescriptionExample
customer.idThe ID of the customer6edfd773-6772-4607-b869-4f10622c948b
customer.emailThe email of the customerinvoices@example.org
customer.brandThe brand of the customerdefault
customer.billing_typeHow the customer is billedinvoice or card
customer.customer_typeIf the customer is a business or a sole individualbusiness
subscription.idThe ID of the subscriptionc15fe43c-94af-4cd2-baa2-1eefc724a03c
subscription.plan_nameThe name of the plancool_plan
subscription.seats_numberThe number of seats for the plan4
subscription.start_dateThe start date of the subscription2025-08-18
subscription.valid_untilThe end date of the subscription2026-08-18

Subscription Cancelled

NameDescriptionExample
customer.idThe ID of the customer6edfd773-6772-4607-b869-4f10622c948b
customer.emailThe email of the customerinvoices@example.org
customer.brandThe brand of the customerdefault
customer.billing_typeHow the customer is billedinvoice or card
customer.customer_typeIf the customer is a business or a sole individualbusiness
subscription.idThe ID of the subscriptionc15fe43c-94af-4cd2-baa2-1eefc724a03c
subscription.plan_nameThe name of the plancool_plan
subscription.seats_numberThe number of seats for the plan4
subscription.start_dateThe start date of the subscription2025-08-18
subscription.valid_untilThe end date of the subscription2026-08-18

Trial Started

NameDescriptionExample
customer.idThe ID of the customer6edfd773-6772-4607-b869-4f10622c948b
customer.emailThe email of the customerinvoices@example.org
customer.brandThe brand of the customerdefault
customer.billing_typeHow the customer is billedinvoice or card
customer.customer_typeIf the customer is a business or a sole individualbusiness
subscription.idThe ID of the subscriptionc15fe43c-94af-4cd2-baa2-1eefc724a03c
subscription.plan_nameThe name of the plancool_plan
subscription.seats_numberThe number of seats for the plan4
subscription.start_dateThe start date of the subscription2025-08-18
subscription.valid_untilThe end date of the subscription2025-09-18

Trial Ended

NameDescriptionExample
customer.idThe ID of the customer6edfd773-6772-4607-b869-4f10622c948b
customer.emailThe email of the customerinvoices@example.org
customer.brandThe brand of the customerdefault
customer.billing_typeHow the customer is billedinvoice or card
customer.customer_typeIf the customer is a business or a sole individualbusiness
subscription.idThe ID of the subscriptionc15fe43c-94af-4cd2-baa2-1eefc724a03c
subscription.plan_nameThe name of the plancool_plan
subscription.seats_numberThe number of seats for the plan4
subscription.start_dateThe start date of the subscription2025-08-18
subscription.valid_untilThe end date of the subscription2025-09-18

Trial Extended

NameDescriptionExample
customer.idThe ID of the customer6edfd773-6772-4607-b869-4f10622c948b
customer.emailThe email of the customerinvoices@example.org
customer.brandThe brand of the customerdefault
customer.billing_typeHow the customer is billedinvoice or card
customer.customer_typeIf the customer is a business or a sole individualbusiness
subscription.idThe ID of the subscriptionc15fe43c-94af-4cd2-baa2-1eefc724a03c
subscription.plan_nameThe name of the plancool_plan
subscription.seats_numberThe number of seats for the plan4
subscription.start_dateThe start date of the subscription2025-08-18
subscription.valid_untilThe end date of the subscription2025-10-18

Country Tax Threshold Reached

NameDescriptionExample
country.nameThe name of the countryUnited Kingdom
country.codeThe ISO code for the countryGB
country.threshold_amountThe threshold amount for country90,000.00

State Tax Threshold Reached

NameDescriptionExample
country.nameThe name of the countryUnited States Of America
country.codeThe ISO code for the countryUS
state.nameThe name of the stateTexas
state.threshold_amountThe threshold amount for state90,000.00

Example Templates

Here are some example templates you can use as a starting point:

Customer Created

:wave: New customer created!
*Email:* {{customer.email}}
*Billing Type:* {{customer.billing_type}}
*Customer Type:* {{customer.customer_type}}

Payment Processed

:white_check_mark: Payment processed successfully!
*Customer:* {{customer.email}}
*Amount:* {{payment.formatted_amount}}

Payment Failed

:x: Payment failed!
*Customer:* {{customer.email}}
*Amount:* {{payment_attempt.formatted_amount}}

Troubleshooting

If you encounter issues with your Slack integration:

  • Verify that your Webhook URL is correct
  • Ensure your Slack workspace and channel still exist
  • Check that the Slack app has the necessary permissions
  • Test the webhook using a tool like cURL or Postman

For persistent issues, contact BillaBear support with details of the problem you're experiencing.