GET
/
v2.01
/
{ClientId}
/
users
/
{UserId}
/
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 {
    $userId = '146476890';

    $response = $api->Users->GetWallets($userId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
[
    {
        "Description": "Description of the user's wallet",
        "Owners": [
            "user_m_01J18HZSACR1EMYNY1TBS8KTJD"
        ],
        "Id": "wlt_m_01J18J1SQGG6KXNM3F8GD674TP",
        "Balance": {
            "Currency": "EUR",
            "Amount": 99800
        },
        "Currency": "EUR",
        "FundsType": "DEFAULT",
        "Tag": "Created using Mangopay API Postman Collection",
        "CreationDate": 1719348029
    },
    {
        "Description": "Description of the user's wallet",
        "Owners": [
            "user_m_01J18HZSACR1EMYNY1TBS8KTJD"
        ],
        "Id": "wlt_m_01J6EN9X1Q0PGM0CJ9QD197CRG",
        "Balance": {
            "Currency": "GBP",
            "Amount": 0
        },
        "Currency": "GBP",
        "FundsType": "DEFAULT",
        "Tag": "Created using Mangopay API Postman Collection",
        "CreationDate": 1724921476
    }
]

Path parameters

UserId
string
required

The unique identifier of the user.

Responses

[
    {
        "Description": "Description of the user's wallet",
        "Owners": [
            "user_m_01J18HZSACR1EMYNY1TBS8KTJD"
        ],
        "Id": "wlt_m_01J18J1SQGG6KXNM3F8GD674TP",
        "Balance": {
            "Currency": "EUR",
            "Amount": 99800
        },
        "Currency": "EUR",
        "FundsType": "DEFAULT",
        "Tag": "Created using Mangopay API Postman Collection",
        "CreationDate": 1719348029
    },
    {
        "Description": "Description of the user's wallet",
        "Owners": [
            "user_m_01J18HZSACR1EMYNY1TBS8KTJD"
        ],
        "Id": "wlt_m_01J6EN9X1Q0PGM0CJ9QD197CRG",
        "Balance": {
            "Currency": "GBP",
            "Amount": 0
        },
        "Currency": "GBP",
        "FundsType": "DEFAULT",
        "Tag": "Created using Mangopay API Postman Collection",
        "CreationDate": 1724921476
    }
]
<?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 {
    $userId = '146476890';

    $response = $api->Users->GetWallets($userId);

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