The setting to charge admin fee and channel fee to the customer does not
apply to the Invoice feature.
curl --request POST 'https://api.mayar.id/hl/v1/invoice/create' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "andre jago",
"email": "alikusnadide@gmail.com",
"mobile": "085797522261",
"redirectUrl": "https://kelaskami.com/nexst23",
"description": "testing dulu pak",
"expiredAt": "2026-04-19T16:43:23.000Z",
"items":[{
"quantity": 3,
"rate": 11000,
"description": "1e 1 sayam jago"
}],
"extraData": {
"noCustomer": "827hiueqy271hj",
"idProd": "contoh aja"
}
}
{
"statusCode": 200,
"messages": "success",
"data": {
"id": "df65d192-8396-4f9a-b4e5-8244648c07c5",
"transactionId": "ca87fd13-8742-4d48-af33-7de1a417bc34",
"link": "https://korban-motivator.mayar.shop/invoices/ycfyxbj2h3",
"expiredAt": 1776617003000,
"extraData": {
"noCustomer": "827hiueqy271hj",
"idProd": "contoh aja"
}
}
}
Invoice
Create Invoice
Endpoint used to create invoices
Was this page helpful?
