Register App Store Transaction
curl --request POST \
--url https://api.winwinkit.com/users/{app_user_id}/transactions/app-store \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"original_transaction_id": "2000000123456789",
"app_account_token": "550e8400-e29b-41d4-a716-446655440000"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
original_transaction_id: '2000000123456789',
app_account_token: '550e8400-e29b-41d4-a716-446655440000'
})
};
fetch('https://api.winwinkit.com/users/{app_user_id}/transactions/app-store', 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 App Store Transaction
Registers the mapping between a user and their Apple originalTransactionId.
POST
/
users
/
{app_user_id}
/
transactions
/
app-store
Register App Store Transaction
curl --request POST \
--url https://api.winwinkit.com/users/{app_user_id}/transactions/app-store \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"original_transaction_id": "2000000123456789",
"app_account_token": "550e8400-e29b-41d4-a716-446655440000"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
original_transaction_id: '2000000123456789',
app_account_token: '550e8400-e29b-41d4-a716-446655440000'
})
};
fetch('https://api.winwinkit.com/users/{app_user_id}/transactions/app-store', 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.