Docs › Integrations
REST API
Base URL: https://pay-api.appwind.ai. Authenticate with Authorization: Bearer <key>: an SDK key (appl_…, goog_…) for what an app may do, a secret key (sk_…) for server-only calls. Shapes follow RevenueCat's v1 API.
| Method | Path | Key | What |
|---|---|---|---|
| GET | /v1/subscribers/{app_user_id} |
SDK / secret | Customer info (creates the customer if new) |
| POST | /v1/receipts |
SDK | A purchase from the device: {"app_user_id", "signed_transaction" or "transaction_id"} (Apple) or {"app_user_id", "purchase_token", "product_id", "type": "subs"/"inapp"} (Google) |
| GET | /v1/subscribers/{id}/offerings |
SDK | Offerings with packages and paywalls, after targeting and experiments |
| GET | /v1/subscribers/{id}/flow?placement=onboarding |
SDK | The onboarding flow |
| POST | /v1/subscribers/identify |
SDK | {"app_user_id": "$anon:…", "new_app_user_id": "user_42"} |
| POST | /v1/subscribers/{id}/attributes |
SDK / secret | {"attributes": {"$email": {"value": "a@b.co"}}} |
| POST | /v1/subscribers/{id}/events |
SDK | Paywall and flow events |
| POST | /v1/offers/sign |
SDK | Signature for an Apple promotional offer |
| GET | /v1/customer_center |
SDK | Customer center settings |
| GET | /v1/web/checkout?app_user_id=&product_id= |
SDK | Stripe checkout URL |
| POST | /v1/subscribers/{id}/manage |
SDK | Stripe customer portal URL |
| POST | /v1/subscribers/{id}/entitlements/{ent}/promotional |
secret | Grant: {"duration": "monthly"} or {"days": 30} |
| POST | /v1/subscribers/{id}/entitlements/{ent}/revoke_promotionals |
secret | Remove grants |
| POST | /v1/subscribers/{id}/virtual_currencies/{code} |
secret | {"amount": -20, "reason": "…", "idempotency_key": "…"} |
| DELETE | /v1/subscribers/{id} |
secret | Delete the customer and their data |
Errors: {"code": 400, "message": "…"}. Rate limit: 40 requests per second per IP (bursts of 80) answer 429 beyond that — the SDKs back off and retry.
Health
GET /health — database and storage. GET /health/queues — notification inbox and webhook backlog, last run of each background job; answers 503 when something is late, so an uptime monitor can alert you.