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 = 'wt_ec4590a3-3ef0-40ef-a6df-945c84729726';

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

    print_r($response);
} catch(MGPResponseException $e) {
    print_r($e);
} catch(MGPException $e) {
    print_r($e);
}  
{
    "Id":"149625824",
    "Tag":"Custom description for this specific PayIn",
    "CreationDate":1661159886,
    "AuthorId":"146476890",
    "CreditedUserId":"146476890",
    "DebitedFunds":{
        "Currency":"EUR",
        "Amount":4500
    },
    "CreditedFunds":{
        "Currency":"EUR",
        "Amount":4455
    },
    "Fees":{
        "Currency":"EUR",
        "Amount":45
    },
    "Status":"SUCCEEDED",
    "ResultCode":"000000",
    "ResultMessage":"Success",
    "ExecutionDate":1661159887,
    "Type":"PAYIN",
    "Nature":"REGULAR",
    "CreditedWalletId":"148968396",
    "DebitedWalletId":null,
    "PaymentType":"CARD",
    "ExecutionType":"DIRECT",
    "SecureMode":"DEFAULT",
    "CardId":"149334067",
    "SecureModeReturnURL":null,
    "SecureModeRedirectURL":null,
    "SecureModeNeeded":false,
    "Culture":"EN",
    "SecurityInfo":{
        "AVSResult":"NO_CHECK"
    },
    "StatementDescriptor":"Mar2016",
    "BrowserInfo":null,
    "IpAddress":"2001:0620:0000:0000:0211:24FF:FE80:C12C",
    "Billing":{
        "FirstName":"Nat",
        "LastName":"Doe",
        "Address":{
            "AddressLine1":"Rue des plantes",
            "AddressLine2":"The Oasis",
            "City":"Paris",
            "Region":"Ile de France",
            "PostalCode":"75001",
            "Country":"FR"
        }
    },
    "Shipping":{
        "FirstName":"Nat",
        "LastName":"Doe",
        "Address":{
            "AddressLine1":"4 Oasis street",
            "AddressLine2":"The Oasis",
            "City":"Paris",
            "Region":"Ile de France",
            "PostalCode":"75001",
            "Country":"FR"
        }
    },
    "Requested3DSVersion":null,
    "Applied3DSVersion":null,
    "RecurringPayinRegistrationId":null,
    "PreferredCardNetwork":null,
    "PaymentCategory":"ECommerce",
    "CardInfo": {
        "BIN": "497010",
        "IssuingBank": "LA BANQUE POSTALE",
        "IssuerCountryCode": "MA",
        "Type": "CREDIT",
        "Brand": "VISA",
        "SubType": 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