Generate an IPS QR code for an invoice
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X POST "https://api.leapa.co/v2/invoices/inv_7c1f9a2b48/generate-qr-code" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 45000,
"currency": "BIF",
"qr_type": "string"
}'Response
OK
{
"amount": 45000,
"currency": "BIF",
"status": "pending",
"message": "Request sent to the payer",
"invoice_id": "inv_7c1f9a2b48",
"qr_reference": "QR2026013100147",
"qr_header_uuid": "string",
"qr_as_text": "00020101021226580014BI.CBB.QR0111...",
"qr_as_image": "data:image/png;base64,iVBORw0KGgo...",
"expires_at": 1769850251000
}Path parameters
Values that go into the URL itself.
invoiceIdstringrequiredExample:inv_7c1f9a2b48
Request body
application/json
Optional. Send it as JSON.
amountinteger<int64>currencystringqr_typestring
Response
application/json
amountinteger<int64>currencystringstatusstringmessagestringinvoice_idstringqr_referencestringqr_header_uuidstringqr_as_textstringqr_as_imagestringexpires_atinteger<int64>
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error