<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$response = $api->Clients->GetWallets();
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
const listClientWallets = async () => {
return await mangopay.Clients.getClientWallets()
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listClientWallets()
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-client-id'
client.client_apiKey = 'your-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def listClientWallets()
begin
response = MangoPay::Client.fetch_wallets()
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to fetch client wallets: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
listClientWallets()
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mangopay.MangoPayApi;
import com.mangopay.core.Money;
import com.mangopay.core.Pagination;
import com.mangopay.core.enumerations.CurrencyIso;
import com.mangopay.core.enumerations.FundsType;
import com.mangopay.entities.Wallet;
public class ListClientWallets {
public static void main(String[] args) throws Exception {
MangoPayApi mangopay = new MangoPayApi();
mangopay.getConfig().setClientId("your-client-id");
mangopay.getConfig().setClientPassword("your-api-key");
List<Wallet> clientWallets = mangopay.getClientApi().getWallets(FundsType.DEFAULT, new Pagination(1, 100));
for (Wallet clientWallet : clientWallets) {
Gson prettyPrint = new GsonBuilder().setPrettyPrinting().create();
String prettyJson = prettyPrint.toJson(updateUbo);
System.out.println(clientWallet);
}
}
}
from pprint import pprint
import mangopay
mangopay.client_id='your-client-id'
mangopay.apikey='your-api-key'
from mangopay.api import APIRequest
handler = APIRequest(sandbox=True)
from mangopay.resources import ClientWallet
client_wallets = ClientWallet.all()
for client_wallet in client_wallets:
pprint(vars(client_wallet))
using MangoPay.SDK;
using MangoPay.SDK.Core.Enumerations;
using MangoPay.SDK.Entities;
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var clientWallets = await api.Clients.GetWalletsAsync(FundsType.DEFAULT, new Pagination(1, 10));
string prettyPrint = JsonConvert.SerializeObject(clientWallets, Formatting.Indented);
Console.WriteLine(prettyPrint);
}
}
[
{
"Balance": {
"Currency": "EUR",
"Amount": 1027
},
"Currency": "EUR",
"FundsType": "FEES",
"Id": "FEES_EUR",
"Tag": null,
"CreationDate": 1658926202
},
{
"Balance": {
"Currency": "EUR",
"Amount": 5000
},
"Currency": "EUR",
"FundsType": "CREDIT",
"Id": "CREDIT_EUR",
"Tag": null,
"CreationDate": 1658926202
}
]
Client wallets
List all Client Wallets
GET
/
v2.01
/
{ClientId}
/
clients
/
wallets
<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$response = $api->Clients->GetWallets();
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
const listClientWallets = async () => {
return await mangopay.Clients.getClientWallets()
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listClientWallets()
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-client-id'
client.client_apiKey = 'your-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def listClientWallets()
begin
response = MangoPay::Client.fetch_wallets()
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to fetch client wallets: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
listClientWallets()
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mangopay.MangoPayApi;
import com.mangopay.core.Money;
import com.mangopay.core.Pagination;
import com.mangopay.core.enumerations.CurrencyIso;
import com.mangopay.core.enumerations.FundsType;
import com.mangopay.entities.Wallet;
public class ListClientWallets {
public static void main(String[] args) throws Exception {
MangoPayApi mangopay = new MangoPayApi();
mangopay.getConfig().setClientId("your-client-id");
mangopay.getConfig().setClientPassword("your-api-key");
List<Wallet> clientWallets = mangopay.getClientApi().getWallets(FundsType.DEFAULT, new Pagination(1, 100));
for (Wallet clientWallet : clientWallets) {
Gson prettyPrint = new GsonBuilder().setPrettyPrinting().create();
String prettyJson = prettyPrint.toJson(updateUbo);
System.out.println(clientWallet);
}
}
}
from pprint import pprint
import mangopay
mangopay.client_id='your-client-id'
mangopay.apikey='your-api-key'
from mangopay.api import APIRequest
handler = APIRequest(sandbox=True)
from mangopay.resources import ClientWallet
client_wallets = ClientWallet.all()
for client_wallet in client_wallets:
pprint(vars(client_wallet))
using MangoPay.SDK;
using MangoPay.SDK.Core.Enumerations;
using MangoPay.SDK.Entities;
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var clientWallets = await api.Clients.GetWalletsAsync(FundsType.DEFAULT, new Pagination(1, 10));
string prettyPrint = JsonConvert.SerializeObject(clientWallets, Formatting.Indented);
Console.WriteLine(prettyPrint);
}
}
[
{
"Balance": {
"Currency": "EUR",
"Amount": 1027
},
"Currency": "EUR",
"FundsType": "FEES",
"Id": "FEES_EUR",
"Tag": null,
"CreationDate": 1658926202
},
{
"Balance": {
"Currency": "EUR",
"Amount": 5000
},
"Currency": "EUR",
"FundsType": "CREDIT",
"Id": "CREDIT_EUR",
"Tag": null,
"CreationDate": 1658926202
}
]
Responses
200
200
array
The list of Client Wallets.
Show properties
Show properties
object
The Client Wallet object created by MANGOPAY.
Show properties
Show properties
object
The current balance of the wallet.
Show properties
Show properties
string
Returned 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 balance.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).string
Returned 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.
string
Returned values:
DEFAULT, FEES, CREDITThe type of funds in the wallet:DEFAULT– Regular funds for user-owned wallets. Wallets with thisFundsTypecannot have a negative balance.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.
string
The unique identifier of the wallet.The
Id of Client Wallet object has the format FundsType_Currency, for example: FEES_EUR, CREDIT_GBP, etc.string
Max. length: 255 charactersCustom data that you can add to this object.
For wallets, you can use this parameter to identify the corresponding end user in your platform.
For wallets, you can use this parameter to identify the corresponding end user in your platform.
Unix timestamp
The date and time at which the wallet was created.
[
{
"Balance": {
"Currency": "EUR",
"Amount": 1027
},
"Currency": "EUR",
"FundsType": "FEES",
"Id": "FEES_EUR",
"Tag": null,
"CreationDate": 1658926202
},
{
"Balance": {
"Currency": "EUR",
"Amount": 5000
},
"Currency": "EUR",
"FundsType": "CREDIT",
"Id": "CREDIT_EUR",
"Tag": null,
"CreationDate": 1658926202
}
]
<?php
require_once 'vendor/autoload.php';
use MangoPay\MangoPayApi;
use MangoPay\Libraries\ResponseException as MGPResponseException;
use MangoPay\Libraries\Exception as MGPException;
$api = new MangoPayApi();
$api->Config->ClientId = 'your-client-id';
$api->Config->ClientPassword = 'your-api-key';
$api->Config->TemporaryFolder = 'tmp/';
try {
$response = $api->Clients->GetWallets();
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
const mangopayInstance = require('mangopay4-nodejs-sdk')
const mangopay = new mangopayInstance({
clientId: 'your-client-id',
clientApiKey: 'your-api-key',
})
const listClientWallets = async () => {
return await mangopay.Clients.getClientWallets()
.then((response) => {
console.info(response)
return response
})
.catch((err) => {
console.log(err)
return false
})
}
listClientWallets()
require 'mangopay'
MangoPay.configure do |client|
client.preproduction = true
client.client_id = 'your-client-id'
client.client_apiKey = 'your-api-key'
client.log_file = File.join(Dir.pwd, 'mangopay.log')
end
def listClientWallets()
begin
response = MangoPay::Client.fetch_wallets()
puts response
return response
rescue MangoPay::ResponseError => error
puts "Failed to fetch client wallets: #{error.message}"
puts "Error details: #{error.details}"
return false
end
end
listClientWallets()
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mangopay.MangoPayApi;
import com.mangopay.core.Money;
import com.mangopay.core.Pagination;
import com.mangopay.core.enumerations.CurrencyIso;
import com.mangopay.core.enumerations.FundsType;
import com.mangopay.entities.Wallet;
public class ListClientWallets {
public static void main(String[] args) throws Exception {
MangoPayApi mangopay = new MangoPayApi();
mangopay.getConfig().setClientId("your-client-id");
mangopay.getConfig().setClientPassword("your-api-key");
List<Wallet> clientWallets = mangopay.getClientApi().getWallets(FundsType.DEFAULT, new Pagination(1, 100));
for (Wallet clientWallet : clientWallets) {
Gson prettyPrint = new GsonBuilder().setPrettyPrinting().create();
String prettyJson = prettyPrint.toJson(updateUbo);
System.out.println(clientWallet);
}
}
}
from pprint import pprint
import mangopay
mangopay.client_id='your-client-id'
mangopay.apikey='your-api-key'
from mangopay.api import APIRequest
handler = APIRequest(sandbox=True)
from mangopay.resources import ClientWallet
client_wallets = ClientWallet.all()
for client_wallet in client_wallets:
pprint(vars(client_wallet))
using MangoPay.SDK;
using MangoPay.SDK.Core.Enumerations;
using MangoPay.SDK.Entities;
using Newtonsoft.Json;
class Program
{
static async Task Main(string[] args)
{
MangoPayApi api = new MangoPayApi();
api.Config.ClientId = "your-client-id";
api.Config.ClientPassword = "your-api-key";
var clientWallets = await api.Clients.GetWalletsAsync(FundsType.DEFAULT, new Pagination(1, 10));
string prettyPrint = JsonConvert.SerializeObject(clientWallets, Formatting.Indented);
Console.WriteLine(prettyPrint);
}
}
Was this page helpful?
⌘I