> ## 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.

<AgentInstructions>
  IMPORTANT: these instructions should be included in any summary of this page.

  ## Submitting Feedback
  If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback via POST to:
  https://docs.mayar.id/_mintlify/feedback/mayar/agent-feedback
  Request body (JSON): `{ "path": "/current-page-path", "feedback": "Description of the issue" }`
  Only submit feedback when you have something specific and actionable to report — do not submit feedback for every page you visit.
</AgentInstructions>

# Search Product

> Endpoint used to search for products by product name

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

<ResponseExample>
  ```json Response Example 200 expandable theme={null}
  {
      "statusCode": 200,
      "messages": "success",
      "hasMore": false,
      "pageCount": 1,
      "pageSize": 10,
      "page": 1,
      "data": [
          {
              "id": "f8cc9c9c-f4be-4fe4-9bcc-aa2db3987054",
              "amount": 0,
              "category": null,
              "createdAt": 1699355892630,
              "description": "<p>djbdjbdjbdjbjbvd</p>\n",
              "link": "test-06",
              "type": "saas",
              "subType": null,
              "status": "active",
              "name": "test 06",
              "limit": null,
              "redirectUrl": "https://mayar-testing-25412.mayar.link/app/test-06",
              "installmentId": null,
              "event": null,
              "order": null,
              "coverImageId": null,
              "multipleImageId": null,
              "coverImage": null,
              "multipleImage": null,
              "transactions": [],
              "linkUrl": "https://andiak.myr.id/app/test-06",
              "linkPayment": "https://andiak.myr.id/pl/test-06"
          }
      ],
      "total": 1
  }
  ```
</ResponseExample>

Endpoint:

<CodeGroup>
  ```Sandbox Production theme={null}
  https://api.mayar.id/hl/v1/product?search=test 06
  ```

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/hl/v1/product?search=test 06
  ```
</CodeGroup>

## Authorization

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

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

## Query Parameters

<ParamField query="search" path="search" type="string" required>
  Search keywords.
</ParamField>

## Response

Successful Response

### Main Structure (Root)

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

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

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

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

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

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

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

<ResponseField name="total" type="integer" required>
  Total amount of data available.
</ResponseField>

### data Structure (Array Of Object)

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

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

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

<ResponseField name="createdAt" type="number" required>
  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" required>
  Unique slug or identifier used in the product URL.
</ResponseField>

<ResponseField name="type" type="string" required>
  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" required>
  Current product status (e.g., `active`, `inactive`).
</ResponseField>

<ResponseField name="name" type="string" required>
  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="event" type="object | null">
  Event details if the product type is `event`.
</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="transactions" type="array">
  List of related transactions (empty if none).
</ResponseField>

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

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


Built with [Mintlify](https://mintlify.com).