Skip to main content
curl --request POST 'https://api.mayar.id/hl/v2/qr-codes/create' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data-raw '{
    "amount": 10000
}'
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "url": "https://media.mayar.id/images/resized/480/a1b2c3d4-e5f6-4789-a012-3456789abcde.png",
        "amount": 10000
    }
}
Endpoint:
https://api.mayar.id/hl/v2/qr-codes/create

Authorization

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

Request Body

amount
integer
required
Nominal payment amount (in IDR) to encode into the dynamic QRIS code.

Response

Successful Response

Main Structure (Root)

statusCode
integer
Status code returned by the API.
messages
string
Status message that describes the status code.
data
object
The generated dynamic QRIS object.

data Structure (Object)

data.url
string
Link to the generated QR image file.
data.amount
integer
Nominal payment amount encoded into the QR code.