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

Replace user wallet

Запрос

Blocks old wallet and creates a new one for the same external user.

Безопасность
apiKeyAuth
Путь
walletIdstring, (uuid)обязательный
Телоapplication/json
reasonstring
curl -i -X POST \
  'https://b2b-app.lumowallet.io/_mock/apis/user-wallets/{walletId}/replace' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "reason": "string"
  }'

Ответы

New wallet created

Телоapplication/json
idstring, (uuid)обязательный
companyIdstring, (uuid)обязательный
externalIdstringобязательный
addressstringобязательный
isBlockedbooleanобязательный
blockReasonstring or null
lastUsdtBalancenumberобязательный
lastTrxBalancenumberобязательный
createdAtstring, (date-time)обязательный
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda", "externalId": "string", "address": "string", "isBlocked": true, "blockReason": "string", "lastUsdtBalance": 0, "lastTrxBalance": 0, "createdAt": "2019-08-24T14:15:22Z" }