Document
Access to data from all a3ERP documents (purchases, sales and stocks).
Parameters
You can consult all types of documents in the link below.
ParametersGET calls
Filtering
In the following link you can consult how to filter this call.
It returns all the data of the indicated document (see parameters to see the available documents).
Example:
The type of document
Bearer + JWT_token
Returns an Array Objects with all the data of the document
Sin contenido
Returns an Array Objects with all the data of the document
Sin contenido
You can request the printing of a PDF document by means of this call, the model is not obligatory but if you do not indicate it, it will take the client's or supplier's model by default.
Example:
The type of document
The document identifier
The model of the document
Bearer + JWT_token
Return an Array Object with the base64 document
Return an Array Object with the base64 document
A document can be completely overridden or one of its lines can be overridden.
Example:
The type of document
The identifier of the document to be cancelled
The line of the document to be cancelled
Bearer + JWT_token
The document has been successfully reversed
Sin contenido
The document has been successfully reversed
Sin contenido
Adding to the /{id} path allows you to choose a specific document header and not the list of all document headers.
Example:
The type of document
The identifier of the document to be cancelled
Bearer + JWT_token
Returns the header of a particular document.
Sin contenido
Returns the header of a particular document.
Sin contenido
POST calls
You can send a document to an email with the data provided in a JSON, the model is not obligatory but if you do not indicate it, it will take by default the client's or the supplier's model.
The type of document
The document identifier
The model of the document
Bearer + JWT_token
Mail sent successfully
Sin contenido
Mail sent successfully
Sin contenido
It can be served to order, delivery note or invoice and also lines to order or delivery note.
The type of document
servirapedido, serviraalbaran, servirafactura, servirlineasapedido, servirlineasaalbaran
The document to be served, if they are lines, do not enter it
Bearer + JWT_token
Document served
Sin contenido
Document served
Sin contenido
We can link a file passed to us in a JSON to a buy or sell document. The file will be saved in the link folder specified in the config.ini with the name and extension we pass in the name field, which will determine the file type.
The type of document
The identifier of the document you want to link a file to
Bearer + JWT_token
Correctly linked {Type of document}
Sin contenido
Correctly linked {Type of document}
Sin contenido
We can create a new document by adding a JSON with all the parameters of the selected document type.
The type of document
Bearer + JWT_token
The {document type} has been created
The {document type} has been created
PUT calls
We can modify a document by adding a JSON with the corresponding parameters, there are no parameters required.
The type of document
The identifier of the document you want to modify
Bearer + JWT_token
The {document} has been updated
The {document} has been updated
DELETE calls
The type of document
The identifier of the document you want to modify
Bearer + JWT_token
Successful document deletion
Sin contenido
Successful document deletion
Sin contenido
Última actualización
¿Te fue útil?