Skip to main content
POST
/
v2.01
/
{ClientId}
/
payins
/
deposit-preauthorized
/
direct
/
full-capture
{
    "AuthorId": "203063430",
    "CreditedWalletId": "203063456",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 20000
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 1000
    },
    "DepositId": "09d21294-f9ac-4797-b2b9-8cc7b4f05f1d",
    "Tag": "Created using Mangopay API Postman Collection"
}  
{
   "AuthorId": "156671912",
   "CreditedUserId": "156671912",
   "CreditedWalletId": "154851912",
   "DepositId": "524a7e9c-cad9-4df7-9fe3-03b8948930fe",
   "Id": "1719d157-5a97-4af3-91b0-7d660b34b21c",
   "CreationDate": 1669137480,
   "ResultCode": "000000",
   "ResultMessage": "Success",
   "Status": "SUCCEEDED",
   "ExecutionDate": 1669137481,
   "Type": "PAYIN",
   "Nature": "REGULAR",
   "PaymentType": "PREAUTHORIZED",
   "ExecutionType": "DIRECT",
   "DebitedFunds": {
       "Currency": "EUR",
       "Amount": 500
   },
   "CreditedFunds": {
       "Currency": "EUR",
       "Amount": 500
   },
   "Fees": {
       "Currency": "EUR",
       "Amount": 0
   },
   "Tag": "custom meta"
}  

Body parameters

AuthorId
string
required
The unique identifier of the user at the source of the transaction.
CreditedWalletId
string
required
The unique identifier of the credited wallet.
DepositId
string
required
The unique identifier of the deposit preauthorization.
DebitedFunds
object
required
Information about the debited funds.
Fees
object
required
Information about the fees.
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.

Responses

AuthorId
string
Default values: The AuthorId of the Deposit Preauthorization object.Returned values: The AuthorId of the Deposit Preauthorization object.The unique identifier of the user at the source of the transaction. On the Deposit Preauthorized PayIn, this parameter returns the same value as the AuthorId of the Deposit Preauthorization object, regardless of the value sent.
CreditedUserId
string
Default value: The AuthorId of the Deposit Preauthorization object.The unique identifier of the user whose wallet is credited. On the Deposit Preauthorized PayIn, this parameter returns the same value as the AuthorId of the Deposit Preauthorization object, regardless of the value sent.
CreditedWalletId
string
The unique identifier of the credited wallet.
DepositId
string
The unique identifier of the deposit preauthorization.
Id
string
Max length: 128 characters (see data formats for details)The unique identifier of the 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.
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.
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.
DebitedFunds
object
Information about the debited funds.
CreditedFunds
object
Information about the credited funds (CreditedFunds = DebitedFunds - Fees).
Fees
object
Information about the fees.
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.
{
    "Message": "CreditedUserExternalId:204069570 must be Equal to authorId:204068024.",
    "Type": "invalid_action",
    "Id": "42ba6af2-75ba-4d2b-92e9-b72650db3787",
    "Date": 1696492277,
    "errors": null
}  
{
   "AuthorId": "156671912",
   "CreditedUserId": "156671912",
   "CreditedWalletId": "154851912",
   "DepositId": "524a7e9c-cad9-4df7-9fe3-03b8948930fe",
   "Id": "1719d157-5a97-4af3-91b0-7d660b34b21c",
   "CreationDate": 1669137480,
   "ResultCode": "000000",
   "ResultMessage": "Success",
   "Status": "SUCCEEDED",
   "ExecutionDate": 1669137481,
   "Type": "PAYIN",
   "Nature": "REGULAR",
   "PaymentType": "PREAUTHORIZED",
   "ExecutionType": "DIRECT",
   "DebitedFunds": {
       "Currency": "EUR",
       "Amount": 500
   },
   "CreditedFunds": {
       "Currency": "EUR",
       "Amount": 500
   },
   "Fees": {
       "Currency": "EUR",
       "Amount": 0
   },
   "Tag": "custom meta"
}  
{
    "AuthorId": "203063430",
    "CreditedWalletId": "203063456",
    "DebitedFunds": {
        "Currency": "EUR",
        "Amount": 20000
    },
    "Fees": {
        "Currency": "EUR",
        "Amount": 1000
    },
    "DepositId": "09d21294-f9ac-4797-b2b9-8cc7b4f05f1d",
    "Tag": "Created using Mangopay API Postman Collection"
}  
I