Skip to main content
Version: 2019-05-29 (Current)

Accept Dispute

Accept a dispute to concede to the customer's claim. This action is irreversible and immediately closes the dispute with status "lost". The disputed amount will be returned to the customer.


Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`id`STRING(required)
Dispute ID to accept (path parameter). The dispute must have status "open" or "pending".
Example:"dspt_test_5xuy4w91xqz7d1w9u0t"

Responsesโ€‹

200

Dispute accepted

Dispute accepted successfully. The dispute status is now "lost" and the process is complete.

After accepting:
  • status - Changes to "lost"
  • closed_at - Set to current timestamp
  • Disputed amount is returned to the customer
  • This action is irreversible
  • No further updates can be made to this dispute

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid dispute ID format
  • Missing dispute ID

401

Unauthorized

Authentication failed. Invalid or missing API key.

Common causes:
  • Missing Authorization header
  • Invalid secret key
  • Using public key instead of secret key
  • Incorrect HTTP Basic Auth format

404

Not found

Dispute not found.

Common causes:
  • Incorrect dispute ID
  • Dispute belongs to different account
  • ID typo or formatting error

422

Unprocessable entity

Dispute cannot be accepted.

Common causes:
  • Dispute is already closed (won or lost)
  • Dispute status does not allow acceptance
  • Acceptance deadline has passed

5xx

Server error

Server-side error occurred. These are rare but should be handled gracefully.

How to handle:

Code samplesโ€‹

curl https://api.omise.co/disputes/dspt_test_5xuy4w91xqz7d1w9u0t/accept \
-X POST \
-u skey_test_5xuy4w91xqz7d1w9u0t:

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
authentication_failureInvalid API keyVerify your secret key is correct
not_foundDispute not foundCheck dispute ID is correct
dispute_already_closedDispute is already closedCannot accept a closed dispute
invalid_dispute_statusDispute status invalidOnly open or pending disputes can be accepted

Status Transitionโ€‹

BeforeAfterResult
openlostDispute accepted, funds returned to customer
pendinglostDispute accepted, funds returned to customer

When to Accept a Disputeโ€‹

Consider accepting a dispute when:

  • You cannot provide sufficient evidence to contest the claim
  • The customer's claim is legitimate
  • The cost of fighting exceeds the disputed amount
  • You want to resolve quickly and maintain customer goodwill

๐Ÿ”‘API Credentials

Try it outโ€‹

Required - 1 fields
โ–ผ
Your IP: ...Loading...