GET
/
v2.01
/
{ClientId}
/
mandates
/
{MandateId}
/
transactions
<?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
    }
]
This call returns direct-debit pay-ins made against a given mandate.

Path parameters

MandateId
string
required
The unique identifier of the mandate.

Query parameters

Status
string
Allowed values: CREATED, SUCCEEDED, FAILEDThe status of the transaction. You can filter on multiple values by separating them with a comma.
ResultCode
string
The code indicating the result of the operation. You can filter on multiple values by separating them with a comma.
BeforeDate
Unix timestamp
The date before which the transaction was created (based on the transaction’s CreationDate parameter). You can filter on a specific time range by using both the AfterDate and BeforeDate query parameters.
AfterDate
Unix timestamp
The date after which the transaction was created (based on the transaction’s CreationDate parameter). You can filter on a specific time range by using both the AfterDate and BeforeDate query parameters.
Type
string
Allowed values: PAYIN, TRANSFER, CONVERSION, PAYOUTThe type of the transaction. You can filter on multiple values by separating them with a comma.
Nature
string
Allowed values: 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.

Responses

[
     {
        "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);
}