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

# 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": "3d4a503a-04a7-4587-915a-8983f0ab05f7",
              "amount": 300000,
              "category": null,
              "createdAt": 1704961863326,
              "description": "<p>Yo test</p>\n",
              "link": "jasa-pembuatan-website-82187",
              "type": "generic_link",
              "subType": null,
              "status": "deleted",
              "name": "Jasa Pembuatan Website ",
              "limit": null,
              "redirectUrl": "",
              "installmentId": null,
              "variant": "[{\"id\":\"18399af2-1063-4022-868d-23917ee8410b\",\"name\":\"Produk Dengan Jumlah 15\",\"description\":\"<p></p>\\n\",\"amount\":12000,\"limit\":null,\"notes\":\"\",\"redirectUrl\":\"\",\"status\":\"ACTIVE\",\"createdAt\":1728286386687}]",
              "membershipTier": [],
              "event": null,
              "order": null,
              "coverImageId": null,
              "multipleImageId": "468565a7-b2ad-4ec1-8cbe-2308160c5a4b",
              "coverImage": null,
              "multipleImage": [
                  {
                      "id": "62a02c2d-2d46-4382-9683-b49e5971bfa0",
                      "fileType": "jpeg",
                      "createdAt": 1729063348803,
                      "updatedAt": 1729064548803,
                      "url": "https://media.mayar.id/images/62a02c2d-2d46-4382-9683-b49e5971bfa0.jpeg"
                  },
                  {
                      "id": "7b3777d4-0c94-4bfe-9dd9-da691f6bf575",
                      "fileType": "jpeg",
                      "createdAt": 1729063348032,
                      "updatedAt": 1729065148033,
                      "url": "https://media.mayar.id/images/7b3777d4-0c94-4bfe-9dd9-da691f6bf575.jpeg"
                  },
                  {
                      "id": "c81180e7-e91f-464e-abd7-b19254f76cf0",
                      "fileType": "jpeg",
                      "createdAt": 1729063348209,
                      "updatedAt": 1729063948210,
                      "url": "https://media.mayar.id/images/c81180e7-e91f-464e-abd7-b19254f76cf0.jpeg"
                  }
              ],
              "variants": [
                  {
                      "id": "18399af2-1063-4022-868d-23917ee8410b",
                      "name": "Produk Dengan Jumlah 15",
                      "description": "<p></p>\n",
                      "amount": 12000,
                      "limit": null,
                      "notes": "",
                      "redirectUrl": "",
                      "status": "ACTIVE",
                      "createdAt": 1728286386687
                  }
              ],
              "transactions": [],
              "linkUrl": "https://testingmayar.myr.id/plink/jasa-pembuatan-website-82187",
              "linkPayment": "https://testingmayar.myr.id/pl/jasa-pembuatan-website-82187"
          },
          {
              "id": "6f8c19ff-5b97-4792-aa89-d2a12797b356",
              "amount": 100000,
              "category": null,
              "createdAt": 1768375011056,
              "description": "<p>Testing</p>\n",
              "link": "pembuatan-jasa-web",
              "type": "generic_link",
              "subType": null,
              "status": "active",
              "name": "Pembuatan Jasa Web",
              "limit": null,
              "redirectUrl": "",
              "installmentId": null,
              "variant": "[{\"id\":\"986cb91e-70ee-4579-a046-3201f936e6e1\",\"name\":\"Landing Page \",\"description\":\"<p></p>\\n\",\"amount\":100000,\"limit\":null,\"notes\":\"\",\"redirectUrl\":\"\",\"status\":\"ACTIVE\",\"createdAt\":1778236239496},{\"id\":\"99de25dc-0302-4d64-9467-6f1c85fbc1bb\",\"name\":\"Sistem Crud\",\"description\":\"<p></p>\\n\",\"amount\":500000,\"limit\":null,\"notes\":\"\",\"redirectUrl\":\"\",\"status\":\"ACTIVE\",\"createdAt\":1778236254836}]",
              "membershipTier": [],
              "event": null,
              "order": null,
              "coverImageId": null,
              "multipleImageId": "62840541-d45d-4e3f-a13a-e4f8bcdf4e5d",
              "coverImage": null,
              "multipleImage": [
                  {
                      "id": "503d493e-7ae5-4892-80a6-b925e057698f",
                      "fileType": "jpeg",
                      "createdAt": 1775731966396,
                      "updatedAt": 1775731974978,
                      "url": "https://media.mayar.id/images/503d493e-7ae5-4892-80a6-b925e057698f.jpeg"
                  }
              ],
              "variants": [
                  {
                      "id": "986cb91e-70ee-4579-a046-3201f936e6e1",
                      "name": "Landing Page ",
                      "description": "<p></p>\n",
                      "amount": 100000,
                      "limit": null,
                      "notes": "",
                      "redirectUrl": "",
                      "status": "ACTIVE",
                      "createdAt": 1778236239496
                  },
                  {
                      "id": "99de25dc-0302-4d64-9467-6f1c85fbc1bb",
                      "name": "Sistem Crud",
                      "description": "<p></p>\n",
                      "amount": 500000,
                      "limit": null,
                      "notes": "",
                      "redirectUrl": "",
                      "status": "ACTIVE",
                      "createdAt": 1778236254836
                  }
              ],
              "transactions": [],
              "linkUrl": "https://testingmayar.myr.id/plink/pembuatan-jasa-web",
              "linkPayment": "https://testingmayar.myr.id/pl/pembuatan-jasa-web"
          }
      ],
      "total": 1
  }
  ```
</ResponseExample>

Endpoint:

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

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/hl/v1/product?search={namaproduk}
  ```
</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="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">
  Product variant.
</ResponseField>

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

<ResponseField name="event" type="object | null">
  Membership product tier.
</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">
  List of additional image identifiers.
</ResponseField>

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

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

<ResponseField name="variants" type="string">
  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>
