Master
Access to a3ERP master table data
Última actualización
¿Te fue útil?
Access to a3ERP master table data
Última actualización
¿Te fue útil?
You can consult all the teachers in the link below.
In the following link you can consult how to filter this call.
It returns the data of the indicated master (Consult parameters to see the available masters).
Example:
Teacher to recover
Bearer + JWT_token
GET /api/maestro/{maestro} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
Returns an Array Objects with all data from the master
{
"codart": " 1",
"descart": "ARTICULO REVISAR CONTABILIZACION",
"afestock": "[F,T]",
"artpro": "",
"bloqueado": "[F,T]",
"cantmin": 0,
"codalm": "text",
"descalm": "text",
"codpro": "text",
"nompro": "text",
"esacabado": "[F,T]",
"escomponente": "[F,T]",
"escompra": "[F,T]",
"esventa": "[F,T]",
"codalt": "text"
}
Returns the row of the indicated master (Consult parameters to see the available masters).
Example:
Master to recover
The master code to be retrieved
Bearer + JWT_token
GET /api/maestro/{maestro}/{codigo} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
Returns the row of the master selected by the identifier
{
"codart": " 1",
"descart": "ARTICULO REVISAR CONTABILIZACION",
"afestock": "[F,T]",
"artpro": "",
"bloqueado": "[F,T]",
"cantmin": 0,
"codalm": "text",
"descalm": "text",
"codpro": "text",
"nompro": "text",
"esacabado": "[F,T]",
"escomponente": "[F,T]",
"escompra": "[F,T]",
"esventa": "[F,T]",
"codalt": "text"
}
Master to change
The current code
The new code
Bearer + JWT_token
GET /api/maestro/{maestro}/cambiarcodigo/{actual}/{nuevo} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
Ok
Sin contenido
The teacher to check
The field to be checked
Bearer + JWT_token
GET /api/maestro/{maestro}/existecampo/{campo} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
Returns exists or does not exist
Sin contenido
The teacher to duplicate
The master code to be duplicated
The new duplicate teacher code
Special options to be duplicated (Stock, Vinculos, Referencias, Idiomas, Escandallo, TarifasV, PreciosEspV, AlarmasV, ComisionesV, DescuentosV, TarifasC, PreciosEspC, AlarmasC, DescuentosC) p.e Stock=True,Idiomas=False,DescuentosC=False
Bearer + JWT_token
GET /api/maestro/{maestro}/duplicar/{actual}/{nuevo}/{params} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
Duplicate article
Sin contenido
Master with the row to be deleted
Code of the master row to be deleted
Bearer + JWT_token
DELETE /api/maestro/{maestro}/{codigo} HTTP/1.1
Host: server:<port>
Authorization: text
Accept: */*
Master successfully removed: {master number}
Sin contenido
This call allows you to register more data for the selected master.
Teacher to be added
Bearer + JWT_token
POST /api/maestro/{maestro} HTTP/1.1
Host: server:<port>
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"json": {
"codart": 8403,
"descart": "PORTATIL LENOVO THINKPAD T480",
"prccompra": 1100,
"prcventa": 1500
}
}
Master correctly inserted: {master number}
{
"Codigo": "{numero de maestro}"
}
This call updates the row of the selected master.
Master to update
Code of the master to update, In multiple key masters, the code is left blank and the key values are set in the JSON.
Bearer + JWT_token
PUT /api/maestro/{maestro}/{codigo} HTTP/1.1
Host: server:<port>
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"json": {
"prccompra": "text",
"prcventa": "text"
}
}
Master successfully modified: {master number}
Sin contenido