v1

latestOpenAPI 3.1.02026-08-061945115.8 KB
Purchase

Set transaction

Creates a new transaction for an end user of your app in Adapty and provides access level. The transaction created by this method will appear in your analytics and Event Feed and will be sent to all integrations.

Updating an existing subscription: To update billing_issue_detected_at or renew_status_changed_at without generating a new subscription_renewed event, reuse the existing store_transaction_id (under the same store_original_transaction_id). Submitting any new store_transaction_id is treated as a new transaction and fires a subscription_renewed event.

post/api/v2/server-side-api/purchase/set/transaction/

Headers

adapty-customer-user-idstring

The unique ID of the customer in your system. Either adapty-customer-user-id or adapty-profile-id is required.

adapty-profile-idstring

The unique ID of the profile in your system. Your best option if you are working with anonymous profiles. Either adapty-customer-user-id or adapty-profile-id is required.

Request body

OR

Response

Transaction recorded successfully