After a document has been submitted to the RetailForce Fiscalisation service (createDocument and storeDocument), the service responds with a so-called FiscalResponse. This object is described in general in the article FiscalResponse object.
Depending on which fiscal country is assigned to the respective client (depending on the corresponding configuration of the client), different information can be found in the array "AdditionalFields". This article shows the information that is returned as a response within the framework of fiscalisation in Spain (TicketBAI system - pilot project in the Basque regions: Araba, Bizkaia and Gipuzkoa).
FiscalResponseSpain
additionalFields in fiscalResponse for Spain
{ "fiscalCountry": "[18] = Spain", "fiscalisationDocumentNumber": 10, "fiscalDocumentNumber": "10", "fiscalDocumentStartTime": 1683131779, "processStartTime": 0, "errorDescription": null, "cashRegisterId": "0001/002", "signature": "xyz", "userMessage": "", "printMessage": "***Test***", "requestTime": "2023-05-04T15:41:53.2924502+02:00", "requestCompletionTime": "2023-05-04T15:41:54.0639654+02:00",
"retailForceReceiptId": "0p4j0001", /// only for createDocument "AdditionalFields": { "QrCode": "xyz" } }
The following additional fields are used (transmitted) within the framework of fiscalisation in Spain
Elements | Type | Description | |
additionalFields | Country-specific information | ||
QrCode | Data in the QrCode field must be converted to a QR code and printed on the receipt. |
Comments
0 comments
Please sign in to leave a comment.