Перейти к содержимому

Установить или отключить wallet PIN

PATCH
/api/v2/user/wallet_pin
curl --request PATCH \
--url https://core.example.com/api/v2/user/wallet_pin \
--header 'Content-Type: application/json' \
--header 'session-token: <session-token>' \
--data '{ "wallet_pin_enabled": true, "wallet_pin": "example" }'
Media typeapplication/json
object
wallet_pin_enabled
boolean
wallet_pin
string
nullable
Examplegenerated
{
"wallet_pin_enabled": true,
"wallet_pin": "example"
}

Успешный ответ

Media typeapplication/json
object
success
required
boolean
status
required
integer
key
additional properties
any
Example
{
"success": true,
"status": 200
}

Ошибка авторизации, валидации или бизнес-правила

Media typeapplication/json
object
success
required
boolean
status
required
integer
errors
required
One of:
Array<object>
object
code
string
kind
string
nullable
expiration
string
nullable
session
string
nullable
key
additional properties
any
key
additional properties
any
Example
{
"success": false,
"status": 403
}