> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mayar.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Dynamic QRCode

> Endpoint used to create a dynamic QRIS code for a specific amount

> [!NOTE]
>
> The setting to charge admin fee and channel fee to the customer does not
> apply to the Payme / Dynamic QR code feature.

```bash Request Example theme={null}
curl --request POST 'https://api.mayar.id/hl/v2/qr-codes/create' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 10000
}'
```

```json Response Example 200 theme={null}
{
    "statusCode": 200,
    "messages": "success",
    "data": {
        "url": "https://media.mayar.id/images/resized/480/a1b2c3d4-e5f6-4789-a012-3456789abcde.png",
        "amount": 10000,
        "qrString": "00020101021126620014COM.GO-JEK.WWW01189360091300000000000000005802ID5909MAYAR6007JAKARTA6105121006304A1B2"
    }
}
```

Endpoint:

```Production Production theme={null}
https://api.mayar.id/hl/v2/qr-codes/create
```

```Sandbox Sandbox theme={null}
https://api.mayar.io/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.

**data.qrString** `string`

The raw QRIS payload string used to generate the QR image. Can be decoded directly by
standard QRIS readers or used to render the code without relying on the image URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.