GET
/
v2.01
/
{ClientId}
/
transfers
/
{TransferId}
<?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 {
    $transferId = '155585643';

    $response = $api->Transfers->Get($transferId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
{
    "Id": "xfer_m_01JHQRDWW1VCBCPGEARD3PB82B",
    "Tag": "Created using the Mangopay API Postman collection",
    "CreationDate": 1658928911,
    "AuthorId": "user_m_01JHQ8H6TES9NX2WN9K3JQHY47",
    "CreditedUserId": "142036728",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 1600
    },
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 1582
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 18
    },
    "Status": "SUCCEEDED",
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "ExecutionDate": 1658928911,
    "Type": "TRANSFER",
    "Nature": "REGULAR",
    "DebitedWalletId": "wlt_m_01JHQRD0WZ1QWKNAMQF93E5M15",
    "CreditedWalletId": "wlt_m_01JHQRDHGY6KY4R5HX0VWCEQZY"
}

Note – Transfer data retained for 13 months

An API call to retrieve a transfer whose CreationDate is older than 13 months may return 404 Not Found.

For more information, see the Data availability periods article.

Path parameters

TransferId
string
required

The unique identifier of the transfer.

Responses

{
    "Id": "xfer_m_01JHQRDWW1VCBCPGEARD3PB82B",
    "Tag": "Created using the Mangopay API Postman collection",
    "CreationDate": 1658928911,
    "AuthorId": "user_m_01JHQ8H6TES9NX2WN9K3JQHY47",
    "CreditedUserId": "142036728",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 1600
    },
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 1582
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 18
    },
    "Status": "SUCCEEDED",
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "ExecutionDate": 1658928911,
    "Type": "TRANSFER",
    "Nature": "REGULAR",
    "DebitedWalletId": "wlt_m_01JHQRD0WZ1QWKNAMQF93E5M15",
    "CreditedWalletId": "wlt_m_01JHQRDHGY6KY4R5HX0VWCEQZY"
}
<?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 {
    $transferId = '155585643';

    $response = $api->Transfers->Get($transferId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}