Установить или отключить wallet PIN
PATCH
/api/v2/user/wallet_pin
const url = 'https://core.example.com/api/v2/user/wallet_pin';const options = { method: 'PATCH', headers: {'session-token': '<session-token>', 'Content-Type': 'application/json'}, body: '{"wallet_pin_enabled":true,"wallet_pin":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Заголовок раздела «Authorizations»Request Bodyrequired
Заголовок раздела «Request Bodyrequired»Media typeapplication/json
object
wallet_pin_enabled
boolean
wallet_pin
string
Examplegenerated
{ "wallet_pin_enabled": true, "wallet_pin": "example"}Responses
Заголовок раздела « Responses »Успешный ответ
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
expiration
string
session
string
key
additional properties
any
object
key
additional properties
any
string
key
additional properties
any
Example
{ "success": false, "status": 403}