post https://faas.sandbox.tracefinance.io/pix/api/transactions/qrCode
This API allows for creating QR code transactions, with special handling for transactions involving optional amounts.
When initiating a QR code transaction, you can optionally include an amount
in your request. The handling of the transaction is influenced by whether an amount
is specified and whether the QR code itself specifies an amount.
-
With
amount
Specified:- If the QR code does not specify an amount, the amount from the request is used.
- If the QR code specifies an amount, it's validated against the request amount. A mismatch triggers an error
INCONSISTENT_QRCODE_AMOUNT_VALUE
.
-
Without
amount
Specified:- If the QR code lacks a predefined amount, error
MISSING_QRCODE_AMOUNT
is returned. - If the QR code specifies an amount, the transaction uses this amount.
- If the QR code lacks a predefined amount, error