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

> Endpoint where you can get your detail products

<RequestExample>
  ```bash Request Example theme={null}
  curl --request GET 'https://api.mayar.id/hl/v1/product/4d26ea37-d093-4b92-8f5f-0faec64d65b0' \
  --header 'Authorization: Bearer Paste-Your-API-Key-Here'
  ```
</RequestExample>

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
      "statusCode": 200,
      "messages": "success",
      "data": {
          "id": "6f8c19ff-5b97-4792-aa89-d2a12797b356",
          "link": "pembuatan-jasa-web",
          "name": "Pembuatan Jasa Web",
          "category": null,
          "limit": null,
          "type": "generic_link",
          "subType": 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}]",
          "userId": "348e083d-315a-4e5c-96b1-5a2a98c48413",
          "membershipTier": [],
          "event": null,
          "order": null,
          "qty": null,
          "amount": 100000,
          "status": "active",
          "description": "<p>Testing</p>\n",
          "coverImageId": null,
          "multipleImageId": "62840541-d45d-4e3f-a13a-e4f8bcdf4e5d",
          "transactions": [],
          "coverImage": null,
          "multipleImage": [
              {
                  "id": "503d493e-7ae5-4892-80a6-b925e057698f",
                  "fileType": "jpeg",
                  "url": "https://media.mayar.id/images/503d493e-7ae5-4892-80a6-b925e057698f.jpeg"
              }
          ],
          "linkUrl": "https://testingmayar.myr.id/plink/pembuatan-jasa-web",
          "linkPayment": "https://testingmayar.myr.id/pl/pembuatan-jasa-web",
          "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
              }
          ]
      }
  }
  ```
</ResponseExample>

Endpoint:

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

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

## Authorization

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

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

## Path Parameters

<ParamField path="id" type="string <uuid>" required>
  Unique product ID.
</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="link" type="string">
  Unique slug or identifier used in the product URL.
</ResponseField>

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

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

<ResponseField name="limit" type="integer | null">
  Purchase or access limit if configured.
</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="variant" type="string | null">
  Product variant.
</ResponseField>

<ResponseField name="userId" type="string">
  ID Customer.
</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="qty" type="string | null">
  Number of product
</ResponseField>

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

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

<ResponseField name="description" type="string">
  Product description in HTML format.
</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="transactions" type="array | null">
  List of related transactions (empty if none).
</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="linkUrl" type="string">
  Public product page URL.
</ResponseField>

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

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