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);
}  
{
    "Id": "payin_m_01J9C36G3DYBNZEHVZ5HC7WB5D",
    "CreationDate": 1728056606,
    "AuthorId": "user_m_01J8SY95DQ5CM7DH43NQCAS65T",
    "CreditedUserId": "user_m_01J8SY95DQ5CM7DH43NQCAS65T",
    "Status":"CREATED",
    "ExecutionDate": null,
    "ChargeDate": null,
    "Type": "PAYIN",
    "Nature": "REGULAR",
    "CreditedWalletId": "wlt_m_01J6EN9X1Q0PGM0CJ9QD197CRG",
    "DebitedWalletId": null,
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 1188
    },
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 1200
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 12
    },
    "ResultCode": null,
    "ResultMessage": null,
    "PaymentType": "DIRECT_DEBIT",
    "ExecutionType": "DIRECT",
    "Tag": "Created using Mangopay API Postman Collection",
    "MandateId": "mdt_m_01J999B9HSEDH9CZDEXXYZGHEZ",
    "StatementDescriptor": "Example123"
}

Path parameters

PayInId
string
required

The unique identifier of the pay-in.

Responses

{
    "Id": "payin_m_01J9C36G3DYBNZEHVZ5HC7WB5D",
    "CreationDate": 1728056606,
    "AuthorId": "user_m_01J8SY95DQ5CM7DH43NQCAS65T",
    "CreditedUserId": "user_m_01J8SY95DQ5CM7DH43NQCAS65T",
    "Status":"CREATED",
    "ExecutionDate": null,
    "ChargeDate": null,
    "Type": "PAYIN",
    "Nature": "REGULAR",
    "CreditedWalletId": "wlt_m_01J6EN9X1Q0PGM0CJ9QD197CRG",
    "DebitedWalletId": null,
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 1188
    },
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 1200
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 12
    },
    "ResultCode": null,
    "ResultMessage": null,
    "PaymentType": "DIRECT_DEBIT",
    "ExecutionType": "DIRECT",
    "Tag": "Created using Mangopay API Postman Collection",
    "MandateId": "mdt_m_01J999B9HSEDH9CZDEXXYZGHEZ",
    "StatementDescriptor": "Example123"
}
<?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);
}