cURL
curl --request POST \ --url https://api.winwinkit.com/users/{app_user_id}/transactions/google-play \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data ' { "purchase_token": "opaque-purchase-token-string", "obfuscated_external_account_id": "user-account-id-hash" } '
{ "errors": [ { "code": "<string>", "status": 123, "message": "<string>", "source": "<string>" } ] }
Registers the mapping between a user and their Google Play purchaseToken.
The API key to authenticate with.
The app user id of the user.
Google Play's purchaseToken from the purchase flow.
"opaque-purchase-token-string"
Set in BillingFlowParams.setObfuscatedAccountId() — used for better matching.
"user-account-id-hash"
The transaction mapping has been registered.