Reveata connects directly to Stripe, Polar and Dodo Payments. Everything else, from in-house invoicing to App Store purchases recorded on your server, goes through the Payments API.
What you get
The same reports as a connected provider: revenue, customers, conversion rate and revenue per visitor on every channel, source, campaign and page, plus the built-in goals billing:trial_started, billing:paid, billing:renewed and billing:refunded. The API sends payments, not subscriptions, so plan changes and cancellations are not produced (subscription goals).
How it works
- Create a website API key in Settings → Developer. Keys start with
dt_site_and only work for their website. Keep it on your server. - When a payment succeeds in your system, post it:
curl -X POST https://reveata.com/api/v1/payments \
-H "Authorization: Bearer $REVEATA_SITE_KEY" \
-H "Content-Type: application/json" \
-d '{"transactionId":"inv_1042","amount":49,"currency":"USD","email":"[email protected]","visitorId":"…"}'- Send refunds the same way with
type: "refund"and theoriginalTransactionId.
The fields that matter for attribution
| Field | Why it matters |
|---|---|
visitorId, sessionId |
From window.reveata.visitorId() / sessionId() at checkout: the strongest match |
userId |
The id you pass to identify |
email |
Matches visitors you identified with the same email |
subscriptionId |
Renewals of the same subscription inherit the first payment's attribution |
type |
new (default), renewal, refund or trial |
transactionId is required and idempotent: sending the same id again does nothing, so retries are safe. amount is in major units, without tax. Unknown fields are rejected, so typos fail loudly. The full schema is in the API reference.
When to use it, and when not
- Use it for your own billing, a provider without an integration, or store purchases you verify on your server.
- Do not use it for payments a connected provider already sends. Two routes for the same sale count it twice.
- For checkouts you cannot change, a thank-you page call such as
reveata('payment', { email })can link a payment from the browser instead (thank-you page payments).