{
"ExternalData": {
"ExternalProcessingDate": 1769431976,
"ExternalProviderReference": "dispute-stripe-1d55ff5f-87d0-4825-a766-52177bbc0a73",
"ExternalMerchantReference": "dispute-order-4d351ba0-3987-408c-b12b-8af412432144",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
}
}
{
"Amount": 10000,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"ExternalData": {
"ExternalProcessingDate": 1769764526,
"ExternalProviderReference": "dispute-stripe-b9e93ae2-36bb-42b6-ad1d-9d34ac14defc",
"ExternalMerchantReference": "dispute-order-a20938bc-2d5a-4eda-98b2-ff2c04a96f64", "ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1621",
"Amount": 10000
}
]
}
// idempotencyKey is null in this example
PayInIntent disputeResult = api.getPayInApi().createPayInIntentDispute(intent.getId(), intent.getCapture().getId(), disputeToBeCreated, null);
await Api.PayIns.CreateFullPayInIntentDisputeAsync(dto, intent.Id, intent.Capture.Id);
await Api.PayIns.CreatePartialPayInIntentDisputeAsync(dto, intent.Id, intent.Capture.Id);
api.PayIns.createPayInIntentDispute(intent.Id, intent.Capture.Id, disputeDto)
_api->PayIns->CreatePayInIntentDispute($intent->Id, $intent->Capture->Id, $disputeDto);
PayInIntent.create_dispute(intent.id, intent.capture.id, **dto)
{
"Id": "int_019c0e2f-1baa-73d9-9053-074ad2a50e79",
"Amount": 20000,
"AvailableAmountToSplit": 0,
"UnfundedAmount": 0,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"Status": "DISPUTED",
"NextActions": "DEFEND, WIN_DISPUTE, LOSE_DISPUTE",
"ExternalData": {
"ExternalProcessingDate": 1769764498,
"ExternalProviderReference": "dispute-stripe-1d55ff5f-87d0-4825-a766-52177bbc0a73",
"ExternalMerchantReference": "dispute-order-4d351ba0-3987-408c-b12b-8af412432144",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"Buyer": {
"Id": "user_m_01KF3087EDXEAK8VPD9DTMZW8N"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-1bab-7443-901b-80d1baf20e46",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
},
{
"Id": "int_li_019c0e2f-1bab-7443-901b-80d1baf20e47",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
}
],
"CreationDate": 1769764494,
"ExecutionDate": 1769764498,
"Dispute": {
"Id": "int_dispute_019c0e2f-2c25-753e-8301-3ff93d541358"
}
}
{
"Id": "int_019c0e2f-8128-709d-8efc-dc930576997e",
"Amount": 20000,
"AvailableAmountToSplit": 10000,
"UnfundedAmount": 0,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"Status": "CAPTURED",
"NextActions": "REFUND, DISPUTE, DEFEND, WIN_DISPUTE, LOSE_DISPUTE",
"ExternalData": {
"ExternalProcessingDate": 1769764526,
"ExternalProviderReference": "dispute-stripe-b9e93ae2-36bb-42b6-ad1d-9d34ac14defc",
"ExternalMerchantReference": "dispute-order-a20938bc-2d5a-4eda-98b2-ff2c04a96f64",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"Buyer": {
"Id": "user_m_01KF3087EDXEAK8VPD9DTMZW8N"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1621",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
},
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1622",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 0,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
}
],
"CreationDate": 1769764520,
"ExecutionDate": 1769764526,
"Dispute": {
"Id": "int_dispute_019c0e2f-980c-76ed-9bd5-c6c00617180c"
}
}
Intents
Create an Intent Dispute
Declare the full or partial dispute of a payment processed by a third-party PSP
POST
/
v3.0
/
{ClientId}
/
payins
/
intents
/
{IntentId}
/
capture
/
{CaptureId}
/
disputes
{
"ExternalData": {
"ExternalProcessingDate": 1769431976,
"ExternalProviderReference": "dispute-stripe-1d55ff5f-87d0-4825-a766-52177bbc0a73",
"ExternalMerchantReference": "dispute-order-4d351ba0-3987-408c-b12b-8af412432144",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
}
}
{
"Amount": 10000,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"ExternalData": {
"ExternalProcessingDate": 1769764526,
"ExternalProviderReference": "dispute-stripe-b9e93ae2-36bb-42b6-ad1d-9d34ac14defc",
"ExternalMerchantReference": "dispute-order-a20938bc-2d5a-4eda-98b2-ff2c04a96f64", "ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1621",
"Amount": 10000
}
]
}
// idempotencyKey is null in this example
PayInIntent disputeResult = api.getPayInApi().createPayInIntentDispute(intent.getId(), intent.getCapture().getId(), disputeToBeCreated, null);
await Api.PayIns.CreateFullPayInIntentDisputeAsync(dto, intent.Id, intent.Capture.Id);
await Api.PayIns.CreatePartialPayInIntentDisputeAsync(dto, intent.Id, intent.Capture.Id);
api.PayIns.createPayInIntentDispute(intent.Id, intent.Capture.Id, disputeDto)
_api->PayIns->CreatePayInIntentDispute($intent->Id, $intent->Capture->Id, $disputeDto);
PayInIntent.create_dispute(intent.id, intent.capture.id, **dto)
{
"Id": "int_019c0e2f-1baa-73d9-9053-074ad2a50e79",
"Amount": 20000,
"AvailableAmountToSplit": 0,
"UnfundedAmount": 0,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"Status": "DISPUTED",
"NextActions": "DEFEND, WIN_DISPUTE, LOSE_DISPUTE",
"ExternalData": {
"ExternalProcessingDate": 1769764498,
"ExternalProviderReference": "dispute-stripe-1d55ff5f-87d0-4825-a766-52177bbc0a73",
"ExternalMerchantReference": "dispute-order-4d351ba0-3987-408c-b12b-8af412432144",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"Buyer": {
"Id": "user_m_01KF3087EDXEAK8VPD9DTMZW8N"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-1bab-7443-901b-80d1baf20e46",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
},
{
"Id": "int_li_019c0e2f-1bab-7443-901b-80d1baf20e47",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
}
],
"CreationDate": 1769764494,
"ExecutionDate": 1769764498,
"Dispute": {
"Id": "int_dispute_019c0e2f-2c25-753e-8301-3ff93d541358"
}
}
{
"Id": "int_019c0e2f-8128-709d-8efc-dc930576997e",
"Amount": 20000,
"AvailableAmountToSplit": 10000,
"UnfundedAmount": 0,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"Status": "CAPTURED",
"NextActions": "REFUND, DISPUTE, DEFEND, WIN_DISPUTE, LOSE_DISPUTE",
"ExternalData": {
"ExternalProcessingDate": 1769764526,
"ExternalProviderReference": "dispute-stripe-b9e93ae2-36bb-42b6-ad1d-9d34ac14defc",
"ExternalMerchantReference": "dispute-order-a20938bc-2d5a-4eda-98b2-ff2c04a96f64",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"Buyer": {
"Id": "user_m_01KF3087EDXEAK8VPD9DTMZW8N"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1621",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
},
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1622",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 0,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
}
],
"CreationDate": 1769764520,
"ExecutionDate": 1769764526,
"Dispute": {
"Id": "int_dispute_019c0e2f-980c-76ed-9bd5-c6c00617180c"
}
}
This endpoint allows you to declare that the Capture of an Intent was subject to a dispute, in full or in part.
Path parameters
string
required
The unique identifier of the Intent.
string
required
The unique identifier of the Capture being disputed.
Body parameters
- Full dispute
- Partial dispute
If you specify only the
ExternalData, then the full amount of all CapturedAmount values for all LineItems are considered disputed. The Status of the Intent becomes DISPUTED.object
required
Information about the dispute processed by the third-party PSP.
Show child attributes
Show child attributes
Unix timestamp
required
The date at which the dispute was created.
string
required
The unique identifier of the capture at the provider level.
string
The unique identifier of the dispute at the merchant level.
string
required
The supported third-party PSP processing the transaction.Note: The uppercase value is expected. The API returns the sentence-case value.
string
One of the supported payment methods used to process the dispute.
If you specify one or more
LineItems objects, then only the specified Amount value of the LineItem.Id you send is considered disputed. The Status of the Intent remains as CAPTURED.integer
required
The amount of the Dispute, required for a partial dispute. The Dispute
Amount must equal the sum of the Amount values disputed for all line items.integer
The currency of the intent.
integer
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.object
required
Information about the dispute processed by the third-party PSP.
Show child attributes
Show child attributes
Unix timestamp
required
The date at which the dispute was created.
string
required
The unique identifier of the capture at the provider level.
string
The unique identifier of the dispute at the merchant level.
string
required
The supported third-party PSP processing the transaction.Note: The uppercase value is expected. The API returns the sentence-case value.
string
One of the supported payment methods used to process the dispute.
Responses
200 - Response parameters
200 - Response parameters
string
The unique identifier of the intent.
integer
The full amount authorized in the Intent, which must equal the sum of the total amounts of all
LineItems.integer
The remaining amount of the Intent that can be split and transferred to the sellers’ wallets.
integer
The amount needing to be settled to the Platform’s technical wallet before the Intent Splits can be executed.
integer
The currency of the intent.
integer
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.string
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.
string
The possible next actions on the intent.
object
Information about the dispute processed by the third-party PSP.
Show child attributes
Show child attributes
Unix timestamp
The date at which the dispute was created.
string
The unique identifier of the dispute at the provider level.
string
The unique identifier of the dispute at the merchant level.
string
The supported third-party PSP processing the transaction.Note: The uppercase value is expected. The API returns the sentence-case value.
string
One of the supported payment methods used to process the dispute.
object
Information about the buyer.
Show child attributes
Show child attributes
string
If it exists, the unique identifier of the Mangopay user making the payment via the third-party PSP. Must be a valid Mangopay
UserId.array (object)
Information about the line items included in the intent action.
Show child attributes
Show child attributes
string
The unique identifier of the line item in Mangopay’s ecosystem.
integer
The total amount of the line item calculated as ((
UnitAmount x Quantity) - DiscountAmount).integer
The item total
CAPTURED amountinteger
The item total
REFUNDED amountinteger
The item total
DISPUTED amount.integer
The item total
COMPLETED amount.integer
The amount needing to be settled to the Platform’s technical wallet before the Intent Splits can be executed for this seller.
string
The date and time at which the Intent was created.
Unix timestamp
The date and time at which the Intent moved to
AUTHORIZED.{
"Id": "int_019c0e2f-1baa-73d9-9053-074ad2a50e79",
"Amount": 20000,
"AvailableAmountToSplit": 0,
"UnfundedAmount": 0,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"Status": "DISPUTED",
"NextActions": "DEFEND, WIN_DISPUTE, LOSE_DISPUTE",
"ExternalData": {
"ExternalProcessingDate": 1769764498,
"ExternalProviderReference": "dispute-stripe-1d55ff5f-87d0-4825-a766-52177bbc0a73",
"ExternalMerchantReference": "dispute-order-4d351ba0-3987-408c-b12b-8af412432144",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"Buyer": {
"Id": "user_m_01KF3087EDXEAK8VPD9DTMZW8N"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-1bab-7443-901b-80d1baf20e46",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
},
{
"Id": "int_li_019c0e2f-1bab-7443-901b-80d1baf20e47",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
}
],
"CreationDate": 1769764494,
"ExecutionDate": 1769764498,
"Dispute": {
"Id": "int_dispute_019c0e2f-2c25-753e-8301-3ff93d541358"
}
}
{
"Id": "int_019c0e2f-8128-709d-8efc-dc930576997e",
"Amount": 20000,
"AvailableAmountToSplit": 10000,
"UnfundedAmount": 0,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"Status": "CAPTURED",
"NextActions": "REFUND, DISPUTE, DEFEND, WIN_DISPUTE, LOSE_DISPUTE",
"ExternalData": {
"ExternalProcessingDate": 1769764526,
"ExternalProviderReference": "dispute-stripe-b9e93ae2-36bb-42b6-ad1d-9d34ac14defc",
"ExternalMerchantReference": "dispute-order-a20938bc-2d5a-4eda-98b2-ff2c04a96f64",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"Buyer": {
"Id": "user_m_01KF3087EDXEAK8VPD9DTMZW8N"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1621",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 10000,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
},
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1622",
"TotalLineItemAmount": 10000,
"CapturedAmount": 10000,
"RefundedAmount": 0,
"DisputedAmount": 0,
"SplitAmount": 0,
"CancelledAmount": 0,
"UnfundedSellerAmount": 0
}
],
"CreationDate": 1769764520,
"ExecutionDate": 1769764526,
"Dispute": {
"Id": "int_dispute_019c0e2f-980c-76ed-9bd5-c6c00617180c"
}
}
{
"ExternalData": {
"ExternalProcessingDate": 1769431976,
"ExternalProviderReference": "dispute-stripe-1d55ff5f-87d0-4825-a766-52177bbc0a73",
"ExternalMerchantReference": "dispute-order-4d351ba0-3987-408c-b12b-8af412432144",
"ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
}
}
{
"Amount": 10000,
"Currency": "EUR",
"PlatformFeesAmount": 0,
"ExternalData": {
"ExternalProcessingDate": 1769764526,
"ExternalProviderReference": "dispute-stripe-b9e93ae2-36bb-42b6-ad1d-9d34ac14defc",
"ExternalMerchantReference": "dispute-order-a20938bc-2d5a-4eda-98b2-ff2c04a96f64", "ExternalProviderName": "Stripe",
"ExternalProviderPaymentMethod": "MASTERCARD"
},
"LineItems": [
{
"Id": "int_li_019c0e2f-8129-7016-b498-1a9fd0fb1621",
"Amount": 10000
}
]
}
// idempotencyKey is null in this example
PayInIntent disputeResult = api.getPayInApi().createPayInIntentDispute(intent.getId(), intent.getCapture().getId(), disputeToBeCreated, null);
await Api.PayIns.CreateFullPayInIntentDisputeAsync(dto, intent.Id, intent.Capture.Id);
await Api.PayIns.CreatePartialPayInIntentDisputeAsync(dto, intent.Id, intent.Capture.Id);
api.PayIns.createPayInIntentDispute(intent.Id, intent.Capture.Id, disputeDto)
_api->PayIns->CreatePayInIntentDispute($intent->Id, $intent->Capture->Id, $disputeDto);
PayInIntent.create_dispute(intent.id, intent.capture.id, **dto)
Was this page helpful?