Liquidación de Caña de Azúcar
generarAjustePrecio
Liquidación de Caña de Azúcar
Solicitud
// Creamos una instancia del web service
const ws = afip.WebService("wslca");
// Aqui deben cambiar los datos por los que correspondan.
// Esta request de ejemplo incluye todos posibles
// valores para llamar al metodo generarAjustePrecio, puede que algun
// valor sea opcional.
const data = {
"auth": {
"token": "string",
"sign": "string",
"cuitRepresentada": 1
},
"solicitud": {
"emisor": {
"comprobante": {
"puntoVenta": 1,
"tipoComprobante": 1,
"nroComprobante": 1
},
"tipoAjuste": 1
},
"datosGenerales": {
"fechaComprobante": "YYYY-MM-DD",
"condicionVenta": [
{
"codigo": 1,
"detalle": "string"
}
],
"medioPago": [
{
"codigo": 1,
"detalle": "string"
}
]
},
"detalle": [
{
"comprobanteAjustado": {
"puntoVenta": 1,
"tipoComprobante": 1,
"nroComprobante": 1
},
"nroOrdenItemAjustado": 1,
"diferenciaPrecio": 1.5
}
],
"otroConcepto": [
{
"codConcepto": 1,
"detalle": "string",
"baseImponible": 1.5,
"alicuota": 1.5,
"alicuotaIVA": 1.5,
"importe": 1.5
}
],
"tributo": [
{
"codTributo": 1,
"detalle": "string",
"baseImponible": 1.5,
"alicuota": 1.5,
"importe": 1.5
}
]
}
};
try {
// Realizamos la llamada al metodo del web service
const response = await ws.executeRequest("generarAjustePrecio", data);
// Mostramos la respuesta por consola
console.log(response);
catch(error){
// En caso de error lo mostramos por consola
console.error(error);
}
Respuesta
{
"respuesta": {
"autorizacion": {
"cae": "long",
"fechaVencimientoCae": "date",
"fechaProcesoAFIP": "date"
},
"ajuste": {
"tipoAjuste": "integer",
"esDevolucionMercaderia": "bool"
},
"emisor": {
"comprobante": {
"puntoVenta": "integer",
"tipoComprobante": "integer",
"nroComprobante": "integer"
},
"fechaInicioActividades": "date",
"razonSocial": "string",
"iibb": "string",
"leyenda": "string",
"situacionIVA": "string",
"domicilioPuntoVenta": "string"
},
"receptor": {
"cuit": "long",
"razonSocial": "string",
"iibb": "string",
"situacionIVA": "string",
"domicilio": "string",
"localidad": "integer",
"provincia": "integer"
},
"datosGenerales": {
"fechaComprobante": "date",
"condicionVenta": [
{
"codigo": "integer",
"detalle": "string"
}
],
"medioPago": [
{
"codigo": "integer",
"detalle": "string"
}
]
},
"remito": [
{
"nroRemito": "string",
"kilos": "long"
}
],
"detalle": [
{
"nroOrden": "integer",
"producto": "integer",
"cantidad": "decimal",
"unidadMedida": "integer",
"precioUnitario": "decimal",
"importeSubtotal": "decimal",
"alicuotaIVA": "decimal",
"importeIVA": "decimal",
"importeTotal": "decimal",
"detalleAjuste": {
"comprobanteAjustado": {
"puntoVenta": "integer",
"tipoComprobante": "integer",
"nroComprobante": "integer"
},
"nroOrdenAjustado": "integer"
}
}
],
"otroConcepto": [
{
"codConcepto": "integer",
"detalle": "string",
"baseImponible": "decimal",
"alicuota": "decimal",
"alicuotaIVA": "decimal",
"importe": "decimal",
"importeIVA": "decimal"
}
],
"tributo": [
{
"codTributo": "integer",
"detalle": "string",
"baseImponible": "decimal",
"alicuota": "decimal",
"importe": "decimal"
}
],
"resumenTotales": {
"importeSubtotal": "decimal",
"importeOtrosConceptos": "decimal",
"importeNetoGravado": "decimal",
"importeIVA": "decimal",
"importeSubtotalGeneral": "decimal",
"importeTributos": "decimal",
"importeTotal": "decimal"
},
"pdf": "base64String",
"errores": {
"error": [
{
"codigo": "string",
"descripcion": "string"
}
]
},
"metadata": {
"servidor": "string",
"fechaHora": "datetime"
}
}
}