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

Update a Dispute

Update an open dispute by providing a response message and metadata. Submitting a message changes the dispute status from open to pending.


๐Ÿ”‘API Credentials

Request Parametersโ€‹

Required - 1 fieldRequired Parameters
โ–ผ
`id`STRING(required)
Dispute ID to update (path parameter). The dispute must have status "open".
Example:"dspt_test_5xuy4w91xqz7d1w9u0t"
Recommended - 1 fieldRecommended Parameters
Additional - 1 fieldAdditional Parameters

Responsesโ€‹

200

Successful update

Dispute updated successfully. If message was provided, status changes from "open" to "pending".

After updating:
  • If message provided: Status changes to "pending" and dispute enters review process
  • Upload supporting documents using POST /disputes/:id/documents
  • Once pending, no further updates can be made
  • Resolution typically takes 60-90 days

400

Bad request

Request validation failed. Check the error message for details.

Common causes:
  • Invalid metadata format
  • Metadata exceeds 15,000 characters
  • Message too long

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 updated.

Common causes:
  • Dispute status is not "open" (already pending, won, or lost)
  • Dispute is closed and cannot be modified
  • Update deadline has passed

Code samplesโ€‹

curl https://api.omise.co/disputes/dspt_test_5xuy4w91xqz7d1w9u0t \
-X PATCH \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d "message=Customer received product on 2025-02-01. Tracking shows delivery confirmation." \
-d "metadata[case_id]=CASE-12345"

Error and result codesโ€‹

Common Error Codesโ€‹

CodeDescriptionResolution
bad_requestInvalid parametersCheck message and metadata format
authentication_failureInvalid API keyVerify your secret key is correct
not_foundDispute not foundCheck dispute ID is correct
dispute_not_openDispute is not openCan only update disputes with status "open"
dispute_closedDispute already closedClosed disputes cannot be modified

Status Transitionโ€‹

BeforeAfterCondition
openpendingMessage provided in update
openopenOnly metadata updated, no message

Try it outโ€‹

Required - 1 fields
โ–ผ
Recommended - 1 fields
Additional - 1 fields