curl --location --request POST 'https://api.crol.mx//api/AgenciaViaje/RegistrarGasto' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data-raw '{
"almacenId": 0,
"centroCostoId": 0,
"detalle": [
{
"costoId": "string",
"gastoCROLtransaccionId": 0,
"gastoIdCrol": 0,
"importe": 0,
"impuesto1": 0,
"llave2": "string",
"movimientoId": "string",
"orden": 0,
"otroCosto": 0,
"productosServicioCodigo": "string",
"productosServicioId": "string",
"productosServicioNombre": "string",
"total": 0,
"validadorId": "string"
}
],
"divisionId": 0,
"pago": true,
"pagos": [
{
"CLABE": "string",
"costoId": "string",
"cuentaId": "string",
"descripcion": "string",
"fechaPago": "string",
"importe": 0,
"moneda": "string",
"monedaId": 0,
"noCuenta": "string",
"pagoConsecutivo": 0,
"pagoCROLtransaccionId": 0,
"referencia": "string",
"tipoCambio": 0,
"tipoCambioNeto": 0
}
],
"proveedores": [
{
"booking": "string",
"canal": "string",
"cuentaUsada": "string",
"fecha": "string",
"folioGasto": "string",
"llave": "string",
"moneda": "string",
"monedaId": 0,
"movimientoId": "string",
"proveedor": "string",
"proveedorCodigo": "string",
"proveedorId": "string",
"RFC": "string",
"terceros": 0,
"tipo": 0,
"tercerosPagoEspecie": 0
}
],
"sucursalId": 0,
"usuarioId": 0,
"usuarioIdEmail": "string"
}'