Wallet details
Changed onThis GET endpoint is used to retrieve a single wallet by its wallet_token: your own client wallet (clnt_wlt_ token, type CLIENT_FUNDS) or a wallet of one of your users (usr_wlt_ / mp_card_ token, type USER_FUNDS / MASSPAY_CARD). <br> The response is the same wallet object GET /wallet/{user_token} lists: type tells whether it is a client or a user wallet, user_token is present for user wallets only, balance and currency_code give the current balance, client_paying_fees / fee_wallet_token describe who pays the wallet's fees, card_type / last_4 are returned for card wallets and wiring_instructions when deposit instructions are available for the wallet. <br> A wallet that does not exist or does not belong to your account answers 404.
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Unique key to prevent duplicate processing
Response
Successful operation.
Example response
{
"user_token": "usr_ba4275f2-bae1-488d-9d6f-20af1cd83574",
"token": "123e4567-e89b-12d3-a456-426614174000",
"balance": 100.5,
"currency_code": "USD",
"type": "USER_FUNDS",
"card_type": "VISA",
"last_4": "1234",
"fee_wallet_token": "clnt_wlt_0f4b7d3e-1234-4c8a-9c1e-0a1b2c3d4e5f",
"wiring_instructions": {
"accountNumber": "2010001234",
"routingNumber": "021214891",
"accountType": "Deposit",
"title": "Acme Corp",
"currency": "usd",
"status": "Active"
}
}Changes
- info
endpoint added
- info