AGR (Reproweb)
Consulta Puntual
AGR (Reproweb)
Solicitud
// Creamos una instancia del web service
const ws = afip.WebService("wsagr");
// Aqui deben cambiar los datos por los que correspondan.
// Esta request de ejemplo incluye todos posibles
// valores para llamar al metodo Consulta, puede que algun
// valor sea opcional.
const data = {
"Auth": {
"Token": "string",
"Sign": "string",
"Cuit": 1
},
"Periodo": "string",
"Cuit": 1
};
try {
// Realizamos la llamada al metodo del web service
const response = await ws.executeRequest("Consulta", data);
// Mostramos la respuesta por consola
console.log(response);
catch(error){
// En caso de error lo mostramos por consola
console.error(error);
}
Respuesta
{
"Respuesta": {
"Det": {
"DetalleCuits": [
{
"Cuit": "long",
"Pdo": "string",
"Rsp": "string",
"RTran": "string",
"FTran": "string",
"CodObs": "string",
"Err": {
"Code": "integer",
"Msg": "string"
},
"Evt": {
"Code": "integer",
"Msg": "string"
}
}
]
},
"Err": {
"Code": "integer",
"Msg": "string"
},
"Evt": {
"Code": "integer",
"Msg": "string"
}
}
}