> ## 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 Product Page

> Endpoint where you can get your products

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

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
      "statusCode": 200,
      "messages": "success",
      "hasMore": true,
      "pageCount": 14,
      "pageSize": "10",
      "page": 1,
      "data": [
          {
              "id": "fca92d4c-33e8-4334-b2f3-491af6d78a5b",
              "amount": 200000,
              "category": null,
              "createdAt": 1692004154797,
              "description": "<p><span style=\"color: rgb(51,51,51);background-color: rgb(251,252,252);font-size: 18px;font-family: Open Sans;\">The Invisible Man</span> <span style=\"color: rgb(51,51,51);background-color: rgb(251,252,252);font-size: 18px;font-family: Open Sans;\">(1897) is one of the most famous science fiction novels of all time. Written by H.G. Wells (1866-1946), it tells the story of a scientist who discovers the secret of invisibility and uses it on himself. The story begins as the Invisible Man, with a bandaged face and a heavy coat and gloves, takes a train to lodge in a country inn whilst he tries to discover the antidote and make himself visible again. The book inspired several films and is notable for its vivid descriptions of the invisible man-no mean feat, given that you can't see him!</span>&nbsp;</p>\n",
              "link": "invisible-man",
              "type": "audiobook",
              "subType": null,
              "status": "active",
              "name": "Invisible Man",
              "limit": null,
              "redirectUrl": null,
              "installmentId": null,
              "variant": null,
              "membershipTier": [],
              "event": null,
              "order": null,
              "coverImageId": "2529541f-dc98-4ca0-93bb-3c1d35a8dd07",
              "multipleImageId": null,
              "multipleImage": null,
              "coverImage": {
                  "id": "2529541f-dc98-4ca0-93bb-3c1d35a8dd07",
                  "fileType": "jpeg",
                  "url": "https://media.mayar.id/images/2529541f-dc98-4ca0-93bb-3c1d35a8dd07.jpeg"
              },
              "variants": null,
              "transactions": [],
              "linkUrl": "https://testingmayar.myr.id/audiobook/invisible-man",
              "linkPayment": "https://testingmayar.myr.id/pl/invisible-man"
          }
      ],
      "total": 1
  }
  ```
</ResponseExample>

Endpoint:

<CodeGroup>
  ```Production Production theme={null}
  https://api.mayar.id/hl/v1/product?page=1&pageSize=10
  ```

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/hl/v1/product?page=1&pageSize=10
  ```
</CodeGroup>

## Authorizations

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

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

## Query Parameters

<ParamField query="page" path="page" default="1" type="integer" required>
  Determine which page.
</ParamField>

<ParamField query="pageSize" path="pageSize" default="10" type="integer" required>
  How much data is displayed on the page.
</ParamField>

## Response

Successful Response

### Main Structure (Root)

<ResponseField name="statusCode" type="integer">
  Status code form API.
</ResponseField>

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

<ResponseField name="hasMore" type="boolean">
  Information on whether there is additional data to be retrieved (true/false).
</ResponseField>

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

<ResponseField name="pageSize" type="integer">
  Number of items per page.
</ResponseField>

<ResponseField name="page" type="integer">
  The page currently displayed.
</ResponseField>

<ResponseField name="data" type="array of object">
  List of products displayed.
</ResponseField>

### data Structure (Array Of Object)

<ResponseField name="id" type="string">
  Unique identifier of the product.
</ResponseField>

<ResponseField name="amount" type="integer">
  Product price amount.
</ResponseField>

<ResponseField name="category" type="string | null">
  Product category if available.
</ResponseField>

<ResponseField name="createdAt" type="number">
  Timestamp in milliseconds indicating when the product was created.
</ResponseField>

<ResponseField name="description" type="string">
  Product description in HTML format.
</ResponseField>

<ResponseField name="link" type="string">
  Unique slug or identifier used in the product URL.
</ResponseField>

<ResponseField name="type" type="string">
  Product type (e.g., `saas`, `event`, `membership`, `ebook`, etc.).
</ResponseField>

<ResponseField name="subType" type="string | null">
  Product subtype if applicable.
</ResponseField>

<ResponseField name="status" type="string">
  Current product status (e.g., `active`, `inactive`).
</ResponseField>

<ResponseField name="name" type="string">
  Product name.
</ResponseField>

<ResponseField name="limit" type="integer | null">
  Purchase or access limit if configured.
</ResponseField>

<ResponseField name="redirectUrl" type="string | null">
  URL where the customer will be redirected after checkout.
</ResponseField>

<ResponseField name="installmentId" type="string | null">
  Installment identifier if the product supports installment payments.
</ResponseField>

<ResponseField name="variant" type="string | null">
  Product variant.
</ResponseField>

<ResponseField name="membershipTier" type="string | null">
  Installment identifier if the product supports installment payments.
</ResponseField>

<ResponseField name="event" type="object | null">
  Event details.
</ResponseField>

<ResponseField name="order" type="object | null">
  Order configuration if applicable.
</ResponseField>

<ResponseField name="coverImageId" type="string | null">
  Identifier of the cover image.
</ResponseField>

<ResponseField name="multipleImageId" type="array | null">
  List of additional image identifiers.
</ResponseField>

<ResponseField name="coverImage" type="object | null">
  Cover image object containing image details.
</ResponseField>

<ResponseField name="multipleImage" type="array | null">
  List of additional image objects.
</ResponseField>

<ResponseField name="variants" type="string | null">
  Product variant.
</ResponseField>

<ResponseField name="transactions" type="array">
  List of related transactions (empty if none).
</ResponseField>

<ResponseField name="linkUrl" type="string">
  Public product page URL.
</ResponseField>

<ResponseField name="linkPayment" type="string">
  Public payment link URL.
</ResponseField>
