Creation of the fiscal module
To transfer fiscal documents (fiscal data) you've first to create a fiscal module. This can be done in several ways:
- If you use the trusted fiscal service (windows or linux service), the fiscal module will be automatically created for you by the fiscal service.
- If you plan to do the integration of the fiscal module with direct .net dll integration you have to intantiate the fiscal module by your own. A detailled description can be found below:
Create / instantiate the fiscal module
Transfer of documents
To transfer fiscal documents to the fiscal module you need at least 2 steps:
- CreateDocument
- StoreDocument
Independently of the country we recommend to call method CreateDocument in every case.
Sample Receipt document as json:
This receipt contains:
- one item position with item "000714", "Blume grün", with a price of 4,3 EUR gross (1 piece).
- 2 payments, a position with 5 EUR in cash and the return of 0.7 eur
To cancel a previous created document you can call the method:
- CancelDocument
To validate a document in front of transferring it to the fiscal module you can you call
- ValidateDocument
Processes in detail
Sales process Retail
The sale of goods, for example in retail, is as follows:
| Operator | Cash register system | RetailForce Fiscalisation Service |
| 1. The operator (cash register user) enters the first item that the customer wishes to purchase. | ||
| 2. The cash register system sends a request to the fiscal service (createDocument) to register the start of the corresponding transaction. | ||
| 3. Fiscal Service receives request from the upstream system and processes it in accordance with country-specific requirements (e.g. signing, etc.). | ||
| 4. Fiscal Service sends a response (fiscalResponse) to the upstream system. | ||
| 5. The cash register system (upstream system) receives the response and stores parts of it (or the entire response object) for further use (reference) when the transaction is completed. | ||
| 6. The operator scans all of the customer's items and initiates the payment process. | ||
|
7. Once all transaction data has been determined (items, payment method, etc.), the POS system generates the transaction payload (JSON) and sends another request to the fiscal service (storeDocument), which completes (saves) the transaction. Certain information from the fiscalResponse received during createDocument must be included in the payload (‘fiscalDocumentNumber’, “fiscalDocumentStartTime” and, if applicable, country-specific elements such as ‘fiscalDocumentRevision’ in Germany).
Attention: only the elements listed above may be included in payload and NOT the entire fiscalRespons object!
|
||
| 8. Fiscal Service receives requests from the upstream system and processes them in accordance with country-specific requirements (e.g. signing, etc.). | ||
| 9. Fiscal Service sends a response (fiscalResponse) to the upstream system. | ||
| 10. The cash register system receives the fiscalResponse, extracts the information required for document creation (e.g. document signature, QR code, etc.) and prints the document. | ||
| 11. Operator hands the printed receipt to the customer |
Sales process in retail with transaction cancellation
If, as described above, during step 6, i.e. AFTER sending createDocument (step 2) and BEFORE sending storeDocument (step 7), the POS system sends a cancelDocument INSTEAD OF a storeDocument.
Attention: cancelDocument is used to cancel (abandon) an incomplete transaction and NOT (!) to reflect returns.
Returns are processed in the same way as normal sales transactions, using createDocument and storeDocument.
Comments
0 comments
Please sign in to leave a comment.