Страница авторизации партнерского сервиса
Authorization: Basic base64encode("{CLIENT_ID}:{CLIENT_SECRET}")
{
"redirect_uri": "https://example.com/login",
"grants": [
"read.email",
"read.phone",
"read.date_of_birth",
"read.firstname",
"read.lastname",
"read.gender",
"read.nationality",
"read.profile",
"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": [
"The Grants field is required."
]
}
}
}
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: Beareer {client_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"
}
Authorization: Beareer {client_access_token}
{
"request_id": "UUID",
"created_at": "2024-10-17T12:00:00Z"
}
{
"request_id": "string",
"status": "accepted",
"freedom_id": "UUID"
}
Authorization: Beareer {client_access_token}
{
"request_id": "string"
}
{
"request_id": "string",
"status": "completed",
"freedom_id": "UUID",
"profile": {
...
},
"datetime": "2024-10-17T12:10:00Z"
}