Master

Access to a3ERP master table data

Parameters

You can consult all the teachers in the link below.

Parameters

GET calls

Filtering

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

Recover all master data

get

It returns the data of the indicated master (Consult parameters to see the available masters).

Example:

https://server:5555/api/maestro/almacenes

Parámetros de ruta
maestrostring · enumRequerido

Teacher to recover

Valores posibles:
Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200

Returns an Array Objects with all data from the master

application/json
get
/maestro/{maestro}
200

Returns an Array Objects with all data from the master

Retrieve a row from the master

get

Returns the row of the indicated master (Consult parameters to see the available masters).

Example:

https://server:5555/api/maestro/almacenes/50

Parámetros de ruta
maestrostringRequerido

Master to recover

codigostringRequerido

The master code to be retrieved

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200

Returns the row of the master selected by the identifier

application/json
get
/maestro/{maestro}/{codigo}
200

Returns the row of the master selected by the identifier

Change the code of a master

get
Parámetros de ruta
maestrostringRequerido

Master to change

actualstringRequerido

The current code

nuevostringRequerido

The new code

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200

Ok

Sin contenido

get
/maestro/{maestro}/cambiarcodigo/{actual}/{nuevo}
200

Ok

Sin contenido

Checks if the field exists in the master

get
Parámetros de ruta
maestrostringRequerido

The teacher to check

campostringRequerido

The field to be checked

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200

Returns exists or does not exist

Sin contenido

get
/maestro/{maestro}/existecampo/{campo}
200

Returns exists or does not exist

Sin contenido

Duplicate master

get
Parámetros de ruta
maestrostringRequerido

The teacher to duplicate

actualstringRequerido

The master code to be duplicated

nuevostringRequerido

The new duplicate teacher code

paramsstringRequerido

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

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200

Duplicate article

Sin contenido

get
/maestro/{maestro}/duplicar/{actual}/{nuevo}/{params}
200

Duplicate article

Sin contenido

POST Call

Discharge

post

This call allows you to register more data for the selected master.

Parámetros de ruta
maestrostringRequerido

Teacher to be added

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
Respuestas
200

Master correctly inserted: {master number}

application/json
post
/maestro/{maestro}
200

Master correctly inserted: {master number}

Discharge Body

Register an item with code 8403

https://servidor:5555/api/maestro/articulos

PUT Call

Updating a master

put

This call updates the row of the selected master.

Parámetros de ruta
maestrostringRequerido

Master to update

codigostringRequerido

Code of the master to update, In multiple key masters, the code is left blank and the key values are set in the JSON.

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
Respuestas
200

Master successfully modified: {master number}

Sin contenido

put
/maestro/{maestro}/{codigo}
200

Master successfully modified: {master number}

Sin contenido

Body of Maintain a master

Modify an item with code 8403

https://servidor:5555/api/maestro/articulos/8403

DELETE calls

Delete a row from a master

delete
Parámetros de ruta
maestrostringRequerido

Master with the row to be deleted

codigostringRequerido

Code of the master row to be deleted

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Respuestas
200

Master successfully removed: {master number}

Sin contenido

delete
/maestro/{maestro}/{codigo}
200

Master successfully removed: {master number}

Sin contenido

Última actualización

¿Te fue útil?