The Intent object
The Intent object represents the declaration of a payment authorization made via a third-party PSP.
Read more about Mangopay Echo →
Attributes
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 technical 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.
Untitled
The date at which the transaction authorization was created.
The unique identifier of the transaction at the provider level.
The unique identifier of the transaction at the merchant level.
The supported third-party PSP processing the transaction.
Note: The uppercase value is expected. The API returns the sentence-case value.
One of the supported payment methods used to process the transaction.
Information about the buyer.
Untitled
If it exists, the unique identifier of the Mangopay user making the payment via the third-party PSP. Must be a valid Mangopay UserId.
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.
Untitled
Information about the seller of the line item.
Untitled
The unique identifier of the seller of the line item.
Required if WalletId not sent.
The unique identifier of the wallet to credit the seller’s funds.
Required if AuthorId not sent.
The amount of fees that will be diverted to the platform’s Fees Wallet when the Intent is split. This value can be overridden when the Split is created.
The future date when the funds are to be automatically transferred to the seller’s wallet.
The unique identifier of the line item in Mangopay’s ecosystem.
The stock keeping unit (SKU) or other unique identifier of the item.
The name of the item.
The description of the item.
The number of units in the line item.
The cost of each unit, including TaxAmount and excluding DiscountAmount.
The amount of the UnitAmount which is tax.
The amount of discount applied to the line item.
The category of the item, as defined by the platform.
Information about the shipping address.
Untitled
The first line of the address.
The second line of the address.
The city of the address
The region of the address.
The postal code of the address
The country of the address
The item total CAPTURED amount
The item total REFUNDED amount
The item total DISPUTED amount.
The item total COMPLETED amount.
The item total CANCELLED amount.
The total amount of the line item calculated as ((UnitAmount x Quantity) - DiscountAmount).
The amount needing to be settled to the Platform’s technical wallet before the Intent Splits can be executed for this seller.
The unique identifier of the wallet from which the split will be debited.
This parameter is required for Intents where ExternalProviderName is Mangopay. If it is not defined in the Intent it must be defined at Split creation.
The date and time at which the Intent was created.
The date and time at which the Intent moved to AUTHORIZED.
Information about the amounts captured against the Intent.
Untitled
The unique identifier of the Capture.
The amount of the Capture.
The status of the Intent Capture:
CAPTURED– The funds have been acquired by the third-party PSP and are expected on the technical wallet.SETTLED_NOT_PAID– The transaction was included in a settlement file successfully uploaded by the platform using the POST Create a Settlement endpoint.PAID– The funds were received on the platform’s technical wallet.
Information about the line items in the Capture.
Untitled
The unique identifier of the line item.
The amount of the line item.
The date and time at which the Capture was created.
The date at which the object was successfully moved to CAPTURED.
Information about the Refunds created against the Intent.
Untitled
The unique identifier of the Refund.
The amount of the Refund.
The status of the Intent Refund:
REFUNDED– The funds were subject to a refund are not expected on the technical wallet.REFUND_REVERSED– The refund could not be completed: the funds were returned to the platform and are expected on the technical wallet.
Information about the line items in the Refund.
Untitled
The unique identifier of the line item.
The amount of the line item.
The date and time at which the Refund was created.
The date at which the object was successfully moved to REFUNDED.
Information about the Disputes created against against the Intent.
Untitled
The unique identifier of the Dispute.
The amount of the Dispute.
The status of the Intent Dispute:
NEEDS_RESPONSE– The outcome of the dispute has not been declared by the platform.DEFENDED– The dispute is being defended and the funds may have been returned to the platform temporarily, but they are not expected on the technical wallet.DISPUTED_WON– The dispute was resolved in favor of the platform and the funds are expected on the technical wallet.DISPUTED_LOST– The dispute was ruled against the platform and the funds were returned to the user.
Information about the line items in the Dispute.
Untitled
The unique identifier of the line item.
The amount of the line item.
The date and time at which the Dispute was created.
The date at which the object was successfully moved to DISPUTED.
Information about the Splits created against the Intent.
Untitled
The unique identifier of the Split.
The amount of the Split.
The status of the Split:
CREATEDPENDING_FUNDS_RECEPTIONAVAILABLEPENDINGCOMPLETEDREJECTEDFAILEDREVERSEDREFUND_SPLIT_PENDINGREFUND_SPLIT_REJECTEDREFUND_SPLIT_COMPLETED
Information about the line items in the Split.
Untitled
The unique identifier of the line item.
The amount split for the line item.
The date and time at which the Split was created.
The date at which the object was successfully moved to CREATED.
The unique identifier of the Settlement(s) linked to this Intent, if successfully created by uploading a settlement file to POST Create a Settlement.