Malaleem API
POST /api/v1/payments/qr

Pay a scanned code

Pay the person behind a scanned QR code or a phone tapped over NFC. The caller is the payer. Accepts a signed request token, a legacy `{"user_id"}` JSON code, a Malaleem profile link, or `CARD:<uid>` for a registered Malaleem card (the card's owner is paid).

Parameters

payload string · required

The decoded QR or NFC payload. (`qr_data` is also accepted.)

amount integer

Minor units. Required when the code carries no amount.

currency string

Defaults to the code's currency, then USD.

method string

nfc when the payload came from a tap, so the transaction is recorded as one. Defaults to qr_code.

curl https://malaleem.com/api/v1/payments/qr \
  -H "Authorization: Bearer {token}" \
  -d payload={scanned_token} -d amount=1500