curl --request POST 'https:api.mayar.id//hl/v1/product/paymentlink/create'\
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--header 'Content-Type: application/json' \
--data-raw'{
"name": "Jasa Buat Website Kece",
"description": "Untuk testing API",
"amount": 150000,
"redirectUrl": "https://example.com/thank-you",
"notes": "catatan opsional",
"expiredAt": "2026-06-15T12:00:00.000Z"
}'
{
"statusCode": 200,
"messages": "success",
"data": {
"id": "21d84338-b46d-42d7-9b49-d402520407a5",
"link": "https://testingmayar.myr.id/pl/Jasa-Buat-Website-Kece/"
}
}
Generic Link Product
Create Generic Link
Endpoint used to create generic link product
Was this page helpful?
