WinShopAPI docs

Delete a shopping session

Discards the open session with its items and payments. Cannot be undone; a session that has already been finished is a POS receipt and is not deleted here. Requires `Permissions.PosShoppingSession.Delete`.

DELETE
/api/documents/pos/shopping-session/{sessionId}

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Path Parameters

sessionId*integer
Formatint64

Response Body

curl -X DELETE 'https://<your-instance>/api/documents/pos/shopping-session/0' \  -H 'Authorization: Bearer <access-token>'
Empty