POST
/
v2.01
/
{ClientId}
/
payins
/
preauthorized
/
direct
{
    "CreditedWalletId": "204089031",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 2000
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 200
    },
    "PreauthorizationId": "preauth_m_01HYG88W1QWJNNBGJJG0KQGX42"
}  
{
    "Id": "payin_m_01HYG8DRT5FHT1FV44MV9KR1BS",
    "Tag": null,
    "CreationDate": 1716385145,
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "AuthorId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
    "CreditedUserId": "204068024",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 2000
    },
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 1800
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 200
    },
    "Status": "SUCCEEDED",
    "ExecutionDate": 1716385146,
    "Type": "PAYIN",
    "Nature": "REGULAR",
    "CreditedWalletId": "204089031",
    "DebitedWalletId": null,
    "PaymentType": "PREAUTHORIZED",
    "ExecutionType": "DIRECT",
    "PreauthorizationId": "preauth_m_01HYG88W1QWJNNBGJJG0KQGX42"
}

Body parameters

Tag
string
Max. length: 255 charactersCustom data that you can add to this object.
For transactions (pay-in, transfer, payout), you can use this parameter to identify corresponding information regarding the user, transaction, or payment methods on your platform.
AuthorId
string
The unique identifier of the user at the source of the transaction.
CreditedUserId
string
Default value: The unique identifier of the owner of the credited wallet.The unique identifier of the user whose wallet is credited.
DebitedFunds
object
required
Information about the debited funds.
Fees
object
required
Information about the fees taken by the platform for this transaction (and hence transferred to the Fees Wallet).
CreditedWalletId
string
required
The unique identifier of the credited wallet.
PreauthorizationId
string
required
The unique identifier of the preauthorization.

Responses

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.
CreationDate
Unix timestamp
The date and time at which the object was created.
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.
AuthorId
string
The unique identifier of the user at the source of the transaction.
CreditedUserId
string
Default value: The unique identifier of the owner of the credited wallet.The unique identifier of the user whose wallet is credited.
DebitedFunds
object
Information about the debited funds.
CreditedFunds
object
Information about the credited funds (CreditedFunds = DebitedFunds - Fees).
Fees
object
Information about the fees taken by the platform for this transaction (and hence transferred to the Fees Wallet).
Status
string
Returned values: CREATED, SUCCEEDED, FAILEDThe status of the transaction.
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.
Type
string
Returned values: PAYIN, TRANSFER, CONVERSION, PAYOUTThe type of the transaction.
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.
CreditedWalletId
string
The unique identifier of the credited wallet.
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.
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.
PreauthorizationId
string
The unique identifier of the preauthorization.
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.
CreationDate
Unix timestamp
The date and time at which the object was created.
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.
AuthorId
string
The unique identifier of the user at the source of the transaction.
CreditedUserId
string
Default value: The unique identifier of the owner of the credited wallet.The unique identifier of the user whose wallet is credited.
DebitedFunds
object
Information about the debited funds.
CreditedFunds
object
Information about the credited funds (CreditedFunds = DebitedFunds - Fees).
Fees
object
Information about the fees taken by the platform for this transaction (and hence transferred to the Fees Wallet).
Status
string
Returned values: CREATED, SUCCEEDED, FAILEDThe status of the transaction.
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.
Type
string
Returned values: PAYIN, TRANSFER, CONVERSION, PAYOUTThe type of the transaction.
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.
CreditedWalletId
string
The unique identifier of the credited wallet.
DebitedWalletId
string
The unique identifier of the debited wallet.
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.
PreauthorizationId
string
The unique identifier of the preauthorization.
{
   "Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
   "Type": "param_error",
   "Id": "b6a5ae0d-7dc9-479a-86bd-55b0d40dccec#1669116785",
   "Date": 1669116786,
   "errors": {
       "Status": "The PreAuthorization Status value has to be up to SUCCEEDED"
   }
}  
{
    "Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
    "Type": "param_error",
    "Id": "2a6b5503-551b-4a66-a7f4-3ae4d6efc91f",
    "Date": 1716385561.0,
    "errors": {
        "PaymentStatus": "The PreAuthorization PaymentStatus value has to be WAITING"
    }
}
{
    "Id": "payin_m_01HYG8DRT5FHT1FV44MV9KR1BS",
    "Tag": null,
    "CreationDate": 1716385145,
    "ResultCode": "000000",
    "ResultMessage": "Success",
    "AuthorId": "user_m_01HSDQD2RPPQ8NMM36EDGYBMEY",
    "CreditedUserId": "204068024",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 2000
    },
    "CreditedFunds": {
        "Currency": "EUR",
        "Amount": 1800
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 200
    },
    "Status": "SUCCEEDED",
    "ExecutionDate": 1716385146,
    "Type": "PAYIN",
    "Nature": "REGULAR",
    "CreditedWalletId": "204089031",
    "DebitedWalletId": null,
    "PaymentType": "PREAUTHORIZED",
    "ExecutionType": "DIRECT",
    "PreauthorizationId": "preauth_m_01HYG88W1QWJNNBGJJG0KQGX42"
}
{
    "CreditedWalletId": "204089031",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 2000
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 200
    },
    "PreauthorizationId": "preauth_m_01HYG88W1QWJNNBGJJG0KQGX42"
}