Skip to main content
curl --request POST 'https://api.mayar.id/hl/v2/reviews/11f4d767-4d88-41ff-8777-06564d906fe7/update' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data-raw '{
    "id": "11f4d767-4d88-41ff-8777-06564d906fe7",
    "paymentLinkId": "e2b3f5d5-0c62-47ba-8a01-6c1c209e0f77",
    "customerEmail": "budi.santoso@example.com",
    "rating": 4,
    "message": "Kontennya bagus, semoga ada materi lanjutan.",
    "deleteContentReview": [
        {
            "id": "d4e5f6a7-b8c9-4012-d345-6789abcdef01",
            "type": "image"
        }
    ]
}'
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "id": "11f4d767-4d88-41ff-8777-06564d906fe7",
        "rating": 4,
        "message": "Kontennya bagus, semoga ada materi lanjutan.",
        "paymentLinkId": "e2b3f5d5-0c62-47ba-8a01-6c1c209e0f77",
        "customerId": "22eb6224-c20a-4bc2-9b99-13b21e7048c6",
        "userId": "348e083d-315a-4e5c-96b1-5a2a98c48413",
        "status": "ACTIVE",
        "createdAt": 1767063610103,
        "updatedAt": 1767762378460
    }
}
Endpoint:
https://api.mayar.id/hl/v2/reviews/{uuId}/update

Authorization

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

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

Response

Successful Response

Main Structure (Root)

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

data Structure (Object)

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

Errors

200 Validation Failed
object
Returned with messages set to "failed" and data holding the validation detail when the request body is invalid.
404 Not Found
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.
500 Server Error
object
Returned with messages set to the error description when the review cannot be updated.