Skip to main content
GET
/
v2.01
/
{ClientId}
/
users
/
{UserId}
/
emoney
/
{Year}
/
{Month}
<?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';
    $year = 2023;
    $month = 6;

    $response = $api->Users->GetEMoney($userId, $year, $month);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
{
    "UserId": "156671912",
    "CreditedEMoney": {
        "Currency": "EUR",
        "Amount": 2900
    },
    "DebitedEMoney": {
        "Currency": "EUR",
        "Amount": 1000
    }
}  

Documentation Index

Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt

Use this file to discover all available pages before exploring further.

The path parameters Month and Year are optional. If not given, this call returns all the credited and debited e-money since the user was created.

Path parameters

UserId
string
required
The unique identifier of the user.
Year
string
Format: “YYYY” (e.g., “2019”)The year by which to filter the returned values.
Month
string
Format: “MM” (e.g., “03”)The month by which to filter the returned values.

Body parameters

Currency
string
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 wallets for which to return the values for credited and debited e-money.

Responses

200

UserId
string
The unique identifier of the user.
CreditedEMoney
object
Information about the pay-ins and transfers credited to wallets owned by the user.
DebitedEMoney
object
Information about the payouts debited from wallets owned by the user.
{
    "UserId": "156671912",
    "CreditedEMoney": {
        "Currency": "EUR",
        "Amount": 2900
    },
    "DebitedEMoney": {
        "Currency": "EUR",
        "Amount": 1000
    }
}  
<?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';
    $year = 2023;
    $month = 6;

    $response = $api->Users->GetEMoney($userId, $year, $month);

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