Intents
Create an Intent
Declare a transaction authorization processed by a third-party PSP
POST
This endpoint allows you to declare a payment authorized by a third-party PSP. OnceDocumentation Index
Fetch the complete documentation index at: https://docs.mangopay.com/llms.txt
Use this file to discover all available pages before exploring further.
AUTHORIZED (as shown by the Status in the response), the Intent’s LineItems can be:
- Captured using POST Create an Intent Capture
- Canceled using POST Cancel an Intent
LineItems to an existing Intent by sending the same ExternalData.ExternalProviderReference as the existing Intent.
In a hybrid flow, where the ExternalProviderName is Mangopay, you can define the LineItems.SplitOriginWalletId in the Intent, otherwise it must be defined on POST Create an Intent Split.
Body parameters
The full amount authorized in the Intent, which must equal the sum of the total amounts of all
LineItems.The currency of the intent.
The amount of fees to be diverted to the platform’s Fees Wallet when the Intent is split. This value can be overridden when the Split is created.The
PlatformFees value must the sum of all line item Seller.FeesAmount values.Information about the transaction authorization processed by the third-party PSP.
Information about the buyer.
Information about the items purchased in the transaction.The sum of all line item amounts must equal the Intent
Amount value. The total for each line items is calculated as ((UnitAmount x Quantity) - DiscountAmount), which is shown in the TotalLineItemAmount returned. The TaxAmount is indicative and included in the UnitAmount.The sum of all line item Seller.FeesAmount values must equal the Intent PlatformFees value.Responses
200 - Response parameters
200 - Response parameters
The unique identifier of the intent.
The full amount authorized in the Intent, which must equal the sum of the total amounts of all
LineItems.The remaining amount of the Intent that can be split and transferred to the sellers’ wallets.
The amount needing to be settled to the Platform’s escrow wallet before the Intent Splits can be executed.
The currency of the intent.
The amount of fees to be diverted to the platform’s Fees Wallet when the Intent is split. This value can be overridden when the Split is created.The
PlatformFees value must the sum of all line item Seller.FeesAmount values.The status of the Intent, as declared by the platform through Intent Captures, Refunds (and reversals), or Disputes (and decisions). Where partial actions occur, the top-level Intent
Status may differ from the Status of Intent LineItems.Intent Status values:AUTHORIZED– The IntentAmountwas authorized for acquisition by the PSP and can be captured or canceled.PARTIALLY_CAPTURED– Part of the IntentAmountfrom one or moreLineItemswas captured. The other parts are either still available for capture or cancel.CAPTURED– All of the IntentAmountwas captured. Part of it may have been subsequently refunded or disputed.CANCELLED– All of the IntentAmountwas canceled.REFUNDED– All of theCapturedAmountof allLineItemswas refunded.REFUND_REVERSED– The refund could not be completed and the funds were returned to the platform.DISPUTED– All of theCapturedAmountof allLineItemswas disputed.DEFENDED– The dispute is being defended by the platform.DISPUTED_WON– The dispute was resolved in favor of the platform.DISPUTED_LOST– The dispute was resolved against the platform.
The possible next actions on the intent.
Information about the transaction authorization processed by the third-party PSP.
Information about the buyer.
Information about the items purchased in the transaction.The sum of all line item amounts must equal the Intent
Amount value. The total for each line items is calculated as ((UnitAmount x Quantity) - DiscountAmount), which is shown in the TotalLineItemAmount returned. The TaxAmount is indicative and included in the UnitAmount.The sum of all line item Seller.FeesAmount values must equal the Intent PlatformFees value.The date and time at which the Intent was created.
The date and time at which the Intent moved to
AUTHORIZED.400 - Intent Amount must equal sum of line items'
400 - Intent Amount must equal sum of line items'
400 - LineItems.Seller.WalletId currency must match Intent Currency
400 - LineItems.Seller.WalletId currency must match Intent Currency
400 - SplitOriginWalletId not available third-party acquirers
400 - SplitOriginWalletId not available third-party acquirers