Send any payment event to Slack
- Trigger
- POST /relay
- Lands in
- The relay log, plus any channel you route to
- Setup
- 4 min
- Needs
- Anything that can send an HTTP POST

$49.90 · Apr 27, 8:30 AM
Samuel Chan · Jakarta, ID
- Product
- Pro Plan, monthly
- [email protected]
- Phone
- +62 877 1212 1212
- Source
- pay.myapp.com
Viably matched the customer email to a contact, so this revenue counts toward the channel that won them.
In the Viably dashboard, click New Relay, then Transactions, then Non-Stripe Transactions. Give it a name, pick your Slack channels, and hit Create. You get a Bearer token and relay URL immediately.
After a successful payment in your backend, send a POST to the relay URL with your Bearer token in the Authorization header. Viably formats it and posts to Slack within seconds.
Authorization: Bearer <token> and keep it in an environment variable.Payload reference
POST a flat JSON object to the relay URL. Viably reads the following top-level fields and maps them into a transaction card in Slack. Fields marked required must be present for the message to render correctly and for batch reporting to produce accurate totals.
amount must be an integer in the smallest currency unit, consistent with Stripe and most payment processors. Send 4990 for $49.90. Viably divides by 100 before display and sums raw integers for batch totals and periodic reports, so sending 49.90 makes every revenue figure a hundred times too small.Code examples
Call the relay from your payment success handler, after your payment provider confirms the charge. Keep the token in an environment variable, out of your source code.
channels array to the payload, "channels": ["C0XXXXXXX"]. Viably routes to those channels instead of the endpoint default, as long as the bot is a member.Periodic reporting
Enable Batch Mode on a Non-Stripe Transactions relay to collect events over a configurable window and post them as one summary card. Enable Periodic Reporting to also receive a scheduled revenue digest on a daily or multi-day cadence.
Viably sums the amount values across all events in the batch window and displays a Total Revenue figure.
Up to 20 transactions are shown newest first as swipeable cards. Each card shows amount and submission time as the title, customer name with country flag as the subtitle, and email, phone, city, and product in the body.
When events span more than one time bucket, a sparkline such as ▁▂▄▇█▅▂▁ shows how revenue spreads across buckets. Taller bars mean more revenue in that slot.
A one-day window shows a single date, as in Apr 25. A multi-day window shows a range, as in Apr 19 – Apr 25. All dates are rendered in your workspace’s configured timezone.
Yes. Any provider or backend that can send an HTTP POST works, including Paddle, Lemon Squeezy, Razorpay, processors without a Slack integration, or your own billing code.
A transaction type and an amount are enough to get a card in Slack. Add the customer email and Viably attaches the payment to a contact, so you can attribute the revenue to the channel that won that customer.
Yes. Periodic reporting posts a digest on the schedule you choose, covering what came in and where it came from. It suits teams with a high volume of payments.
No. Viably hosts the endpoint, so your side only sends the POST.
Create a payment relay endpoint. It works with any provider that can send a POST, on the free plan.
Add Viably to Slack