GET
/
v2.01
/
{ClientId}
/
clients
/
wallets
/
{FundsType}
<?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/';

//To get only Fees Wallets
try {
    $fundsType = \MangoPay\FundsType::FEES;
    $response = $api->Clients->GetWallets($fundsType);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}

// To only get Credit Wallets 
try {
    $fundsType = \MangoPay\FundsType::CREDIT
    $response = $api->Clients->GetWallets($fundsType);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
[
    {
        "Balance": {
            "Currency": "EUR",
            "Amount": 1027
        },
        "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.

Responses

[
    {
        "Balance": {
            "Currency": "EUR",
            "Amount": 1027
        },
        "Currency": "EUR",
        "FundsType": "FEES",
        "Id": "FEES_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/';

//To get only Fees Wallets
try {
    $fundsType = \MangoPay\FundsType::FEES;
    $response = $api->Clients->GetWallets($fundsType);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}

// To only get Credit Wallets 
try {
    $fundsType = \MangoPay\FundsType::CREDIT
    $response = $api->Clients->GetWallets($fundsType);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}