A3ERP API
English
English
  • Quick Start
    • Initial configuration
    • Installation
  • Versions
  • Documentation
    • API Reference
      • Api
      • Validation
      • Email
      • Master
        • Parameters
      • Document
        • Parameters
      • Various
      • Stock movements
      • Stock Reserves
      • Expeditions
      • Links
      • Stock
      • Portfolio
      • Prices
      • Stored Procedures
      • View
      • Listing
      • FastReport
      • Download Files
      • List Linked Folders
Con tecnología de GitBook
En esta página

¿Te fue útil?

  1. Documentation
  2. API Reference

Prices

AnteriorPortfolioSiguienteStored Procedures

Última actualización hace 2 años

¿Te fue útil?

GET calls

Allows obtaining the selling price, given the input parameters

get

Example:

https://localhost:5555/api/precios/ObtPrcVenta/ 00077169/1689/20220912/1/5

Parámetros de ruta
articulostringRequerido

The article code

clientestringRequerido

The customer code

fechastringRequerido

The date of the sale price, the date is entered in YYYYYMMDD format.

tarifastringRequerido

the tariff

unidadesstringRequerido

The units

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
Returns the selling price
application/json
get
GET /api/precios/ObtPrcVenta/{articulo}/{cliente}/{fecha}/{tarifa}/{unidades} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

Returns the selling price

{
  "Precio": "66,92",
  "TotalDto": "15",
  "Dto1": "15",
  "Dto2": "0",
  "Dto3": "0",
  "Dto4": "0"
}

It allows to obtain the purchase price, given the input parameters.

get

Example:

https://localhost:5555/api/precios/ObtPrcCompra/ 00077169/2/20220912/3/5

Parámetros de ruta
articulostringRequerido

The article code

proveedorstringRequerido

The supplier code

fechastringRequerido

The date of the sale price, the date is entered in YYYYYMMDD format.

tarifastringRequerido

the tariff

unidadesstringRequerido

The units

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
Returns the purchase price
application/json
get
GET /api/precios/ObtPrcCompra/{articulo}/{proveedor}/{fecha}/{tarifa}/{unidades} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

Returns the purchase price

{
  "Precio": "66,92",
  "TotalDto": "0",
  "Dto1": "0",
  "Dto2": "0",
  "Dto3": "0",
  "Dto4": "0"
}

Allows to obtain the cost price, given the input parameters

get

Example:

https://localhost:5555/api/precios/ObtPrcCoste/ 28061600/21/PMED

Parámetros de ruta
articulostringRequerido

The article code

almacenstringRequerido

The warehouse code

obtcostestringRequerido

The values for obtcoste are: MANU : Manual price PEST: Standard price PFAB: Production price PMEA: Average price (warehouse - item) PMED: Average price (warehouse - item - lot - serial number...) PMET: Average price all warehouses PCOM: Last net purchase price

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
returns the cost price
application/json
get
GET /api/precios/ObtPrcCoste/{articulo}/{almacen}/{obtcoste} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

returns the cost price

{
  "Precio": "8,06578087"
}

Allows to obtain the average price, given the input parameters

get

Example:

https://localhost:5555/api/precios/ObtPrcMedio/ 00077169/3

Parámetros de ruta
articulostringRequerido

The article code

almacenstringRequerido

The warehouse code

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
Returns the average price
application/json
get
GET /api/precios/ObtPrcMedio/{articulo}/{almacen} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

Returns the average price

{
  "Precio": "66,92"
}
  • GET calls
  • GETAllows obtaining the selling price, given the input parameters
  • GETIt allows to obtain the purchase price, given the input parameters.
  • GETAllows to obtain the cost price, given the input parameters
  • GETAllows to obtain the average price, given the input parameters