latestOpenAPI 3.0.32026-08-215925112.0 MB

36be0dca14e7

api
pos

Close a POS session

post/api/pos/{id}/close

Path parameters

idstring required

Response

OK

_idstring required

The ID of the POS session

sessionNostring required

The number of the POS session

posIdstring required

The ID of the POS

openedstring date-time required

An ISO timestamp indicating when the POS session was opened

closedstring date-time

An ISO timestamp indicating when the POS session was closed

cashAtOpennumber float

Cash opening stock

totalAmountnumber float

The total revenue

includedTaxnumber float

The total taxes

totalByPaymentMethodobject

Total by payment methods. Values will only be inserted after closing the session

createdAtstring date-time

An ISO timestamp indicating when the POS session was created

updatedAtstring date-time

An ISO timestamp indicating when the POS session was updated

message'opened' | 'already-open' | 'already-closed'
posNostring

The number of the POS