{
"AuthorId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedWalletId": "wlt_m_01KMD5SMMF7ZXQ8JM0W9DG8WZJ",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"Fees": {
"Currency": "GBP",
"Amount": 0
},
"DepositId": "deposit_wt_05e5e212-fa97-4d67-8c5e-1495eb91d8b4",
"Tag": "Created using Mangopay API Postman Collection"
}
{
"AuthorId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedUserId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedWalletId": "wlt_m_01KMD5SMMF7ZXQ8JM0W9DG8WZJ",
"DepositId": "deposit_wt_05e5e212-fa97-4d67-8c5e-1495eb91d8b4",
"Id": "wt_2d749eb5-90c6-4c3c-9146-bda5ffa65d3f",
"CreationDate": 1774264176,
"ResultCode": "000000",
"ResultMessage": "Success",
"Status": "SUCCEEDED",
"ExecutionDate": 1774264178,
"Type": "PAYIN",
"Nature": "REGULAR",
"PaymentType": "PREAUTHORIZED",
"ExecutionType": "WEB",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"CreditedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"Fees": {
"Currency": "GBP",
"Amount": 0
},
"Tag": "Created using Mangopay API Postman Collection",
"StatementDescriptor": null,
"AuthenticationResult": {
"AuthenticationType": null
}
}
Create a PayPal Preauthorized PayIn
POST
/
v2.01
/
{ClientId}
/
payins
/
deposit-preauthorized
/
direct
/
full-capture
{
"AuthorId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedWalletId": "wlt_m_01KMD5SMMF7ZXQ8JM0W9DG8WZJ",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"Fees": {
"Currency": "GBP",
"Amount": 0
},
"DepositId": "deposit_wt_05e5e212-fa97-4d67-8c5e-1495eb91d8b4",
"Tag": "Created using Mangopay API Postman Collection"
}
{
"AuthorId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedUserId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedWalletId": "wlt_m_01KMD5SMMF7ZXQ8JM0W9DG8WZJ",
"DepositId": "deposit_wt_05e5e212-fa97-4d67-8c5e-1495eb91d8b4",
"Id": "wt_2d749eb5-90c6-4c3c-9146-bda5ffa65d3f",
"CreationDate": 1774264176,
"ResultCode": "000000",
"ResultMessage": "Success",
"Status": "SUCCEEDED",
"ExecutionDate": 1774264178,
"Type": "PAYIN",
"Nature": "REGULAR",
"PaymentType": "PREAUTHORIZED",
"ExecutionType": "WEB",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"CreditedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"Fees": {
"Currency": "GBP",
"Amount": 0
},
"Tag": "Created using Mangopay API Postman Collection",
"StatementDescriptor": null,
"AuthenticationResult": {
"AuthenticationType": null
}
}
This call allows you to capture funds against a
DepositId which was preauthorized using a registered card or a PayPal account. This is indicated by the response PaymentType of the Deposit Preauthorization:
CARD– Single capture possible up to 29.5 days afterPAYPALcard or on a card or a PayPal account (indicated by thePaymentTypeof the Deposit Preauthorization)
Best practice - For PayPal, capture funds within 3 daysPayPal recommends that you capture preauthorized funds within 3 days. This is because the success of the capture is subject to risk and the availability of funds on the card (or other funding instrument) that the user has linked to their PayPal account.
Body parameters
string
required
The unique identifier of the user at the source of the transaction.
string
required
The unique identifier of the credited wallet.
string
required
The unique identifier of the PayPal preauthorization.
object
required
Information about the debited funds.
Show properties
Show properties
string
required
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the funds.
integer
required
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
required
Information about the fees.
Show properties
Show properties
string
required
Allowed values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the fees.
integer
required
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).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.
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
200
200
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.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.string
The unique identifier of the credited wallet.
string
The unique identifier of the deposit preauthorization.
string
Max length: 128 characters (see data formats for details)The unique identifier of the object.
Unix timestamp
The date and time at which the object was created.
string
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
string
The explanation of the result code.
string
Returned values:
CREATED, SUCCEEDED, FAILEDThe status of the transaction.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.string
Returned values:
PAYIN, TRANSFER, CONVERSION, PAYOUTThe type of the transaction.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.
string
Returned values:
CARD, DIRECT_DEBIT, PREAUTHORIZED, BANK_WIREThe type of pay-in.string
Returned values:
WEB, DIRECT, EXTERNAL_INSTRUCTIONThe type of execution for the pay-in.object
Information about the debited funds.
Show properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the funds.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
Information about the credited funds (
CreditedFunds = DebitedFunds - Fees).Show properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the funds.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).object
Information about the fees.
Show properties
Show properties
string
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).The currency of the fees.
integer
An amount of money in the smallest sub-division of the currency (e.g., EUR 12.60 would be represented as
1260 whereas JPY 12 would be represented as just 12).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.
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.
object | null
Information about the authentication result, based on the request made by Mangopay and the decision of the issuer regarding the type of authentication to be enforced (if applicable).
Show properties
Show properties
string | null
Response values:
CHALLENGE, FRICTIONLESS, DIRECT_AUTHORIZATIONThe type of authentication:CHALLENGE– The issuer requested SCA to be enforced (for example, using 3DS).FRICTIONLESS– The transaction was exempted from SCA because an exemption was granted by the issuer.DIRECT_AUTHORIZATION– The transaction was sent to the issuer for authorization without any frictionless or challenge (for example, if SCA doesn’t apply).
null value typically indicates that authentication was not requested (for example, because the request failed before being sent) or a decision was not received.{
"AuthorId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedUserId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedWalletId": "wlt_m_01KMD5SMMF7ZXQ8JM0W9DG8WZJ",
"DepositId": "deposit_wt_05e5e212-fa97-4d67-8c5e-1495eb91d8b4",
"Id": "wt_2d749eb5-90c6-4c3c-9146-bda5ffa65d3f",
"CreationDate": 1774264176,
"ResultCode": "000000",
"ResultMessage": "Success",
"Status": "SUCCEEDED",
"ExecutionDate": 1774264178,
"Type": "PAYIN",
"Nature": "REGULAR",
"PaymentType": "PREAUTHORIZED",
"ExecutionType": "WEB",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"CreditedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"Fees": {
"Currency": "GBP",
"Amount": 0
},
"Tag": "Created using Mangopay API Postman Collection",
"StatementDescriptor": null,
"AuthenticationResult": {
"AuthenticationType": null
}
}
{
"AuthorId": "user_m_01KMD5PX2KPDVQ0C37XR375MPP",
"CreditedWalletId": "wlt_m_01KMD5SMMF7ZXQ8JM0W9DG8WZJ",
"DebitedFunds": {
"Currency": "GBP",
"Amount": 1000
},
"Fees": {
"Currency": "GBP",
"Amount": 0
},
"DepositId": "deposit_wt_05e5e212-fa97-4d67-8c5e-1495eb91d8b4",
"Tag": "Created using Mangopay API Postman Collection"
}
Was this page helpful?