The
- DELETE /api/v1/management/germany/{clientId}/tse/listTransactions
endpoint can be used to close open TSE transactions.
As a general rule, transactions should not be left open. We recommend that all open transactions be closed before a daily closing with either
- POST /api/v1/transactions/storeDocument - if a sale has taken place, or
- POST /api/v1/transactions/cancelDocument - if no sale has taken place.
Result
Open TSE transactions are closed collectively with POST /api/v1/transactions/cancelDocument, without the need to close them individually.
Usage
We recommend using this endpoint with caution and only in the event of an error.
The call first generates a query to the TSE as to which transactions are open. The different TSE types (Cloud TSE, Hardware TSE) do not return a complete list of open transactions, but only "packet by packet":
- swissbit Hardware TSE: 8 transactions each,
- fiskal Cloud TSE: 100 transactions each
After the TSE has returned the package of open transactions, the contained transactions are closed via an empty document, with the following information:
- DocumentId: Guid generated by the service
- DocumentNr: Guid generated by the service
- DocumentGuid: Guid generated by the service
- DocumentType: Receipt
- DocumentTypeCaption: CancelTransaction
If more than the above transactions are open, the endpoint must be called more than once.
All closed transactions are also stored accordingly in the DSFinV-K data.
Prerequisites
- There are open (started), i.e. not closed, transactions on the TSE.
If a certain number of open transactions is reached, no more transactions can be started on the TSE and the TSE reports an error. You can find more information on this in the article Tse connection error.
You can retrieve the number of open transactions via the endpoint:
Example:
TSE returns the number of started transactions in the field "startedTransactions".
{
...
"startedTransactions": 512,
"maxStartedTransactions": 512,
...
}
Form fields
The following information must be transmitted:
Designation | Description | Example |
clientId |
The uniqueClientId of the cash register (from RetailForce system). |
c1062c55-57c4-4ed2-9c53-aff1762326a4 |
Responses
Possible responses:
Code | Description | Example |
200 |
fiscalResponse - the open transactions have been successfully closed (cancelDocument) |
- |
400 |
"Tse not connected" - No TSE is connected to the system or assigned to the corresponding client. Troubleshooting:
|
- |
404 |
"Client was not found" - no configuration exists on this system under the specified clientId Troubleshooting:
|
- |
422 |
"clientId was set to Guid.Empty" Troubleshooting: |
- |
500 |
"Internal server error" - Other error. Troubleshooting:
|
- |
Comments
0 comments
Please sign in to leave a comment.