curl --request POST 'https://api.mayar.id/hl/v1/product/event/create'\
--header 'Authorization: Bearer Paste-Your-API-Key-Here'\
--data-raw '{
"id": "7f992557-8791-41b5-a1c8-c5641c3e72b5",
"name": "Bootcamp Coding Fullstack Asix Editan",
"description": "Workshop fullstack development 2 hari",
"amount": 250000,
"crossoutPrice": 500000,
"eventUrl": "https://meet.google.com/abc-defg-hij",
"notes": "offline-jakarta",
"terms": "Tiket tidak dapat di-refund",
"redirectUrl": "https://example.com/event-thanks",
"paymentType": "paid",
"startAt": "2026-07-01T08:00:00.000Z",
"eventStartAt": "2026-07-15T08:00:00.000Z",
"eventEndAt": "2026-07-16T17:00:00.000Z",
"expiredAt": "2026-07-10T17:00:00.000Z",
"limit": 50
}'
{
"statusCode": 200,
"messages": "success",
"data": {
"id": "7f992557-8791-41b5-a1c8-c5641c3e72b5",
"link": "https://testingmayar.myr.id/event/Bootcamp-Coding-Fullstack-Asix"
}
}
Endpoint:
https://api.mayar.id/hl/v1/product/event/edit
Authorization
Example:Authorization | Bearer Paste-Your-API-Key-Here
Request Body
Unique identifier of the event product.
Event product description.
Event ticket or product price amount.
Crossed-out price displayed as the original price.
Event URL, such as an online meeting link.
Additional notes for the event.
Terms and conditions for the event purchase.
URL where the customer will be redirected after completing payment.
Payment type for the event.
startAt
string | datetime
required
Sales start date in ISO 8601 format.
eventStartAt
string | datetime
required
Event start date in ISO 8601 format.
eventEndAt
string | datetime
required
Event end date in ISO 8601 format.
expiredAt
string | datetime
required
Event product expiration date in ISO 8601 format.
Maximum participant or purchase limit.
Response
Successful Response
Main Structure (Root)
Status message that describes the status code.
The updated event product data.
data Structure (Array of Object)
Unique identifier of the event product.
Public URL of the updated event product.