QRIS statis jadi dinamis / Set QRIS amount
set_qris_amountMengubah QRIS STATIS menjadi DINAMIS dengan nominal Rupiah. Turns a valid STATIC QRIS into a DYNAMIC one with a fixed amount in whole Rupiah: sets tag 01 to 12, inserts tag 54, optionally adds a tip/fee (tags 55-57, off by default) and recomputes the CRC. Refuses invalid or already-dynamic input. This only rewrites text: it does not move money, and the result is only as valid as the merchant's static code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"qris": "<qris>",
"amount": "<amount>"
},
"name": "set_qris_amount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | No | Tip/convenience fee: none (default), prompt (payer types a tip, 55=01), fixed (55=02 + 56), percent (55=03 + 57). | none |
| qris | Yes | The merchant's own STATIC QRIS payload text. | |
| amount | Yes | Amount in whole Rupiah, e.g. 15000 or "15.000". Max 13 digits. | |
| tip_value | No | For tip=fixed: whole Rupiah. For tip=percent: 0.01-99.99. | |
| allow_dynamic_input | No | Allow a QRIS that is already dynamic (its amount is replaced). Off by default because dynamic codes are usually single-use. |