<?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 {
$mandateId = '194338515';
$response = $api->Mandates->GetTransactions($mandateId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
[
{
"Id": "payin_m_01J0KQ8GCM7SQ9HXQ5N94BDEMK",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1718648848,
"AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"CreditedUserId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 2671
},
"CreditedFunds": {
"Currency": "GBP",
"Amount": 2359
},
"Fees": {
"Currency": "GBP",
"Amount": 312
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1719219718,
"Type": "PAYIN",
"Nature": "REGULAR",
"CreditedWalletId": "wlt_m_01HSJTVB0JKMMHXBEJBV6TMF96",
"DebitedWalletId": null,
"DepositId": null
}
]
<?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 {
$mandateId = '194338515';
$response = $api->Mandates->GetTransactions($mandateId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
[
{
"Id": "payin_m_01J0KQ8GCM7SQ9HXQ5N94BDEMK",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1718648848,
"AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"CreditedUserId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 2671
},
"CreditedFunds": {
"Currency": "GBP",
"Amount": 2359
},
"Fees": {
"Currency": "GBP",
"Amount": 312
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1719219718,
"Type": "PAYIN",
"Nature": "REGULAR",
"CreditedWalletId": "wlt_m_01HSJTVB0JKMMHXBEJBV6TMF96",
"DebitedWalletId": null,
"DepositId": null
}
]
CREATED
, SUCCEEDED
, FAILED
The 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
, PAYOUT
The type of the transaction. You can filter on multiple values by separating them with a comma.REGULAR
, REPUDIATION
, REFUND
, SETTLEMENT
The 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
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
, FAILED
The status of the transaction.SUCCEEDED
, indicating that the transaction occurred. The statuses CREATED
and FAILED
return an ExecutionDate
of null
.REGULAR
, REPUDIATION
, REFUND
, SETTLEMENT
The 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": "payin_m_01J0KQ8GCM7SQ9HXQ5N94BDEMK",
"Tag": "Created using Mangopay API Postman Collection",
"CreationDate": 1718648848,
"AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"CreditedUserId": "user_m_01HSB23417BFG7YXR7E371JSEA",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 2671
},
"CreditedFunds": {
"Currency": "GBP",
"Amount": 2359
},
"Fees": {
"Currency": "GBP",
"Amount": 312
},
"Status": "SUCCEEDED",
"ResultCode": "000000",
"ResultMessage": "Success",
"ExecutionDate": 1719219718,
"Type": "PAYIN",
"Nature": "REGULAR",
"CreditedWalletId": "wlt_m_01HSJTVB0JKMMHXBEJBV6TMF96",
"DebitedWalletId": null,
"DepositId": null
}
]
<?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 {
$mandateId = '194338515';
$response = $api->Mandates->GetTransactions($mandateId);
print_r($response);
} catch(MGPResponseException $e) {
print_r($e);
} catch(MGPException $e) {
print_r($e);
}
Was this page helpful?