<?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 {
$bankAccountId = '198982485';
$response = $api->BankAccounts->GetTransactions($bankAccountId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print($e);
}
[
{
"Id":"155249846",
"Tag":"Created using MANGOPAY API Collection Postman",
"CreationDate":1667471665,
"AuthorId":"146476890",
"CreditedUserId":null,
"DebitedFunds":{
"Currency":"EUR",
"Amount":1000
},
"CreditedFunds":{
"Currency":"EUR",
"Amount":990
},
"Fees":{
"Currency":"EUR",
"Amount":10
},
"Status":"SUCCEEDED",
"ResultCode":"000000",
"ResultMessage":"Success",
"ExecutionDate":1667471665,
"Type":"PAYOUT",
"Nature":"REGULAR",
"CreditedWalletId":null,
"DebitedWalletId":"148968396"
},
{
"Id":"155250949",
"Tag":"Created using MANGOPAY API Collection Postman",
"CreationDate":1667471872,
"AuthorId":"146476890",
"CreditedUserId":null,
"DebitedFunds":{
"Currency":"EUR",
"Amount":16000
},
"CreditedFunds":{
"Currency":"EUR",
"Amount":15990
},
"Fees":{
"Currency":"EUR",
"Amount":10
},
"Status":"FAILED",
"ResultCode":"001001",
"ResultMessage":"Unsufficient wallet balance",
"ExecutionDate":null,
"Type":"PAYOUT",
"Nature":"REGULAR",
"CreditedWalletId":null,
"DebitedWalletId":"148968396"
}
]
<?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 {
$bankAccountId = '198982485';
$response = $api->BankAccounts->GetTransactions($bankAccountId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print($e);
}
[
{
"Id":"155249846",
"Tag":"Created using MANGOPAY API Collection Postman",
"CreationDate":1667471665,
"AuthorId":"146476890",
"CreditedUserId":null,
"DebitedFunds":{
"Currency":"EUR",
"Amount":1000
},
"CreditedFunds":{
"Currency":"EUR",
"Amount":990
},
"Fees":{
"Currency":"EUR",
"Amount":10
},
"Status":"SUCCEEDED",
"ResultCode":"000000",
"ResultMessage":"Success",
"ExecutionDate":1667471665,
"Type":"PAYOUT",
"Nature":"REGULAR",
"CreditedWalletId":null,
"DebitedWalletId":"148968396"
},
{
"Id":"155250949",
"Tag":"Created using MANGOPAY API Collection Postman",
"CreationDate":1667471872,
"AuthorId":"146476890",
"CreditedUserId":null,
"DebitedFunds":{
"Currency":"EUR",
"Amount":16000
},
"CreditedFunds":{
"Currency":"EUR",
"Amount":15990
},
"Fees":{
"Currency":"EUR",
"Amount":10
},
"Status":"FAILED",
"ResultCode":"001001",
"ResultMessage":"Unsufficient wallet balance",
"ExecutionDate":null,
"Type":"PAYOUT",
"Nature":"REGULAR",
"CreditedWalletId":null,
"DebitedWalletId":"148968396"
}
]
CREATED, SUCCEEDED, FAILEDThe status of the transaction. You can filter on multiple values by separating them with a comma.CreationDate parameter). You can filter on a specific time range by using both the AfterDate and BeforeDate query parameters.CreationDate parameter). You can filter on a specific time range by using both the AfterDate and BeforeDate query parameters.PAYIN, TRANSFER, CONVERSION, PAYOUTThe type of the transaction. You can filter on multiple values by separating them with a comma.REGULAR, REPUDIATION, REFUND, SETTLEMENTThe nature of the transaction, providing more information about the context in which the transaction occurred. You can filter on multiple values by separating them with a comma.200 - Payouts-only example
Show properties
Show properties
Show properties
1260 whereas JPY 12 would be represented as just 12).During a conversion, (DebitedFunds.Amount - Fees) * MarketRate = CreditedFunds.Amount. CreditedFunds = DebitedFunds - Fees).Show properties
1260 whereas JPY 12 would be represented as just 12).Show properties
1260 whereas JPY 12 would be represented as just 12).CREATED, SUCCEEDED, FAILEDThe status of the transaction.SUCCEEDED, indicating that the transaction occurred. The statuses CREATED and FAILED return an ExecutionDate of null.REGULAR, REPUDIATION, REFUND, SETTLEMENTThe nature of the transaction, providing more information about the context in which the transaction occurred:REGULAR – Relative to most of the transactions (pay-ins, payouts, and transfers) in a usual workflow.REPUDIATION – Automatic withdrawal of funds from the platform’s repudiation wallet as part of the dispute process (when the user has requested a chargeback).REFUND – Reimbursement of a transaction to the user (pay-in refund), to a wallet (transfer refund), or of a payout (payout refund, only initiated by Mangopay).SETTLEMENT – Transfer made to the repudiation wallet by the platform to settle a lost dispute.
[
{
"Id":"155249846",
"Tag":"Created using MANGOPAY API Collection Postman",
"CreationDate":1667471665,
"AuthorId":"146476890",
"CreditedUserId":null,
"DebitedFunds":{
"Currency":"EUR",
"Amount":1000
},
"CreditedFunds":{
"Currency":"EUR",
"Amount":990
},
"Fees":{
"Currency":"EUR",
"Amount":10
},
"Status":"SUCCEEDED",
"ResultCode":"000000",
"ResultMessage":"Success",
"ExecutionDate":1667471665,
"Type":"PAYOUT",
"Nature":"REGULAR",
"CreditedWalletId":null,
"DebitedWalletId":"148968396"
},
{
"Id":"155250949",
"Tag":"Created using MANGOPAY API Collection Postman",
"CreationDate":1667471872,
"AuthorId":"146476890",
"CreditedUserId":null,
"DebitedFunds":{
"Currency":"EUR",
"Amount":16000
},
"CreditedFunds":{
"Currency":"EUR",
"Amount":15990
},
"Fees":{
"Currency":"EUR",
"Amount":10
},
"Status":"FAILED",
"ResultCode":"001001",
"ResultMessage":"Unsufficient wallet balance",
"ExecutionDate":null,
"Type":"PAYOUT",
"Nature":"REGULAR",
"CreditedWalletId":null,
"DebitedWalletId":"148968396"
}
]
<?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 {
$bankAccountId = '198982485';
$response = $api->BankAccounts->GetTransactions($bankAccountId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print($e);
}
Was this page helpful?