Payments
RevenueCat Webhooks
In-app subscriptions for iOS, Android and web. Receive purchase, renewal, cancellation, billing-issue and expiration events for your app's subscribers.
Connecting RevenueCat to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into RevenueCat. Then:
- 1In RevenueCat, open your project → Integrations → Webhooks and add a new webhook
- 2Paste your Hookbase ingest URL as the webhook URL
- 3Turn on "HMAC webhook signing" and paste the secret it shows into this Hookbase source (RevenueCat shows it only once)
- 4Hookbase verifies the signature and its timestamp (5 minute window; RevenueCat re-signs every retry), deduplicates retries by event.id, and uses event.type as the event type
Signature verification
Set the source's provider to revenuecat and paste the signing secret. Every request is checked before the event is stored, and anything that fails is rejected rather than quietly recorded.
- Algorithm
- HMAC-SHA256 of "{t}.{body}", hex-encoded, sent as "t=<unix seconds>,v1=<hex>"
- Header
- X-RevenueCat-Webhook-Signature
- Where to find the secret
- Project → Integrations → Webhooks → your webhook → turn on "HMAC webhook signing". RevenueCat shows the secret once, at creation or rotation. Without signing turned on, deliveries are unsigned.
RevenueCat event types
10 of the events people route most often. Hookbase accepts every event RevenueCat sends, whether or not it is listed here.
INITIAL_PURCHASE
A customer started a new subscription
RENEWAL
A subscription renewed, or a lapsed subscriber resubscribed
CANCELLATION
A subscription or non-renewing purchase was cancelled or refunded
UNCANCELLATION
A cancelled subscription was re-enabled before it expired
NON_RENEWING_PURCHASE
A customer made a one-time purchase
EXPIRATION
A subscription expired and access was removed
BILLING_ISSUE
The store could not charge the subscriber
PRODUCT_CHANGE
A subscriber changed products
TRANSFER
Purchases moved from one app user to another
TEST
A test event sent from the RevenueCat dashboard
What a RevenueCat webhook looks like
A INITIAL_PURCHASE payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"api_version": "1.0",
"event": {
"app_user_id": "yourCustomerAppUserID",
"environment": "PRODUCTION",
"event_timestamp_ms": 1591121855319,
"id": "UniqueIdentifierOfEvent",
"product_id": "onemonth_no_trial",
"store": "APP_STORE",
"type": "INITIAL_PURCHASE"
}
}Start receiving RevenueCat webhooks
Create a source, paste the URL into RevenueCat, and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free