Authorization: Basic base64encode("{CLIENT_ID}:{CLIENT_SECRET}")
{
"redirect_uri": "https://example.com/login?error_code=100102",
"grants": [
"read.email",
"read.phone",
"read.date_of_birth",
"read.firstname",
"read.lastname",
"read.gender",
"read.nationality",
"read.country"
]
}
{
"redirect_uri": "<https://passport.freedompay.kz/login?track_id=ac22c50c-22c7-4aeb-9160-e59b735f9c44&expire_at=1727246098>"
}
{
"error": {
"message": "Error validating transmitted data.",
"errors": {
"grants.3": [
"The selected grants.3 is invalid."
]
}
}
}
Authorization: Basic base64encode("{CLIENT_ID}:{CLIENT_SECRET}")
{
"authorization_code": "your_authorization_code"
}
{
"access_token": "your_access_token",
"refresh_token": "your_refresh_token",
"access_expire_at": "2024-10-02T10:52:21.000000Z",
"refresh_expire_at": "2024-10-25T10:52:21.000000Z"
}
{
"error": {
"message": "Invalid authorization_code.",
"code": 100101
}
}
Authorization: Bearer access_token
{
"id": "user_id",
"firstname": "user_firstname",
"lastname": "user_lastname",
"date_of_birth": "user_date_of_birth",
...
}
Authorization: Bearer refresh_token
{
"access_token": "new_access_token",
"refresh_token": "new_refresh_token",
"access_expire_at": "new_expiration_time",
"refresh_expire_at": "new_expiration_time"
}