Skip to main content
curl --request GET 'https://api.mayar.id/hl/v2/products?limit=10' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here'
{
    "statusCode": 200,
    "messages": "success",
    "data": [
        {
            "id": "3d4a503a-04a7-4587-915a-8983f0ab05f7",
            "amount": 150000,
            "category": null,
            "createdAt": 1768375011056,
            "description": "<p>Jasa pembuatan website company profile.</p>\n",
            "link": "jasa-pembuatan-website",
            "type": "generic_link",
            "subType": null,
            "status": "active",
            "name": "Jasa Pembuatan Website",
            "limit": null,
            "redirectUrl": null,
            "installmentId": null,
            "variant": null,
            "membershipTier": [],
            "event": null,
            "order": null,
            "coverImageId": "2529541f-dc98-4ca0-93bb-3c1d35a8dd07",
            "multipleImageId": null,
            "coverImage": {
                "id": "2529541f-dc98-4ca0-93bb-3c1d35a8dd07",
                "fileType": "jpeg",
                "url": "https://media.mayar.id/images/2529541f-dc98-4ca0-93bb-3c1d35a8dd07.jpeg"
            },
            "multipleImage": null,
            "variants": null,
            "linkUrl": "https://testingmayar.myr.id/plink/jasa-pembuatan-website",
            "linkPayment": "https://testingmayar.myr.id/pl/jasa-pembuatan-website"
        }
    ],
    "hasMore": true,
    "nextStartingAfter": "1768375011056"
}
Endpoint:
https://api.mayar.id/hl/v2/products?limit=10

Authorization

Authorization
string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here

Query Parameters

limit
integer
default:"10"
Number of items to return per page. Defaults to 10, with a maximum of 50.
startingAfter
string
Cursor for forward pagination. Pass the nextStartingAfter value from the previous response (a Unix timestamp in milliseconds, as a string) to fetch the next page.
Filter products by name keyword.
type
string
Filter products by product type (e.g. generic_link, event, webinar, digital_product).
stock
string
Filter products by stock availability.

Response

Successful Response

Main Structure (Root)

statusCode
integer
Status code form API.
messages
string
Status message that describes the status code.
data
array of object
List of products displayed.
hasMore
boolean
Information on whether there is additional data to be retrieved (true/false).
nextStartingAfter
string | null
Cursor to pass as startingAfter to fetch the next page. null when there is no further data.

data Structure (Array Of Object)

id
string
Unique identifier of the product.
amount
integer
Product price amount.
category
string | null
Product category if available.
createdAt
number
Timestamp in milliseconds indicating when the product was created.
description
string
Product description in HTML format.
Unique slug or identifier used in the product URL.
type
string
Product type (e.g., saas, event, membership, ebook, etc.).
subType
string | null
Product subtype if applicable.
status
string
Current product status (e.g., active, inactive).
name
string
Product name.
limit
integer | null
Purchase or access limit if configured.
redirectUrl
string | null
URL where the customer will be redirected after checkout.
installmentId
string | null
Installment identifier if the product supports installment payments.
variant
string | null
Product variant.
membershipTier
array | null
Membership product tier.
event
object | null
Event details.
order
object | null
Order configuration if applicable.
coverImageId
string | null
Identifier of the cover image.
multipleImageId
string | null
Identifier list of additional images.
coverImage
object | null
Cover image object containing image details.
multipleImage
array | null
List of additional image objects.
variants
array | null
Product variants.
Public product page URL.
Public payment link URL.