Retrieve all available wallets for a user
Changed onThis GET endpoint is used to retrieve all available wallets for a provided user token. <br> You can use this endpoint to obtain information about the wallets associated with the provided user token. <br> To use this endpoint, you need to provide the user_token as a required parameter in the URL Path. <br> The response will include a JSON array containing details for each wallet including user_token, balance, currency_code.
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.
Path parameters
Token representing the user who owns the wallet
Query parameters
When set to true, the response will include only the wallet balances funded by the client making the API call. Use this to restrict results to balances that were loaded or managed by your client credentials. Default is false, which returns all balances associated with the user, regardless of funding source.
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
- warning
added the new
CLIENT_FUNDSenum value to the/response property for the response status - warning
added the new
SUBLEDGER_FUNDSenum value to the/response property for the response status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning