Expected payment date in QR Code decodingDuring QR Code decoding, the
expectedPaymentDateattribute can be provided.This attribute only takes effect for dynamic charges with an expiration date, as in these cases, the final value of the charge may vary depending on the actual payment date due to the application of:
- Discounts;
- Deductions;
- Interest;
- Fines.
How is the attribute used?
When the
expectedPaymentDatefield is provided, the institution issuing the charge must use this date as a reference to calculate the updated value.The value returned in the API response must reflect the financial rules applicable to the indicated date.
Behavior in the absence of the attribute
If the
expectedPaymentDateattribute is not sent, the reference date for calculating the charge value will be automatically defined according to the rules below:
- Decoding on a date equal to or before the expiration:
- The reference date will be the charge's expiration date.
- Decoding on a date after the expiration:
- The reference date will be the QR Code decoding date.
post
https://api-sandbox.asaas.com/v3/pix/qrCodes/decode
