Introduction to CNAB240 Batch Transaction
QI Tech, through the Payments API, enables payments using the CNAB240 format, supporting different types of transactions, such as boletos, PIX and TED, in a single call. This system enables batch payment execution, ensuring greater efficiency for high-volume financial processes.
Payments are processed asynchronously, with rigorous validations during CNAB240 file submission. If the initial request results in an HTTP status 4xx, no payment will be processed.
After submission, the file can be approved or rejected. If rejected, the API will return a detailed list of errors related to file formatting, allowing the integrator to make necessary corrections before attempting to send again. The file will be rejected if any syntactic error is found. However, it is read in its entirety, or until a limit of 100 errors is found, so that all errors can be returned and corrected in a more practical and efficient manner.
While the file is being read, occurrences are added to a queue, but will only be processed if it is accepted. That is, if the file is rejected (status rejected), all its occurrences will also be discarded. On the other hand, the moment the file is completely read and accepted (status accepted), processing of these occurrences begins, ensuring continuity of transactions based on the provided data.