Add Update Response Seller
Add response on the review by the customer
Endpoint
Base URL
http://localhost:8080
Method and Endpoint
GET /api/sellers/current/reviews/{review_id}
Headers
Authorization: Bearer access_token
Route Param
review_id
: string (required)
Request Body
Request Body
{
"seller_response": "example-seller-response"
}
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Add Seller Response Successfully",
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
403 (forbidden)
Response Body
{
"error": "you do not have the right to provide a response to this review"
}
404 (not found)
Response Body
{
"error": "review not found with this id"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}
500 (server error - failed)
If seller has added a response
on the review
Response Body
{
"error": "this review already has a seller response"
}
500 (server error - failed)
If something went wrong while update review
data on database
Response Body
{
"error": "failed to update the seller response in review"
}