Register Google Play Transaction
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"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
purchase_token: 'opaque-purchase-token-string',
obfuscated_external_account_id: 'user-account-id-hash'
})
};
fetch('https://api.winwinkit.com/users/{app_user_id}/transactions/google-play', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}Transactions
Register Google Play Transaction
Registers the mapping between a user and their Google Play purchaseToken.
POST
/
users
/
{app_user_id}
/
transactions
/
google-play
Register Google Play Transaction
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"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
purchase_token: 'opaque-purchase-token-string',
obfuscated_external_account_id: 'user-account-id-hash'
})
};
fetch('https://api.winwinkit.com/users/{app_user_id}/transactions/google-play', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}{
"errors": [
{
"code": "<string>",
"status": 123,
"message": "<string>",
"source": "<string>"
}
]
}Headers
The API key to authenticate with.
Path Parameters
The app user id of the user.
Body
application/json
Response
The transaction mapping has been registered.