- Overview
- 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
- Secret data V2
- 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
- Transfer
- Device ID
Update user
PUT
https://api.freedompay.kz/api/v1/oauth/user
When updating user data, it is necessary to take into account that in this case the phone number and email address must be unique values in the system.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
freedom_id
string <uuid>
required
phone
string
optional
Example:
+1234567890
Match pattern:
^\+\d{10,15}$
email
string <email>
optional
firstname
string
optional
Examples:
JohnJane
lastname
string
optional
Example:
Doe
date_of_birth
string <Y-m-d>
optional
Example:
2000-01-01
identifier
string
optional
Example:
123456789
country
string
optional
>= 3 characters<= 3 characters
Examples:
KAZRUS
Match pattern:
^[A-Z]{3}$
gender
string
optional
>= 1 characters<= 1 characters
Examples:
MF
Match pattern:
^(M|F)$
nationality
string
optional
Example:
citizen of the world
Example
{
"freedom_id": "eeca9287-d824-4f50-928b-450d2e46f874",
"phone": "+1234567890",
"email": "user@example.com",
"firstname": "John",
"lastname": "Doe",
"date_of_birth": "2000-01-01",
"identifier": "123456789",
"country": "KAZ",
"gender": "M",
"nationality": "citizen of the world"
}
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 PUT 'https://api.freedompay.kz/api/v1/oauth/user' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
freedom_id
string <uuid>
required
Example
{
"freedom_id": "eeca9287-d824-4f50-928b-450d2e46f874"
}
Modified at 2025-04-22 06:53:33