GET
/
v2.01
/
{ClientId}
/
clients
/
wallets
/
{FundsType}
/
{Currency}
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
    clientId: 'your-client-id',
    clientApiKey: 'your-api-key',
})

let myWallet = {
  FundsType: 'FEES',
  Currency: 'EUR',
}

const viewClientWallet = async (fundsType, currency) => {
  return await mangopay.Clients.getClientWallet(fundsType, currency)
    .then((response) => {
      console.info(response)
      return response
    })
    .catch((err) => {
      console.log(err)
      return false
    })
}

viewClientWallet(myWallet.FundsType, myWallet.Currency)  
{
    "Balance": {
        "Currency": "EUR",
        "Amount": 2027
    },
    "Currency": "EUR",
    "FundsType": "FEES",
    "Id": "FEES_EUR",
    "Tag": null,
    "CreationDate": 1658926202
}  

Path parameters

FundsType
string
required

Allowed values: FEES, CREDIT

The type of funds in the Client Wallet:

  • FEES – Fees Wallet, for fees collected by the platform, specific to the Client Wallet object.
  • CREDIT – Repudiation Wallet, for funds for the platform’s dispute management, specific to the Client Wallet object.

Note: The Fees Wallet and Repudiation Wallet are created automatically by Mangopay for each currency.

Currency
string
required

Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).

The currency of the wallet.

Responses

{
    "Balance": {
        "Currency": "EUR",
        "Amount": 2027
    },
    "Currency": "EUR",
    "FundsType": "FEES",
    "Id": "FEES_EUR",
    "Tag": null,
    "CreationDate": 1658926202
}  
const mangopayInstance = require('mangopay2-nodejs-sdk')
const mangopay = new mangopayInstance({
    clientId: 'your-client-id',
    clientApiKey: 'your-api-key',
})

let myWallet = {
  FundsType: 'FEES',
  Currency: 'EUR',
}

const viewClientWallet = async (fundsType, currency) => {
  return await mangopay.Clients.getClientWallet(fundsType, currency)
    .then((response) => {
      console.info(response)
      return response
    })
    .catch((err) => {
      console.log(err)
      return false
    })
}

viewClientWallet(myWallet.FundsType, myWallet.Currency)