- Gateway API
- Overview
- Sync API
- Async API
- Merchant API
- Card API
- Overview
- Payment Cards
- Overview
- Dictionaries
- Bulk issue
- Issue card
- Issue plastic card
- Activate card
- Block card
- Unblock card
- Set PIN
- Reset PIN counter
- Close card
- Update client
- Card info
- Balance
- Secret data
- Statement
- Statement extended
- Create client
- Edit client
- Сards' list
- Request' status
- Create transaction
- Clearing transaction
- Refund transaction
- Transaction request' status
- Transaction info
- Gift Cards
- Partner API
- Rates
- Products
- E-Money
- Freedom ID
- IMTS "Leskar"
- Mobile SDK
- CMS
Token refresh
PATCH
https://passport.freedompay.kz/api/v1/oauth/token
access_token
using a refresh_token
.access_token
has expired, the application can use the refresh_token
to request a new set of tokens.Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://passport.freedompay.kz/api/v1/oauth/token'
Responses
🟢200Success
application/json
Body
id
string <uuid>
required
access_token
string <[a-zA-Z0-9]{128}>
required
client_access_token
.refresh_token
string <[a-zA-Z0-9]{128}>
required
access_expire_at
string <Datetime:ISO-8601>
required
refresh_expire_at
string <Datetime:ISO-8601>
required
Example
{
"id": "01953bd1-a6d3-739e-8aa3-83e881f09055",
"access_token": "2gcd8ucjoyay6MCpFYwjx0XJz7kxrUOcPRtEEFbPh3UjFfOT6kqC2Emssi9XDKF9bk9BrHz6vqoKX1Ig82gsBf89xeWJ339gaRGYbYNLP59JQBsUz0G8yMv8Re8vR5Eh",
"refresh_token": "atH8ha6yqPJUOiRqyAuDbkPuDUKRqgsUJmIkJQoAI6T36SaTs4Af9pBy8XxuxiOShAB91taqmEmPiVXf3MP8lTqSs9EawvqdbAGx7xW5BZTaFZjRpoAyQWXttwUbPZgQ",
"access_expire_at": "2025-03-04T06:35:50.000000Z",
"refresh_expire_at": "2025-03-25T06:35:50.000000Z"
}
Modified at 2025-02-25 06:37:49