Stock movements
Access to external stock movements via NAX
Última actualización
¿Te fue útil?
Access to external stock movements via NAX
Última actualización
¿Te fue útil?
In the following link you can consult how to filter this call.
This endpoint can be used with and without id (without id you can use filtering).
Example:
The document identifier
Bearer + JWT_token
GET /api/movimientosstock/{id} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
Returns an Array with the selected response
{
"codart": " 1",
"descart": "Bicicleta carrera",
"codalm": " 1",
"descalm": "Productos acabados (central)",
"codalmsal": "",
"descalmsal": "",
"unicalstock": 0,
"unicalc": 0,
"entranstock": 500,
"entran": 500,
"salenstock": 0,
"salen": 0,
"prcmoneda": 612.25,
"precio": 612.25,
"desc1": 30,
"desc2": 0,
"desc3": 0,
"desc4": 0,
"prcmedio": 428.575,
"costeadic": 0,
"obtprccoste": 1,
"numserie": "",
"lote": "",
"feccaduc": "1899-12-30T00:00:00.000+01:00",
"ubicacion": "text",
"ubicacionsal": "text",
"fecdoc": "2017-01-01T00:00:00.000+01:00",
"numdoc": "1//1",
"referencia": "",
"codmon": "EURO",
"cambio": 1,
"codigo": " 1",
"nombre": "PROSPORTS",
"orden": 0,
"indentificador": 21439,
"numlin": 1,
"idlin": 207266,
"idtot": 89505,
"idlogp": 0,
"idlinc": 0,
"idtotdoc": 89505,
"grupo": 1,
"tipdoc": "FC",
"ordendoc": 3
}
The identifier of the movement to be deleted
Bearer + JWT_token
DELETE /api/movimientosstock/eliminar/{id} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
The movement has been successfully removed
Sin contenido
The movement identifier
The line to be deleted
Bearer + JWT_token
DELETE /api/movimientosstock/eliminar/{id}/linea/{idlinea} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
The movement has been successfully removed
Sin contenido
This endpoint allows you to create a stock movement by adding a JSON with a specific structure to the request.
Bearer + JWT_token
POST /api/movimientosstock 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": 1
}