curl --location --request POST 'https://api.crol.mx//api/AgenciaViaje/RegistrarFactura' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data-raw '{
"facturas": [
{
"almacenId": 0,
"booking": "string",
"canal": "string",
"cantidad": 0,
"centroCosto": "string",
"centroCostoId": 0,
"cliente": "string",
"clienteCodigo": "string",
"detalle": [
{
"boleto": "string",
"conceptoId": "string",
"conceptoIdCrol": 0,
"costo": 0,
"importe": 0,
"impuesto": 0,
"llave": "string",
"movimientoId": "string",
"notas": "string",
"numero": "string",
"orden": 0,
"partida": 0,
"pasajero": "string",
"productoCodigo": "string",
"productoNombre": "string",
"referencia": "string",
"ruta": "string",
"total": 0,
"TUA": 0
}
],
"divisionId": 0,
"entidadId": "string",
"entidadIdCrol": 0,
"fecha": "string",
"folioVenta": "string",
"formaPago": "string",
"llave": "string",
"metodoPago": "string",
"monedaId": 0,
"movimientoId": "string",
"ordenCompra": "string",
"pagos": [
{
"CLABE": "string",
"conceptoId": 0,
"cuentaId": "string",
"cuentaIdCrol": 0,
"importe": 0,
"monedaId": 0,
"noCuenta": "string",
"pagoId": "string",
"referencia": "string",
"terceros": 0,
"tipoTercerosStatus": 0,
"tipoCambio": 0,
"CROLtransaccionId": 0
}
],
"proyecto": "string",
"RFC": "string",
"sucursalId": 0,
"tipoCambio": 0,
"tipoDocumento": 0,
"transaccionId": "string",
"usoCFDI": "string",
"usuarioId": 0,
"usuarioIdemail": "string",
"validador": "string",
"vendedor": "string"
}
]
}'{
"data": {
"entidadId": 0,
"errorTimbrado": "string",
"facturaId": "string",
"folio": "string",
"movimientoId": "string",
"timbrar": true,
"tipo": 0,
"tipoCambioDOF": 0,
"transaccionId": "string",
"transaccionIdCROL": 0,
"transaccionIdCROLReferencia": 0,
"uuid": "string"
},
"resultado": true,
"error": {
"error": null,
"errorMensaje": "string",
"errorCodigo": 0
}
}