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);
}  
[
    {
        "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

[
    {
        "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);
}