The reviews API lets buyers leave a score and comment on completed orders, building a public reputation for creators and service providers on ECHO. Anyone can read reviews and average scores without authentication. Creating or retrieving reviews tied to a specific order requires a JWT token. Listing all reviews and deleting individual reviews are restricted toDocumentation 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.
ADMIN users.
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 review
Authentication
Requires a valid JWT token.Request body
The ID of the order being reviewed.
A whole-number rating between 1 and 5 (inclusive).
Optional written feedback accompanying the score.
Example
Response fields
Unique identifier for the newly created review.
The ID of the reviewed order.
The ID of the user who wrote the review.
The submitted score (1–5).
The submitted written feedback, if provided.
Error codes
| Status | Meaning |
|---|---|
400 | score is outside the 1–5 range or required fields are missing. |
403 | You are not the buyer on the referenced order. |
404 | No order exists with the given orderId. |
Get reviews for order
Authentication
Requires a valid JWT token.Path parameters
The numeric ID of the order whose reviews to retrieve.
Example
Response fields
Unique identifier for the review.
The ID of the reviewed order.
The ID of the review author.
The rating score (1–5).
Written feedback, if provided.
Get reviews for user
Path parameters
The numeric ID of the user whose received reviews to retrieve.
Example
Response fields
Unique identifier for the review.
The ID of the order the review relates to.
The ID of the user who wrote the review.
The rating score (1–5).
Written feedback, if provided.
Get average score for user
Path parameters
The numeric ID of the user whose average score to retrieve.
Example
Response
Response fields
The mean score across all reviews for this user, as a decimal.
The total number of reviews included in the average.
Get all reviews
Authentication
Requires a valid JWT token withADMIN role.
Example
Delete review
Authentication
Requires a valid JWT token withADMIN role.
Path parameters
The numeric ID of the review to delete.
Example
Error codes
| Status | Meaning |
|---|---|
403 | You do not have the ADMIN role. |
404 | No review exists with the given ID. |