cURL
curl --request POST \ --url https://api.qonversion.io/v3/users/{user_id}/purchases \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "currency": "USD", "price": "12.99", "stripe_store_data": { "subscription_id": "sub_123e4567", "product_id": "prod_123e4567" } } '
{ "currency": "USD", "price": "12.99", "purchased": 1653458781, "stripe_store_data": { "subscription_id": "sub_123e4567", "product_id": "prod_123e4567" } }
Creates a Stripe purchase for a user.
Use your Project Key from the Qonversion dashboard. Example: Bearer test_PV77YHL7qnGvsdmpTs7gimsxUvY-Znl2
Bearer test_PV77YHL7qnGvsdmpTs7gimsxUvY-Znl2
Qonversion User ID
Three-letter ISO 4217 currency code
Monetary amount
Show child attributes
Purchase created
"USD"
"12.99"
Unix epoch seconds of the transaction
1653458781