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

Stock Reserves

Access to external stockholdings via NAX

AnteriorStock movementsSiguienteExpeditions

Última actualización hace 2 años

¿Te fue útil?

GET calls

Filtering

In the following link you can consult how to filter this call.

POST calls

Body of Add stock reserve

Add a stock reserve

https://server:5555/api/reservas

{
    “codalm": "1",
    "fecdoc": "01/01/2022",
    "lineas":
        [
            {
            "codart": "1",
            "motivo" : "RESERVA STOCK PRUEBA API ",
            "unidadesstock": "5",
            "unidades": "5"
            },
            {
            "codart": "2",
            "motivo" : "SALIDA RESERVA STOCK PRUEBA API",
            "unidadesstock": "-10",
            "unidades": "-10"
            }
        ]
}

DELETE calls

Obtain data from the indicated booking record

get

This call can be made without the identifier to obtain all reservations.

Example:

https://server:5555/api/reservas/30

Parámetros de ruta
idstringRequerido

The stock reserve identifier

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
Returns an Array with the selected reserve
application/json
get
GET /api/reservas/{id} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

Returns an Array with the selected reserve

{
  "identificador": 1170,
  "tipdoc": "PV",
  "tipocont": "1",
  "serie": "    2019",
  "numero": 1,
  "numdoc": "1/2019/1",
  "referencia": "",
  "codart": "              1",
  "descart": "Bicicleta carrera",
  "codalm": "       1",
  "descalm": "Finished products (central)",
  "fecent": "2019-10-05T00:00:00.000+02:00",
  "fecdoc": "2019-10-05T00:00:00.000+02:00",
  "entran": 0,
  "salen": 21,
  "compras": 0,
  "ventas": 21,
  "ordenes": 0,
  "externas": 0,
  "codigo": "       1",
  "nombre": "SPORTS ABC",
  "lote": "",
  "numserie": "",
  "feccaduc": "1899-12-30T00:00:00.000+01:00",
  "ubicacion": "text"
}

Deletes all records of the specified booking

delete

Example:

https://server:5555/api/reservas/eliminar/30

Parámetros de ruta
idstringRequerido

The identifier of the registry

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
The reservation has been successfully removed
delete
DELETE /api/reservas/eliminar/{id} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

The reservation has been successfully removed

Sin contenido

Delete the record of the indicated booking

delete

Example:

https://server:5555/api/reservas/eliminar/30/linea/2

Parámetros de ruta
idstringRequerido

The identifier of the registry

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200
The reserve line has been deleted correctly.
delete
DELETE /api/reservas/eliminar/{id}/linea/{idlinea} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
200

The reserve line has been deleted correctly.

Sin contenido

  • GET calls
  • Filtering
  • GETObtain data from the indicated booking record
  • POST calls
  • POSTAdd data from the indicated booking record
  • DELETE calls
  • DELETEDeletes all records of the specified booking
  • DELETEDelete the record of the indicated booking

Add data from the indicated booking record

post
Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
Respuestas
200
Inserted correctly
application/json
post
POST /api/reservas HTTP/1.1
Host: server:<port>
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 128

{
  "json": {
    "codalm": "text",
    "fecdoc": "text",
    "lineas": [
      {
        "codart": "text",
        "motivo": "text",
        "unidadesstock": "text",
        "unidades": "text"
      }
    ]
  }
}
200

Inserted correctly

{
  "Codigo": "{id}"
}