The disputes API gives buyers and sellers a structured way to raise and resolve problems with an order on ECHO. Any authenticated party to an order can open a dispute, exchange messages with the other party, and track status. Admins can view all disputes platform-wide, contribute messages, and record resolutions to close disputes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HelenaLM32/ECHO/llms.txt
Use this file to discover all available pages before exploring further.
The base URL for all endpoints on a local development server is
http://localhost:8084. Replace this with your deployed API URL in production.Create dispute
Authentication
Requires a valid JWT token.Request body
The ID of the order the dispute relates to.
A description of the issue. Maximum 500 characters.
Example
Response fields
Unique identifier for the newly created dispute.
The ID of the order under dispute.
The ID of the user who opened the dispute.
The username of the user who opened the dispute.
The stated reason for the dispute.
Always
OPEN on a newly created dispute.The recorded resolution.
null until the dispute is closed by an admin.ISO 8601 timestamp of when the dispute was opened.
ISO 8601 timestamp of when the dispute was closed.
null while the dispute is open.Error codes
| Status | Meaning |
|---|---|
400 | Missing required fields or reason exceeds 500 characters. |
403 | You are not a party to the referenced order. |
404 | No order exists with the given orderId. |
Get dispute by ID
ADMIN role.
Authentication
Requires a valid JWT token.Path parameters
The numeric ID of the dispute to retrieve.
Example
Response fields
Unique identifier for the dispute.
The ID of the order under dispute.
The ID of the user who opened the dispute.
The username of the user who opened the dispute.
The stated reason for the dispute.
Current dispute status (e.g.,
OPEN, CLOSED).The recorded resolution, if the dispute has been closed.
ISO 8601 timestamp of when the dispute was opened.
ISO 8601 timestamp of when the dispute was closed, if applicable.
Error codes
| Status | Meaning |
|---|---|
403 | You did not create this dispute and do not hold the ADMIN role. |
404 | No dispute exists with the given ID. |
Get dispute for order
Authentication
Requires a valid JWT token.Path parameters
The numeric ID of the order whose dispute to retrieve.
Example
Error codes
| Status | Meaning |
|---|---|
404 | No dispute exists for the given order. |
Get own disputes
Authentication
Requires a valid JWT token.Example
Get open disputes
Authentication
Requires a valid JWT token.Example
Get all disputes
Authentication
Requires a valid JWT token.Example
Add message to dispute
Authentication
Requires a valid JWT token.Path parameters
The numeric ID of the dispute to add a message to.
Request body
The message text to add to the dispute thread.
Example
Response fields
Unique identifier for the message.
The ID of the dispute this message belongs to.
The ID of the user who sent the message.
The username of the message sender.
The message text.
ISO 8601 timestamp of when the message was sent.
Error codes
| Status | Meaning |
|---|---|
403 | You are not a party to this dispute. |
404 | No dispute exists with the given ID. |