Skip to main content
curl --request GET 'https://api.mayar.id/hl/v2/products/e2b3f5d5-0c62-47ba-8a01-6c1c209e0f77/reviews/customer?customerId=22eb6224-c20a-4bc2-9b99-13b21e7048c6' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here'
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "id": "11f4d767-4d88-41ff-8777-06564d906fe7",
        "userId": "348e083d-315a-4e5c-96b1-5a2a98c48413",
        "updatedAt": 1767762378460,
        "rating": 5,
        "paymentLinkId": "e2b3f5d5-0c62-47ba-8a01-6c1c209e0f77",
        "status": "ACTIVE",
        "message": "Materinya jelas dan mudah dipahami, terima kasih!",
        "customerId": "22eb6224-c20a-4bc2-9b99-13b21e7048c6",
        "createdAt": 1767063610103,
        "multipleImage": [],
        "content": [
            {
                "id": "b2c3d4e5-f6a7-4890-b123-456789abcdef",
                "value": "c3d4e5f6-a7b8-4901-c234-56789abcdef0",
                "file": {
                    "id": "c3d4e5f6-a7b8-4901-c234-56789abcdef0",
                    "filename": "ulasan-video.mp4",
                    "mimetype": "video/mp4",
                    "size": 5698168
                }
            }
        ]
    }
}
Endpoint:
https://api.mayar.id/hl/v2/products/{paymentLinkId}/reviews/customer

Authorization

Authorization
string
required
Example:Authorization | Bearer Paste-Your-Api-Key-Here

Path Parameters

ID of the payment link / product to look up the review for.

Query Parameters

customerId
string<uuid>
required
ID of the customer whose review you want to retrieve.

Response

Successful Response

Main Structure (Root)

statusCode
integer
Status code returned by the API.
messages
string
Status message that describes the API response.
data
object | null
The customer’s review for the product, or null when the customer has not reviewed it.

data Structure (Object)

id
string
Unique review ID.
userId
string
Unique user ID associated with the payment link owner.
updatedAt
number
Unix timestamp in milliseconds indicating when the review was last updated.
rating
number
Rating value submitted by the customer.
Payment link ID associated with the review.
status
string
Current review status.
message
string
Review message submitted by the customer.
customerId
string
Unique customer identifier associated with the review.
createdAt
number
Unix timestamp in milliseconds indicating when the review was created.
multipleImage
array of object
List of review images attached by the customer.
content
array of object
Additional review content (for example uploaded videos), each with a nested file object (id, filename, mimetype, size).

Errors

400 Bad Request
object
Returned with messages set to "customerId query parameter is required" when the customerId query parameter is missing.