The EndOfDay API endpoint is used to perform a daily closing in the cash register system. This includes summarizing all of the day's transactions, checking the cash balance, and documenting any cash discrepancies.
Result
A successful call of the endpoint (200)
- Creates a JSON object that contains a summary of the day's activities.
- Summarizes all transactions and financial activities of the day - based on the data transmitted to the client since the last daily closing..
Usage
This endpoint should be called at the end of each business day.
- After creating the daily closing report through the endofdayDocument endpoint, the storeDocument endpoint should be called to store the report in the system.
-
-
- The response from the endofdayDocument should be copied and pasted into the storeDocument endpoint.
-
WARNING: An incorrect call of this endpoint can lead to inconsistent accounting data.
After the successful call
After succeeding at storeDocument, upon calling endofdayDocument again, the fields "Customer count" and "Item count" should be "0".
Prerequisites
- All transactions of the day must be completed.
- The cash register must be operational and connected to the backend system.
Form Fields
The following information must be provided:
Label | Description | Examples |
---|---|---|
clientId * | The unique client ID of the fiscal client for whom the document is requested. | 58b55595-2796-4b35-b90f-4b2e1777db46 |
closeMonth | Indicates whether the CLOSING_CLOSEMONTH parameter should be set. Otherwise false. | false |
Response
Possible responses:
Code | Description |
---|---|
200 | Daily closing report successfully created. Redirection to storeDocument is necessary. |
422 |
Unique client id = guid.empty. |
500 | Internal server error. |
Comments
0 comments
Please sign in to leave a comment.