curl --request POST \
--url https://api.example.com/cabinet/auth/merge/{merge_token} \
--header 'Content-Type: application/json' \
--data '
{
"keep_subscription_from": 123
}
'{
"success": true,
"access_token": "<string>",
"refresh_token": "<string>",
"user": {
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"telegram_id": 123,
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"email_verified": false,
"balance_kopeks": 0,
"balance_rubles": 0,
"referral_code": "<string>",
"language": "ru",
"auth_type": "telegram"
}
}Execute account merge. Consumes the merge token (one-time use).
curl --request POST \
--url https://api.example.com/cabinet/auth/merge/{merge_token} \
--header 'Content-Type: application/json' \
--data '
{
"keep_subscription_from": 123
}
'{
"success": true,
"access_token": "<string>",
"refresh_token": "<string>",
"user": {
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"telegram_id": 123,
"username": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"email_verified": false,
"balance_kopeks": 0,
"balance_rubles": 0,
"referral_code": "<string>",
"language": "ru",
"auth_type": "telegram"
}
}32 - 64User ID whose subscription to keep