https://devapiacp3.axosnet.io/api/v1/InvoicesProcessed/InvoiceStatus | Method POST |
JSON (Body) |
[
{
"documentId": 332,
//id de la factura generado por ACP3
"documentNumber":"123"
//número de documento
"externalSystem": "SAP",
//quien genera la peticion
"externalWorkFlow": "PAG",
//Opciones de estatus en SAP: PREL, CONT, BOR, ANUL, PAG, NING (Preliminar, Contabilizada, Borrada, Anulada, Pagada, No Ingresada)
"status": true,
//true si el proceso fue correcto, false entraría como un error
"statusCP": "PAR",
//Opciones de estatusCP: PEN, PAR, PAG(Pendiente, Parcial, Pagada)
"message": "Factura ingresada correctamente",
//descripción del movimiento realizado
"logError": [
{
"message" : "Hubo error en el RFC"
},
{
"message" : "Hubo error en el Total"
}
]
//en caso de que al procesar la facturas manden el Status en "False" y el ExternalWorkFlow con valor "NING" debemos leer y guardar los mensajes que nos envíen en el logError que corresponde los errores que encontraron en SAP
}
]
Sin UUID (Facturas Extranjeras):
Ejemplo Body
[
{
"documentId": 332,
//documentid in acp 3.0
"documentNumber":"123"
//númber document
"externalSystem": "SAP",
//ERP Identifier
"externalWorkFlow": "PAG",
//Status Options in ERP: PREL, CONT, BOR, ANUL, PAG, NING
"status": true,
//true or false
"message": "Invoice upload sucessful",
//Logs
"logError": [
{
"message" : "Error in the TAX ID"
},
{
"message" : "Error in Amount"
}
]
//If when processing the invoices they send the Status to "False" and the ExternalWorkFlow with a value of "NING", we must read and save the messages they send us in the logError that corresponds to the errors they found in the ERP
}
]
Resultados:
Status Code | Message |
200 | Ok |
200 | No invoices pending processing were found. |
400 | Data Error |
400 | The Application is not subscribed |
401 | unauthorized |
500 | Exception Message |