Skip to main content
Endpoint:

Authorization

string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here
The review id is read from the request body, not the URL. Provide the id of the review you want to update in the JSON body.

Request Body

string
required
ID of the review to update. 3–100 characters.
ID of the payment link / product the review belongs to. 3–100 characters.
string
Email of the customer who owns the review, used to locate the related paid transaction.
number
Updated rating value. Integer between 1 and 5.
string
Updated review message. 1–2000 characters.
string
ID of the customer who owns the review. 3–100 characters.
array of object
Media attachments to add (id, type of image/video, multipleFileId). Maximum 10 entries.
array of object
Media attachments to remove (id, type of image/video, multipleFileId). Maximum 10 entries.

Response

Successful Response

Main Structure (Root)

integer
Status code returned by the API.
string
Status message that describes the status code. "success" on success, "failed" when the request body fails validation.
object
The updated review record. When messages is "failed", this holds the validation detail instead.

data Structure (Object)

string
Unique review ID.
number
Updated rating value.
string
Updated review message.
Payment link ID associated with the review.
string
Unique customer identifier associated with the review.
string
Unique user ID associated with the payment link owner.
string
Current review status.
number
Unix timestamp in milliseconds indicating when the review was created.
number
Unix timestamp in milliseconds indicating when the review was last updated.

Errors

object
Returned with messages set to "failed" and data holding the validation detail when the request body is invalid.
object
Returned with messages set to "Transaksi tidak ditemukan" when no paid transaction matches the customer and product, or "Review tidak ditemukan" when the review does not exist.
object
Returned with messages set to the error description when the review cannot be updated.