Custody
Create Wallet Transfer
Moves tokens between two custody wallets of your company and your users.
Request
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | Header | Yes | Bearer <access> obtained from POST /api/token. |
| clientId | Path | Yes | Your client ID, from GET /api/infoClient. |
| userId | Path | Yes | Your client ID or the ID of one of your users (from GET /api/b2b2b/{clientId}/users). The user must be approved. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| asset | string | Yes | Token to transfer, e.g. USDC. |
| walletOriginId | uuid | Yes | Origin custody wallet. |
| walletDestinationId | uuid | Yes | Destination custody wallet. |
| amountSent | number | Yes | Amount to transfer, greater than 0. |
Both wallets must be accepted, belong to your company or your users, hold the same token and be on the same network. The origin must have enough balance.
Response
The transfer: id, status (pending), symbolTypeSent, symbolTypeReceived, amountSent, amountReceived, walletOriginId, walletDestinationId, originUserId, destinationUserId, walletTransferType (transfer) and registerDate.
Errors
| Status | When |
|---|---|
| 400 | Invalid body, wallets not accepted or on different networks, or insufficient balance. |
| 401 | Missing or invalid token. |
POST
Create Wallet Transfer
Authorizations
Access token from POST /api/token (valid 5 minutes).
Response
200 - application/json
OK