curl --request GET 'https://api.mayar.id/hl/v1/product?page=1&pageSize=10' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here'
{
"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> </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
}
Endpoint:
https://api.mayar.id/hl/v1/product?page=1&pageSize=10
Authorizations
Example:Authorization | Bearer Paste-Your-API-Key-Here
Query Parameters
page
integer
default:"1"
required
Determine which page.
pageSize
integer
default:"10"
required
How much data is displayed on the page.
Response
Successful Response
Main Structure (Root)
Status message that describes the status code.
Information on whether there is additional data to be retrieved (true/false).
Total number of data pages.
Number of items per page.
The page currently displayed.
List of products displayed.
data Structure (Array Of Object)
Unique identifier of the product.
Product category if available.
Timestamp in milliseconds indicating when the product was created.
Product description in HTML format.
Unique slug or identifier used in the product URL.
Product type (e.g., saas, event, membership, ebook, etc.).
Product subtype if applicable.
Current product status (e.g., active, inactive).
Purchase or access limit if configured.
URL where the customer will be redirected after checkout.
Installment identifier if the product supports installment payments.
Installment identifier if the product supports installment payments.
Order configuration if applicable.
Identifier of the cover image.
List of additional image identifiers.
Cover image object containing image details.
List of additional image objects.
List of related transactions (empty if none).