Skip to main content

Remittance file upload (CNAB)

Attention!

The call must be authenticated following the standard described in the Document upload section.

Request

ENDPOINT
/payments/account/ACCOUNT_KEY/remittance
METHOD
POST

Path parameters

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key, in uuid v4 format36

Request Body Params

The following data must be sent as form-data in the request body:

FieldTypeDescriptionCharacters
file *fileCNAB file in the standard stipulated by QI Tech-

Response

STATUS
202
Response Body
{
"cnab_remittance_key": "f14e9bac-94ed-4eb1-87b4-7fd7b7a2d280",
"cnab_remittance_status": "accepted"
}

Response Body Params

FieldTypeDescriptionCharacters
cnab_remittance_key *uuidv4Unique CNAB file identification key in uuid v4 format36
cnab_remittance_status *stringCNAB file statuscnab_remittance_status enumerators

cnab_remittance_status enumerators

EnumeratorDescription
uploadedUpload successful, but file hasn't started processing yet
processingFile being read
acceptedFile read and accepted
rejectedFile read and rejected (all file occurrences are rejected)

Error Response

STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Code
status
QI Code
code
Title
title
Description (eng)
description
Description (ptbr)
translation
400QIT000001Bad RequestSchema ErrorSchema Inválido
409PAP000002ConflictCNAB file alredy receivedArquivo CNAB já recebido
400PAP000003Bad RequestInvalid file name '<file_name>' . Please do not use specials characters like '!', '@', '(', ')', '$'.Nome de arquivo invalido '<file_name>'. Favor não utilizar caracteres especiais como '!', '@', '(', ')', '$'."
403PAP000004ForbiddenUsuario não tem autorização para fazer essa açãoUser is not allowed to do this action
404PAP000005Not FoundThe source account key was not foundA chave da conta de origem não foi encontrada