<?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
}
]
200
The list of Client Wallets.
Show properties
The Client Wallet object created by MANGOPAY.
Show properties
The current balance of the wallet.
Show properties
Returned 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 balance.
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
Returned 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 wallet.
Returned values: DEFAULT
, FEES
, CREDIT
The type of funds in the wallet:
DEFAULT
– Regular funds for user-owned wallets. Wallets with this FundsType
cannot have a negative balance.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.
The unique identifier of the wallet.
In the specific case of the Client Wallet object, this value has the format FundsType
_Currency
(e.g., FEES_EUR
).
Max. length: 255 characters
Custom data that you can add to this object.
For wallets, you can use this parameter to identify the corresponding end user in your platform.
The date and time at which the wallet was created.
[
{
"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);
}
Was this page helpful?
<?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
}
]
<?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
}
]
200
The list of Client Wallets.
Show properties
The Client Wallet object created by MANGOPAY.
Show properties
The current balance of the wallet.
Show properties
Returned 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 balance.
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as 1260
whereas JPY 12 would be represented as just 12
).
Returned 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 wallet.
Returned values: DEFAULT
, FEES
, CREDIT
The type of funds in the wallet:
DEFAULT
– Regular funds for user-owned wallets. Wallets with this FundsType
cannot have a negative balance.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.
The unique identifier of the wallet.
In the specific case of the Client Wallet object, this value has the format FundsType
_Currency
(e.g., FEES_EUR
).
Max. length: 255 characters
Custom data that you can add to this object.
For wallets, you can use this parameter to identify the corresponding end user in your platform.
The date and time at which the wallet was created.
[
{
"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);
}
Was this page helpful?
<?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
}
]