Todas las colecciones
API
API Operacíon listar_remitos
API Operacíon listar_remitos
Actualizado hace más de una semana

Comprobaciones:

  • La sesión es válida (si están activadas las sesiones). Implica que el usuario exista.

  • Verificar que el usuario tenga permisos sobre la empresa

  • Se comprueba que los siguientes campos estén seteados y no sean vacios : idEmpresa, value.


Petición:

{
"auth": {
"usuario": "USUARIO_DESARROLLADOR",
"password": "PASSWORD_DESARROLLADOR"
},
"service": {
"provision": "Inventario",
"operacion": "listar_remitos"
},
"parameters": {
"sesion": {
"usuario": "a",
"claveSesion": "d5efb25ea3a56d04862b6709e017406a"
},
"idEmpresa": "98",
"order": [{
"field": "fechaContable",
"dir": "ASC"
}],
"filter": [{
"field": "idItem",
"op": "=",
"value": "3"
}],
"start": 0,
"limit": 50
}
}

Errores posibles

  • ID de empresa faltante.

  • La empresa no pertenece al usuario.

  • Falta el valor por el que se va a filtrar la búsqueda de remitos (value).

  • Error al obtener listado de remitos

Respuesta (éxito)

{
 "service": {
 "provision": "Inventario",
 "operacion": "listar_remitos",
 "version": "1_0_0_0",
 "response_date": "2016-11-08 17:42:49"
 },
 "result": {
 "estado": 0,
 "mensaje": "La operaci\u00f3n se realiz\u00f3 correctamente"
 },
 "response": {
 "success": true,
 "message": "La operaci\u00f3n se realiz\u00f3 con \u00e9xito.",
 "data": [{
 "idRemito": "67213",
 "fechaContable": "18-10-2016",
 "Nombre": "RICARDO LORENZO",
 "nroRemito": "0003-00000001",
 "Cantidad": "1.00000",
 "nroFactura": ""
 }, {
 "idRemito": "69280",
 "fechaContable": "26-10-2016",
 "Nombre": "AGUSTIN BRANCATTO",
 "nroRemito": "0003-00000018",
 "Cantidad": "4.00000",
 "nroFactura": "0007-00000008"
 }, {
 "idRemito": "70755",
 "fechaContable": "31-10-2016",
 "Nombre": "HUGOMAROMARTINEZ",
 "nroRemito": "0003-00000079",
 "Cantidad": "2.00000",
 "nroFactura": "0007-00000319"
 }, {
 "idRemito": "71898",
 "fechaContable": "03-11-2016",
 "Nombre": "JESUSALEJANDROCURTI",
 "nroRemito": "0003-00000110",
 "Cantidad": "1.00000",
 "nroFactura": "0007-00000342"
 }, {
 "idRemito": "71915",
 "fechaContable": "03-11-2016",
 "Nombre": "FABRICIO256",
 "nroRemito": "0003-00000113",
 "Cantidad": "20.00000",
 "nroFactura": "0007-00000345"
 }, {
 "idRemito": "72105",
 "fechaContable": "03-11-2016",
 "Nombre": "MOSAICOS LANIK SA",
 "nroRemito": "0003-00000118",
 "Cantidad": "150.00000",
 "nroFactura": "0007-00000011"
 }, {
 "idRemito": "72595",
 "fechaContable": "04-11-2016",
 "Nombre": "CESAR DI GREGORIO",
 "nroRemito": "0003-00000148",
 "Cantidad": "100.00000",
 "nroFactura": "0004-00000069"
 }, {
 "idRemito": "73553",
 "fechaContable": "07-11-2016",
 "Nombre": "PELOZOFACUNDO",
 "nroRemito": "0003-00000179",
 "Cantidad": "1.00000",
 "nroFactura": "0007-00000391"
 }, {
 "idRemito": "74019",
 "fechaContable": "08-11-2016",
 "Nombre": "JAVIER BUSSOLO",
 "nroRemito": "0003-00000185",
 "Cantidad": "15.00000",
 "nroFactura": "0004-00000075"
 }],
 "total": "9"
 }
}

¿Ha quedado contestada tu pregunta?