In this article we answer frequently asked questions for developement.
Question: Where can I find documention on the document object model of a receipt?
You can find documentation of the document object model at following sources:
- Swagger documentation of fiscal service at (http://localhost:7678/swagger). The fiscal service must be installed.
- documentation of the document object model as PDF Docmentation at (http://www.retailforce.cloud/downloads) subfolder: "object model documentation" of the repective version.
Question: I did not understand document positions, why are there different types of positions?
A receipt always contains different position types like item, text, sum, etc. in real life. To come as close as possible to real life we defined more than one position type.
A detailled description concerning different position types you can find here: Different types of positions
Question: Which fields on a receipt are mandatory ?
General mandatory fields (for all countries) are marked with the attribute "Required" in swagger and pdf documentation.
To get the mandatory fields for each country you can query the fiscal service for that:
- curl -X GET "http://localhost:7678/api/v1/information/client/c1062c55-57c4-4ed2-9c53-aff1762326a4/documentMandatoryFields/Document" -H "accept: text/plain"
- For client: c1062c55-57c4-4ed2-9c53-aff1762326a4
For object: Document
Question: Where can I find the mandatory types of receipt for each country?
You can find the mandatory types of documents to send in the developer information of the respective country.
Please sign in to leave a comment.