Stock Reserves
Access to external stockholdings via NAX
Última actualización
¿Te fue útil?
Access to external stockholdings via NAX
Última actualización
¿Te fue útil?
In the following link you can consult how to filter this call.
This call can be made without the identifier to obtain all reservations.
Example:
The stock reserve identifier
Bearer + JWT_token
GET /api/reservas/{id} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
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"
}
The identifier of the registry
Bearer + JWT_token
DELETE /api/reservas/eliminar/{id} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
The reservation has been successfully removed
Sin contenido
The identifier of the registry
Bearer + JWT_token
DELETE /api/reservas/eliminar/{id}/linea/{idlinea} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
The reserve line has been deleted correctly.
Sin contenido
Bearer + JWT_token
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"
}
]
}
}
Inserted correctly
{
"Codigo": "{id}"
}