GET
/
v2.01
/
{ClientId}
/
payins
/
{PayInId}
<?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 {
    $payinId = 'payin_m_01HYG8DRT5FHT1FV44MV9KR1BS';

    $response = $api->PayIns->Get($payinId);

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
{
    "CreditedUserId": "user_m_01HSB23417BFG7YXR7E371JSEA",
    "AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
    "CreditedWalletId": "wlt_m_01HSB6DE1YT1EMTH0K7ASYPG96",
    "DebitedBankAccount": {
        "IBAN": "FR7630004000031234567890143",
        "BIC": "BNPAFRPP",
        "AccountNumber": null,
        "Country": null,
        "OwnerName": "Alex Smith",
        "Type": "IBAN"
    },
    "BankingAliasId": "wltbank_m_01HSB6E769Y3ZBYDJACSP3THGA",
    "Type": "PAYIN",
    "Status": "SUCCEEDED",
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "Nature": "REGULAR",
    "CreationDate": 1710847216,
    "ExecutionDate": 1710847216,
    "WireReference": "Example123",
    "PaymentType": "BANK_WIRE",
    "ExecutionType": "EXTERNAL_INSTRUCTION",
    "DebitedWalletId": null,
    "Fees": {
        "Currency": "EUR",
        "Amount": 0
    },
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 14654
    },
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 14654
    },
    "Id": "payin_m_01HSB71JKJ9FVYZ61D97ZQ1ASR",
    "Tag": null
}

Note – Pay-in data retained for 13 months

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

For more information, see the Data availability periods article.

Path parameters

PayInId
string
required

The unique identifier of the pay-in.

Responses

{
    "CreditedUserId": "user_m_01HSB23417BFG7YXR7E371JSEA",
    "AuthorId": "user_m_01HSB23417BFG7YXR7E371JSEA",
    "CreditedWalletId": "wlt_m_01HSB6DE1YT1EMTH0K7ASYPG96",
    "DebitedBankAccount": {
        "IBAN": "FR7630004000031234567890143",
        "BIC": "BNPAFRPP",
        "AccountNumber": null,
        "Country": null,
        "OwnerName": "Alex Smith",
        "Type": "IBAN"
    },
    "BankingAliasId": "wltbank_m_01HSB6E769Y3ZBYDJACSP3THGA",
    "Type": "PAYIN",
    "Status": "SUCCEEDED",
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "Nature": "REGULAR",
    "CreationDate": 1710847216,
    "ExecutionDate": 1710847216,
    "WireReference": "Example123",
    "PaymentType": "BANK_WIRE",
    "ExecutionType": "EXTERNAL_INSTRUCTION",
    "DebitedWalletId": null,
    "Fees": {
        "Currency": "EUR",
        "Amount": 0
    },
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 14654
    },
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 14654
    },
    "Id": "payin_m_01HSB71JKJ9FVYZ61D97ZQ1ASR",
    "Tag": 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 {
    $payinId = 'payin_m_01HYG8DRT5FHT1FV44MV9KR1BS';

    $response = $api->PayIns->Get($payinId);

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