Payment QR payload
qr_payload_paymentBuild a payment payload: a Pix BR Code (Brazil), a SEPA credit transfer (EPC069-12, euro area), a PayNow (Singapore), PromptPay (Thailand), VietQR (Vietnam) or KHQR (Cambodia) code, EMV merchant-presented with its CRC; a Swiss QR-bill (SIX Swiss Payments Code), a Czech QR Platba (SPD) or a Swish link (Sweden); or a crypto request: Lightning (invoice, LNURL or Lightning Address), XRP, Cardano, Tron, TON or Stellar. Fields depend on the scheme. Pass the result as data to generate_qr_code; use error correction M for SEPA, Swiss QR-bills (which also carry the Swiss cross: use design_qr or the playground for that) and QR Platba.
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": {
"scheme": "<scheme>"
},
"name": "qr_payload_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bic | No | sepa: BIC, optional inside the EEA | |
| city | No | pix: receiver city, up to 15 characters; khqr: city (default Phnom Penh) | |
| iban | No | sepa: IBAN; swiss-qr-bill: CH or LI IBAN or QR-IBAN | |
| memo | No | stellar: text memo, up to 28 bytes | |
| name | No | pix: receiver name (required, up to 25 characters); sepa: beneficiary name (required); paynow: name shown to the payer; swiss-qr-bill: creditor name (required); czech-spd: recipient name; khqr: account holder's name (required) | |
| town | No | swiss-qr-bill: creditor town (required) | |
| txid | No | pix: transaction ID, up to 25 letters and digits | |
| payee | No | swish: Swedish mobile number or 123 business number | |
| proxy | No | paynow or promptpay: the mobile number, UEN, national/tax ID or e-wallet ID | |
| token | No | ton: TON (default) or USDT; stellar: XLM (default) or USDC | |
| amount | No | Amount in the scheme's currency (BRL, EUR, SGD, THB, whole VND, CHF/EUR, CZK, SEK, KHR/USD) or coin (ADA, TON or USDT, XLM or USDC). Leave out to let the payer choose. | |
| expiry | No | paynow: last day the code works; khqr: required with an amount. YYYY-MM-DD | |
| mobile | No | khqr: mobile number with country code | |
| pixKey | No | pix: CPF, CNPJ, +55 phone, email or random key | |
| scheme | Yes | pix (Brazil), sepa (euro credit transfer, EPC069-12), paynow (Singapore), promptpay (Thailand), vietqr (Vietnam), swiss-qr-bill (Swiss QR-bill, SPC 0200), czech-spd (Czech QR Platba), swish (Sweden), khqr (Cambodia, Bakong), or a crypto request: lightning (BOLT 11 invoice, LNURL or Lightning Address), xrp, cardano (CIP-13), tron (plain address), ton, stellar (SEP-0007) | |
| street | No | swiss-qr-bill: creditor street | |
| account | No | czech-spd: Czech IBAN or account number like 19-2000145399/0800 | |
| address | No | xrp, cardano, tron, ton, stellar: the wallet address | |
| bankBin | No | vietqr: the bank's 6-digit BIN | |
| country | No | swiss-qr-bill: creditor 2-letter country code, e.g. CH (required) | |
| dueDate | No | czech-spd: due date, YYYY-MM-DD | |
| instant | No | czech-spd: ask for an instant payment (PT:IP) | |
| message | No | pix or vietqr: message for the payer | |
| request | No | lightning: a BOLT 11 invoice (lnbc…), an LNURL (lnurl1…) or a Lightning Address (name@domain) | |
| bakongId | No | khqr: Bakong account ID, name@bank | |
| currency | No | swiss-qr-bill: CHF (default) or EUR; khqr: KHR (default) or USD | |
| editable | No | paynow: whether the payer may change the amount (default true) | |
| payableBy | No | swiss-qr-bill: true to name the payer in the debtor* fields | |
| proxyType | No | paynow: mobile or uen; promptpay: mobile, id or ewallet | |
| reference | No | sepa: structured RF creditor reference; paynow: bill reference; swiss-qr-bill: QR reference (QR-IBAN) or RF creditor reference (IBAN) | |
| billNumber | No | khqr: bill number | |
| debtorName | No | swiss-qr-bill: payer's name | |
| debtorTown | No | swiss-qr-bill: payer's town | |
| postalCode | No | swiss-qr-bill: creditor postcode (required) | |
| remittance | No | sepa: payment reference text, up to 140 characters (not with reference) | |
| accountType | No | vietqr: account (default) or card | |
| billingInfo | No | swiss-qr-bill: structured billing information, //S1/… | |
| debtorStreet | No | swiss-qr-bill: payer's street | |
| accountNumber | No | vietqr: account or card number | |
| debtorCountry | No | swiss-qr-bill: payer's 2-letter country code | |
| amountEditable | No | swish: whether the payer may change the amount | |
| buildingNumber | No | swiss-qr-bill: creditor building number | |
| constantSymbol | No | czech-spd: constant symbol, up to 10 digits | |
| destinationTag | No | xrp: destination tag (the code then holds an X-address) | |
| specificSymbol | No | czech-spd: specific symbol, up to 10 digits | |
| variableSymbol | No | czech-spd: variable symbol, up to 10 digits | |
| messageEditable | No | swish: whether the payer may change the message | |
| debtorPostalCode | No | swiss-qr-bill: payer's postcode | |
| debtorBuildingNumber | No | swiss-qr-bill: payer's building number |