curl --location --request POST 'https://api.crol.mx//api/NotaVenta' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"detalle": [
{
"almacenId": 0,
"cantidad": 0,
"centroCostoId": 0,
"comentario": "string",
"conceptoId": 0,
"costoIdentificado": {
"ListaLotesCapa": [
{
"lote": "string",
"cantidad": 0,
"capaId": 0,
"cantidadMaxima": 0,
"fechaCaducidad": "string"
}
]
},
"costoIdentificadoTipo": 0,
"descuento": 0,
"divisionId": 0,
"impuesto1": 0,
"impuesto1_ret": 0,
"impuesto2_ret": 0,
"impuesto3": 0,
"impuestoId1": 0,
"impuestoId1_ret": 0,
"impuestoId2_ret": 0,
"impuestoId3": 0,
"precioUnitario": 0,
"subtotal": 0,
"sucursalId": 0,
"total": 0,
"umId": 0,
"movimientoId2": 0,
"transaccionId2": 0
}
],
"encabezado": {
"almacenId": 0,
"centroCostoId": 0,
"clienteId": 0,
"clienteNombre": "string",
"comentario": "string",
"descuento": 0,
"divisionId": 0,
"fecha": "string",
"impuesto1": 0,
"impuesto1_ret": 0,
"impuesto2_ret": 0,
"impuesto3": 0,
"listaId": 0,
"monedaId": 0,
"referenciaExterna": "string",
"rfc": "string",
"subtotal": 0,
"sucursalId": 0,
"tipoCambio": 0,
"total": 0
},
"formasPago": [
{
"cuentaId": 0,
"formaId": 0,
"importe": 0,
"referencia": "string"
}
]
}'