multipart/form-data y utiliza OCR para extraermultipart/form-datafile (se pueden enviar hasta 50 archivos con el mismo nombre de campo)| Campo | Tipo | Descripcion |
|---|---|---|
hasErrors | boolean | Indica si hubo errores al procesar algun archivo |
errors | array | Lista de archivos con error y su tipo de error |
extractedInvoices | array | Facturas extraidas de los archivos procesados |
INVALID_FILE_TYPE: El tipo de archivo no es soportadocurl --location --request POST 'https://api.develop.cresium.app/v3/invoice/read'{
"data": {
"hasErrors": true,
"errors": [
{
"name": "string",
"error": "INTERNAL_SERVER_ERROR"
}
],
"extractedInvoices": [
{
"externalId": "string",
"payerName": "string",
"payerNationalIdentifier": "string",
"payerEmail": "string",
"description": "string",
"amount": 0,
"createdAt": "string",
"expiresAt": "string",
"fileUrl": "string",
"status": "PROCESSING"
}
]
}
}