Create a purchase
Records a purchase for a user. Stripe and Paddle are the recommended paths when calling this API directly; App Store and Play Store purchases normally flow through the Qonversion SDK and rarely need to be POSTed manually.
Provide exactly one of stripe_store_data, paddle_store_data, app_store_data, or play_store_data.
app_store_data and play_store_data are
accepted for completeness but App Store and Play Store purchases are normally handled
automatically by the Qonversion SDK.Authorizations
Use your Project Key from the Qonversion dashboard (Settings -> Developer -> Keys -> Project key).
Project Keys have no prefix. To create a sandbox user, send "environment": "sandbox" in
the request body of POST /v3/users/{id}.
Example: Bearer JFPATc4VaaWYsfurml3qZ4zsmNw0VfWH
Body
Response
Purchase created
The response echoes whichever store-data variant was provided in the request:
exactly one of stripe_store_data, paddle_store_data, app_store_data, or play_store_data will be present.