> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mayar.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Get All Reviews

> Endpoint to retrieve all reviews

<RequestExample>
  ```bash Request Example theme={null}
  curl --request GET `https://api.mayar.id/hl/v1/reviews \
    --header 'Authorization: Bearer Paste-Your-API-Key-Here'
  ```
</RequestExample>

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
      "statusCode": 200,
      "messages": "success",
      "hasMore": false,
      "pageCount": 1,
      "pageSize": 10,
      "page": 1,
      "total": 1,
      "data": [
          {
              "id": "11f4d767-4d88-41ff-8777-06564d906fe7",
              "createdAt": 1778223034383,
              "customerId": "22eb6224-c20a-4bc2-9b99-13b21e7048c6",
              "message": "Bagus sekali, takde minusnyo",
              "paymentLinkId": "e2b3f5d5-0c62-47ba-8a01-6c1c209e0f77",
              "rating": 5,
              "status": "ACTIVE",
              "updatedAt": 1778225558788,
              "userId": "348e083d-315a-4e5c-96b1-5a2a98c48413",
              "multipleImage": [],
              "content": [],
              "customer": {
                  "id": "22eb6224-c20a-4bc2-9b99-13b21e7048c6",
                  "name": "Test Mayar"
              },
              "paymentLink": {
                  "id": "e2b3f5d5-0c62-47ba-8a01-6c1c209e0f77",
                  "name": "Kelas Pemrograman Web Dasar",
                  "type": "course",
                  "link": "website",
                  "subType": null
              }
          }
      ]
  }
  ```
</ResponseExample>

Endpoint:

<CodeGroup>
  ```Production Production theme={null}
  https://api.mayar.id/hl/v1/reviews
  ```

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/hl/v1/reviews
  ```
</CodeGroup>

## Authorization

<ResponseField name="Authorization" type="string" required>
  Example:

  `Authorization | Bearer Paste-Your-Api-Key-Here`
</ResponseField>

## Response

Successful Response

## Main Structure (Root)

<ResponseField name="statusCode" type="integer">
  Status code returned by the API.
</ResponseField>

<ResponseField name="messages" type="string">
  Status message that describes the API response.
</ResponseField>

<ResponseField name="hasMore" type="boolean">
  Indicates whether more review data is available.
</ResponseField>

<ResponseField name="pageCount" type="number">
  Total number of available pages.
</ResponseField>

<ResponseField name="pageSize" type="number">
  Maximum number of reviews returned per page.
</ResponseField>

<ResponseField name="page" type="number">
  Current page number.
</ResponseField>

<ResponseField name="total" type="number">
  Total number of reviews available.
</ResponseField>

<ResponseField name="data" type="array of object">
  Array containing review objects.
</ResponseField>

### data Structure (Array Of Object)

<ResponseField name="data.id" type="string">
  Unique review ID.
</ResponseField>

<ResponseField name="data.createdAt" type="number">
  Unix timestamp in milliseconds indicating when the review was created.
</ResponseField>

<ResponseField name="data.customerId" type="string">
  Unique customer identifier associated with the review.
</ResponseField>

<ResponseField name="data.message" type="string">
  Review message submitted by the customer.
</ResponseField>

<ResponseField name="data.paymentLinkId" type="string">
  Payment link ID associated with the review.
</ResponseField>

<ResponseField name="data.rating" type="number">
  Rating value submitted by the customer.
</ResponseField>

<ResponseField name="data.status" type="string">
  Current review status.
</ResponseField>

<ResponseField name="data.updatedAt" type="number">
  Unix timestamp in milliseconds indicating when the review was last updated.
</ResponseField>

<ResponseField name="data.userId" type="string">
  Unique user ID associated with the payment link owner.
</ResponseField>

<ResponseField name="data.multipleImage" type="array">
  List of review images attached by the customer.
</ResponseField>

<ResponseField name="data.content" type="array">
  Additional review content data.
</ResponseField>

<ResponseField name="data.customer" type="object">
  Customer information object.
</ResponseField>

<ResponseField name="data.customer.id" type="string">
  Unique customer ID.
</ResponseField>

<ResponseField name="data.customer.name" type="string">
  Customer full name.
</ResponseField>

<ResponseField name="data.paymentLink" type="object">
  Payment link information object.
</ResponseField>

<ResponseField name="data.paymentLink.id" type="string">
  Unique payment link ID.
</ResponseField>

<ResponseField name="data.paymentLink.name" type="string">
  Name of the payment link or product.
</ResponseField>

<ResponseField name="data.paymentLink.type" type="string">
  Type of payment link or product.
</ResponseField>

<ResponseField name="data.paymentLink.link" type="string">
  Slug or public link identifier of the payment link.
</ResponseField>

<ResponseField name="data.paymentLink.subType" type="string">
  Additional subtype information of the payment link.
</ResponseField>
