PHP
NodeJS
Ruby
Java
Python
.NET
<?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
}
}
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
The unique identifier of the user.
Format: “YYYY” (e.g., “2019”)
The year by which to filter the returned values.
Format: “MM” (e.g., “03”)
The month by which to filter the returned values.
Body parameters
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
{
"UserId" : "156671912" ,
"CreditedEMoney" : {
"Currency" : "EUR" ,
"Amount" : 2900
} ,
"DebitedEMoney" : {
"Currency" : "EUR" ,
"Amount" : 1000
}
}
PHP
NodeJS
Ruby
Java
Python
.NET
<?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 ) ;
}