When to use this endpoint
- You have a Stripe integration and process payments on the web
- After receiving a successful payment from Stripe, you send the purchase details to Qonversion
- Qonversion then grants the appropriate entitlements and tracks the revenue
Purchase object
| Field | Type | Description |
|---|---|---|
user_id | string | Qonversion User ID |
currency | string | Three-letter ISO 4217 currency code (e.g., USD) |
price | string | Monetary amount (e.g., "12.99") |
purchased | integer | Transaction timestamp (Unix epoch seconds) |
stripe_store_data | object | Stripe subscription and product IDs |
Available endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /users/{user_id}/purchases | Record a Stripe purchase |
Authentication
Requires a Secret Key (sk_ prefix) in the Authorization header.