Submit data for a PayPal PayIn
Changed onProvide transaction data to PayPal prior to initiating a pay-in (read guide).
<Note icon="fa-regular fa-circle-info"> **Note – Data to submit depends on industry**The request body parameters described below are required for all marketplace businesses.
Additional data points are required for platforms operating in the following industries:
- Events and ticketing
- Online travel agents:
- Car rentals
- Hotels
- Transportation
- Travel packages
- Retail and groceries
- Cruise lines
- Buy online, pick up in store (BOPIS)
- Crypto
Before integrating this endpoint, platforms operating in the verticals above need to contact Mangopay <a href="https://hub.mangopay.com/" target="_blank">via the Dashboard</a>. </Note>
The DataCollectionId returned in the response must be sent on the associated pay-in call for both one-time and recurring payments:
- POST Create a PayPal PayIn
- POST Create a Recurring PayPal PayIn with the CIT payload
- POST Create a Recurring PayPal PayIn with the MIT payload
Each PayPal pay-in or preauth requires a new DataCollectionId. The property is not returned on the pay-in endpoints.
Request
- Base URLhttps://api.sandbox.mangopay.com
- URLhttps://api.sandbox.mangopay.com/v2.01/{ClientId}/payins/payment-methods/paypal/data-collection
- AuthHTTP bearer
Path parameters
Platform's API account identifier, associated with the API key.
Request body
Response
Success
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
oauth2was added to the API
- warning
- info
api operation id
submit_data_paypal_payinremoved and replaced withpaypal_submit_data_paypal_payin
- info