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 monthsAn 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
string
Default value: The unique identifier of the owner of the credited wallet.The unique identifier of the user whose wallet is credited.
AuthorId
string
The unique identifier of the user at the source of the transaction.
CreditedWalletId
string
The unique identifier of the credited wallet.
DebitedBankAccount
object
Information about the debited bank account.Note: This information may only be available for EU IBANs.
BankingAliasId
string
The unique identifier of the banking alias.
Type
string
Returned values: PAYIN, TRANSFER, CONVERSION, PAYOUTThe type of the transaction.
Status
string
Returned values: CREATED, SUCCEEDED, FAILEDThe status of the transaction.
ResultCode
string
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
ResultMessage
string
The explanation of the result code.
Nature
string
Returned values: REGULAR, REPUDIATION, REFUND, SETTLEMENTThe nature of the transaction, providing more information about the context in which the transaction occurred:
  • REGULAR – Relative to most of the transactions (pay-ins, payouts, and transfers) in a usual workflow.
  • REPUDIATION – Automatic withdrawal of funds from the platform’s repudiation wallet as part of the dispute process (when the user has requested a chargeback).
  • REFUND – Reimbursement of a transaction to the user (pay-in refund), to a wallet (transfer refund), or of a payout (payout refund, only initiated by Mangopay).
  • SETTLEMENT – Transfer made to the repudiation wallet by the platform to settle a lost dispute.
CreationDate
Unix timestamp
The date and time at which the object was created.
ExecutionDate
Unix timestamp
The date and time at which the status changed to SUCCEEDED, indicating that the transaction occurred. The statuses CREATED and FAILED return an ExecutionDate of null.
WireReference
string
The reference of the bank wire received on the virtual IBAN, as provided by the user. If no reference was provided, then this value is null.
PaymentType
string
Returned values: CARD, DIRECT_DEBIT, PREAUTHORIZED, BANK_WIREThe type of pay-in.
ExecutionType
string
Returned values: WEB, DIRECT, EXTERNAL_INSTRUCTIONThe type of execution for the pay-in.
DebitedWalletId
string
The unique identifier of the debited wallet.In the case of a pay-in, this value is always null since there is no debited wallet.
Fees
object
Information about the fees taken by the platform for this transaction (and hence transferred to the Fees Wallet).
DebitedFunds
object
Information about the debited funds.
CreditedFunds
object
Information about the credited funds (CreditedFunds = DebitedFunds - Fees).
Id
string
Max length: 128 characters (see data formats for details)The unique identifier of the object.
Tag
string
Max. length: 255 charactersCustom data that you can add to this object.
{
    "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);
}