Authorization
Request Body
Email of the customer leaving the review. Must be a valid email (5–100 characters) belonging to a
customer who has paid for the product.
Response
Successful ResponseMain Structure (Root)
Status message that describes the status code.
"success" on success, "failed" when the
request body fails validation.The created review record. When
messages is "failed", this holds the validation detail
instead.data Structure (Object)
Errors
Returned with
messages set to "failed" and data holding the validation detail when the
request body is invalid.Returned with
messages set to "Produk tidak ditemukan" when the product does not exist or is
not owned by the authenticated merchant.Returned with
messages set to "Anda belum pernah membeli produk ini" when the customer has no
paid transaction for the product.Returned with
messages set to "Anda sudah memberikan ulasan untuk produk ini, jika ingin mengedit ulasan, silahkan gunakan fitur edit ulasan" when the customer has already reviewed the
product.