curl --location 'https://api.crol.mx/api/AgenciaViaje/RegistrarFacturaV2' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"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": "293cee4f-9075-4ae1-8aea-cbd201b18113",
"folio": "string",
"movimientoId": "861e014d-0874-4329-be5e-ed09a58e5de2",
"timbrar": true,
"tipo": 0,
"tipoCambioDOF": 0,
"transaccionId": "252a1f7f-00b9-4cc4-88f7-af3e5f05def0",
"transaccionIdCROL": 0,
"transaccionIdCROLReferencia": 0,
"uuid": "string"
},
"resultado": true,
"error": {
"error": null,
"errorMensaje": "string",
"errorCodigo": 0
}
}