Ir al contenido

Consultar Precios de Referencias

Consulta los precios de una Referencia en todas las Listas o de todas las Referencias en una sola Lista.

MétodoURL
POSThttp://144.202.47.24/{instancia_cliente}/RestServerIsapi.dll/api/v1/TApoloRestInterface/executequery

En la variable {instancia_cliente} se indica el nombre de la instancia proporcionado por Apolosoft en el momento de la configuración.

CampoDescripciónTamañoObservación
CLAVENombre de la API50Para este caso es Get_Precios_Referencias.
LISTACódigo de la lista de precios5Para todas las listas, dejar vacío.
REFERENCIACódigo de la referencia o producto20Para todas las referencias, dejar vacío.

El endpoint retornará un error si LISTA y REFERENCIA están vacíos al mismo tiempo. La funcionalidad de retornar todas las referencias en una lista o todas las listas a las que pertenece una referencia son mutuamente excluyentes.

{
"CLAVE": "Get_Precios_Referencias",
"LISTA": "CON",
"REFERENCIA": ""
}
{
"cod_error": 0,
"data": [
{
"LISTA": "CON",
"NOMBRE_LISTA": "LISTA DE PRECIOS DE CONTADO",
"REFERENCIA": "7005029027151",
"NOMBRE": "PILA ULTRA AA",
"PRECIO": 1707
},
{
"LISTA": "CON",
"NOMBRE_LISTA": "LISTA DE PRECIOS DE CONTADO",
"REFERENCIA": "7702004003501",
"NOMBRE": "WHISKY 12 AÑOS BOTELLA 750CC",
"PRECIO": 80190
},
{
"LISTA": "CON",
"NOMBRE_LISTA": "LISTA DE PRECIOS DE CONTADO",
"REFERENCIA": "7702004003502",
"NOMBRE": "WHISKY 18 AÑOS BOTELLA 750CC",
"PRECIO": 148170
}
]
}
{
"cod_error": 0,
"ex_execsql": "[FireDAC][Phys][FB]exception 16\r\nREST_ERROR.\r\n*** DEBE ESCOGER UNA LISTA O UNA REFERENCIA ***.\r\nAt procedure REST_SELECT_PRECIOS_REFERENCIA line: 15, col: 5"
}