Skip to navigation

Submit a dispute with a simulated outcome

Available only where livemode is false (a Sandbox platform, or any platform outside production), on card programs with a test issuer connection. Requires disputes:write and simulations:write. A live platform in production and live credentials are refused.

Submits the draft exactly as POST /disputes/{disputeId}/submit does and has the test issuer decide it as WON or LOST. The response is the dispute as submission leaves it. The decision arrives as the issuer reports any decision, which updates the dispute, posts any dispute credit and sends its dispute events; on some card programs this happens within the request and the response already shows it. Retries, recovery and adoption of a dispute filed outside the API behave as for submission. If the issuer files the dispute but refuses the simulated decision, the dispute stays submitted and the request returns PROVIDER_REJECTED.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Path parameters

disputeIdstringRequiredformat: "uuid"
Dispute ID.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Idempotency-KeystringRequiredformat: "^(?:[!#-~][!-~]{0,254}|"[!#-\[\]-~]{1,255}")$"1-257 characters

Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with Idempotent-Replayed: true; the same key with a different request is refused with IDEMPOTENCY_KEY_REUSED. A key can be used again 30 days after its operation completes.

Request

This endpoint expects an object.
outcomeenumRequired
The decision the test issuer gives the dispute.
Allowed values:

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Response

The submitted dispute. Its decision arrives as a dispute update.
idstringformat: "uuid"
Dispute ID.
object"dispute"

Always dispute.

livemodeboolean

true on a live platform in production, false on a Sandbox platform and outside production.

accountHolderIdstringformat: "uuid"
Account holder that owns the card.
transactionIdstringformat: "uuid"
The disputed card purchase.
statusenum

DRAFT: not sent to the issuer. INFORMATION_REQUIRED: the issuer refused the evidence; update it and submit again. UNDER_REVIEW: submitted. CANCELED: the issuer canceled the submitted dispute, which ended without a decision; the cancellation moves no money. WON, LOST, EXPIRED, WITHDRAWN and CANCELED are final.

reasonenum
Dispute reason.
amountobject
evidenceUploadedboolean
Whether a supporting file is attached.
submissionDeadlinedatetime

Submit before this time. Counted from the purchase date by the card issuer’s window for the reason: 180 days for every reason, or 110 days, 65 for no_valid_authorization and 80 for Mastercard duplicate and no_valid_authorization. Dispute eligibility reports it. The issuer may allow longer.

monetaryTransactionslist of objects

Credits and reversals posted for this dispute. Each is also a transaction; count it once.

createdAtdatetime
When the dispute was created.
updatedAtdatetime
When the dispute last changed.
cardProgramIdstringOptionalformat: "uuid"
Card program of the disputed card. Absent when unknown.
submittedAtdatetimeOptional
When the dispute was sent to the issuer.
resolvedAtdatetimeOptional
When the dispute reached a final status.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error
503
Service Unavailable Error