Connect revenue
RevenueCat
For apps that sell through the App Store and Google Play. Lancelot reads proceeds after store fees and tax.
Connect
- In RevenueCat, open Project settings → API keys → New secret key (V2).
- Give it read access to Customer information and Products only.
- In Lancelot, open Settings → Integrations → RevenueCat and paste your Project ID and the key (it starts with
sk_).
Public app keys (appl_, goog_) are refused: they can't read customer data.
Add the webhook
The webhook tells Lancelot the moment a customer changes, so margins stay current between syncs.
- Lancelot shows a webhook URL and an Authorization header value after you connect. Copy both.
- In RevenueCat, open Integrations → Webhooks → Add.
- Paste the URL, set the Authorization header to the value Lancelot showed, and set Environment to Production.
https://app.lancelot.watch/api/v1/revenuecat/webhook/<your-webhook-id>
Authorization: Bearer <secret shown in Lancelot>Sandbox and test events are ignored.
How customers are matched
The RevenueCat App User ID must be the same ID your app sends to Lancelot as the customer ID. Lancelot also follows RevenueCat's aliases and transfers. Anonymous IDs ($RCAnonymousID:...) are skipped, so identify users in RevenueCat before they buy.
Sync schedule
- On every webhook.
- Every 30 minutes for recent changes.
- A full pass once a day.