---
updatedAt: 2026-03-13T17:01:00.000Z
agentTools:
  projectIndex: https://developers.masspay.io/llms.txt
---

# Retrieve all available wallets for a user

This **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`.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "description": "MassPay API",
    "version": "1.0.0",
    "title": "MassPay API",
    "termsOfService": "https://www.masspay.io/terms/",
    "contact": {
      "name": "MassPay",
      "email": "info@masspay.io",
      "url": "https://www.masspay.io"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "tags": [
    {
      "name": "Wallet",
      "description": "Wallet operations for your payment activities."
    }
  ],
  "paths": {
    "/wallet/{user_token}": {
      "get": {
        "tags": [
          "Wallet"
        ],
        "summary": "Retrieve all available wallets for a user",
        "description": "This **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`.",
        "operationId": "getWallet",
        "parameters": [
          {
            "name": "user_token",
            "in": "path",
            "description": "Token representing the user who owns the wallet",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Unique key to prevent duplicate processing",
            "schema": {
              "type": "string"
            }
          },
          {
            "schema": {
              "type": "boolean",
              "default": false,
              "example": "tru"
            },
            "in": "query",
            "name": "client_only",
            "description": "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."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WalletTxnResp"
                  }
                },
                "examples": {
                  "Wallet Response": {
                    "value": [
                      {
                        "user_token": "usr_ba4275f2-bae1-488d-9d6f-20af1cd83574",
                        "token": "usr_wlt_123e4567-e89b-12d3-a456-426614174000",
                        "balance": 100.5,
                        "currency_code": "USD",
                        "type": "USER_FUNDS",
                        "card_type": "VISA",
                        "last_4": "1234",
                        "active": true,
                        "client_paying_fees": true
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error400"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error401"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error403"
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error404"
                }
              }
            }
          },
          "405": {
            "description": "Method Not Allowed.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error405"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error500"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Time-out.",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error504"
                }
              }
            }
          }
        },
        "security": [
          {
            "AUTHORIZER_NAME": []
          },
          {
            "api_key": []
          }
        ]
      },
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "user_token",
          "in": "path",
          "required": true,
          "description": "Token representing the user who owns the wallet"
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{environment}.masspay.io/{VERSION}",
      "description": "MassPay's API server",
      "variables": {
        "VERSION": {
          "default": "v1.0.0",
          "enum": [
            "v1.0.0"
          ]
        },
        "environment": {
          "default": "api",
          "enum": [
            "api",
            "staging-api"
          ]
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "WalletTxnResp": {
        "type": "object",
        "xml": {
          "name": "WalletTxnResp"
        },
        "x-examples": {
          "WalletTxnResp": {
            "user_token": "ba4275f2-bae1-488d-9d6f-20af1cd83574",
            "token": "8bb3693f-2f98-43dd-a990-615b6a21596d",
            "balance": 100.5,
            "currency_code": "USD"
          }
        },
        "x-tags": [
          "Wallet"
        ],
        "properties": {
          "user_token": {
            "type": "string",
            "description": "Token representing the user",
            "example": "usr_ba4275f2-bae1-488d-9d6f-20af1cd83574"
          },
          "token": {
            "type": "string",
            "description": "Token representing the wallet",
            "format": "uuid",
            "example": "123e4567-e89b-12d3-a456-426614174000"
          },
          "balance": {
            "type": "number",
            "format": "",
            "example": 100.5,
            "description": "The wallet's current balance in USD"
          },
          "currency_code": {
            "type": "string",
            "example": "USD",
            "description": "The currency wallet balance is stored in. Using [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format. In most cases this value will be USD"
          },
          "type": {
            "type": "string",
            "description": "Type of wallet. USER_FUNDS and MASSPAY_CARD are user wallets (user_token present); CLIENT_FUNDS and SUBLEDGER_FUNDS are the client's own wallets",
            "enum": [
              "MASSPAY_CARD",
              "USER_FUNDS",
              "CLIENT_FUNDS",
              "SUBLEDGER_FUNDS"
            ],
            "example": "USER_FUNDS"
          },
          "card_type": {
            "type": "string",
            "enum": [
              "MASTERCARD",
              "VISA",
              "AMEX",
              "DISCOVER",
              "UNIONPAY"
            ],
            "example": "VISA",
            "description": "In case type of wallet is MASSPAY_CARD, card_type would be provided with the type of card it is"
          },
          "last_4": {
            "type": "string",
            "example": "1234",
            "description": "In case type of wallet is MASSPAY_CARD, last_4 would be provided with the last four digits of the card"
          },
          "active": {
            "type": "boolean",
            "description": "An indicator whether the wallet is active. If inactive, can still retrieve historical transactions history"
          },
          "client_paying_fees": {
            "type": "boolean",
            "description": "An indicator whether the fees for payouts using this wallet are paid by the client. If false, the user pays the fees"
          },
          "fee_wallet_token": {
            "type": "string",
            "description": "GET /wallets/{wallet_token} only: your own CLIENT_FUNDS wallet that pays this wallet's fees, when there is one",
            "example": "clnt_wlt_0f4b7d3e-1234-4c8a-9c1e-0a1b2c3d4e5f"
          },
          "wiring_instructions": {
            "type": "object",
            "additionalProperties": true,
            "description": "Deposit (wire / ACH) instructions of the bank account that funds this wallet, present only when they are available: when the wallet's provider - or, for a USER_FUNDS wallet without a provider of its own, your CLIENT_FUNDS wallet in the same currency - is a deposit bank with a known account. **The object is the bank's own record, passed through as the bank returns it, so its keys and vocabulary depend on the bank** and its casing may differ from the rest of this response. <br><br> **Cross River Bank** (routing `021214891`): `accountNumber`, `routingNumber`, `accountType`, `title` (the account title, normally your business name), `currency` (lowercase ISO 4217, for example `usd`) and `status`. Cross River's `status` values are `Active`, `Inactive`, `Dormant`, `Escheat` and `Closed`; an account in normal use is `Active`, contact support if you see anything else. Its `accountType` values are `Deposit`, `GeneralLedger`, `CreditCard`, `StoredValue`, `Wallet` and `Unknown`; a MassPay funding account is `Deposit`. <br><br> **Other banks** return wire details only: Fortress `accountNumber`, `routingNumber`, `receiverName`, `receiverAddress`, `receiverBankName`, `receiverBankAddress`, `swiftCode`; Braid `AccountNumber`, `RoutingNumber`; Zenus `AccountNumber`; Stride Bank and Metropolitan Commercial Bank `account_number`, `routing_number`, `bank_name`, `address`, `city`, `state`, `zip`; My EU Pay `viban`, `swift`, `bank_name`, `address`, `city`, `country`, `zip`. <br><br> Treat every value as display text for your payer. Do not branch on `status` or `accountType` beyond checking Cross River's `Active`.",
            "example": {
              "accountNumber": "2010001234",
              "routingNumber": "021214891",
              "accountType": "Deposit",
              "title": "Acme Corp",
              "currency": "usd",
              "status": "Active"
            }
          }
        },
        "required": [
          "user_token",
          "token",
          "balance",
          "currency_code",
          "type",
          "active"
        ],
        "title": ""
      },
      "Error400": {
        "description": "Bad request.",
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Bad request."
            ],
            "example": "Bad request."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The request was invalid or malformed. Please ensure that the request body conforms to the required format and that all required parameters are included."
            ],
            "example": "The request was invalid or malformed. Please ensure that the request body conforms to the required format and that all required parameters are included."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              400
            ],
            "example": 400
          },
          "error": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "example": "Error initiating payout",
                "description": "Reason for error"
              },
              "details": {
                "type": "array",
                "description": "Specific details of the cause of the error",
                "items": {
                  "type": "string",
                  "example": "Source amount cannot be $0"
                }
              }
            }
          }
        },
        "required": [
          "message",
          "code"
        ]
      },
      "Error401": {
        "description": "Unauthorized.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Unauthorized."
            ],
            "example": "Unauthorized."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "Authentication failed or credentials were not provided. Please ensure that you have provided valid API credentials and that they are authorized to access the MassPay API."
            ],
            "example": "Authentication failed or credentials were not provided. Please ensure that you have provided valid API credentials and that they are authorized to access the MassPay API."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              401
            ],
            "example": 401
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error403": {
        "description": "Forbidden.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Forbidden."
            ],
            "example": "Forbidden."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The requested action is not allowed or the API credentials do not have sufficient permissions. Please ensure that the API credentials used for the request have the necessary permissions to perform the requested action."
            ],
            "example": "The requested action is not allowed or the API credentials do not have sufficient permissions. Please ensure that the API credentials used for the request have the necessary permissions to perform the requested action."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              403
            ],
            "example": 403
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error404": {
        "description": "Not found.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Not found."
            ],
            "example": "Not found."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The requested resource was not found. Please ensure that the URL for the request is correct and that the requested resource exists."
            ],
            "example": "The requested resource was not found. Please ensure that the URL for the request is correct and that the requested resource exists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              404
            ],
            "example": 404
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error405": {
        "description": "Method not allowed.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Method not allowed."
            ],
            "example": "Method not allowed."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The HTTP method used for the request is not supported by the MassPay API. Please ensure that you are using the correct HTTP method (e.g., POST) for the specific MassPay API endpoint."
            ],
            "example": "The HTTP method used for the request is not supported by the MassPay API. Please ensure that you are using the correct HTTP method (e.g., POST) for the specific MassPay API endpoint."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              405
            ],
            "example": 405
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error500": {
        "description": "Internal server error",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Internal server error."
            ],
            "example": "Internal server error."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "An unexpected error occurred on the server-side while processing the request. Please try again later or contact support if the issue persists."
            ],
            "example": "An unexpected error occurred on the server-side while processing the request. Please try again later or contact support if the issue persists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              500
            ],
            "example": 500
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      },
      "Error504": {
        "description": "Gateway Time-out.",
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Error title.",
            "enum": [
              "Gateway Time-out."
            ],
            "example": "Gateway Time-out."
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "enum": [
              "The request timed out while waiting for a response from the server. Please try again later or contact support if the issue persists."
            ],
            "example": "The request timed out while waiting for a response from the server. Please try again later or contact support if the issue persists."
          },
          "code": {
            "type": "integer",
            "description": "Error code.",
            "enum": [
              500
            ],
            "example": 500
          }
        },
        "additionalProperties": false,
        "required": [
          "error",
          "message",
          "code"
        ]
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      },
      "AUTHORIZER_NAME": {
        "name": "Authorization",
        "in": "header",
        "type": "apiKey"
      }
    }
  }
}
```