Journals v3

The Sitoo Journals API is used for reading backups of POS journals in Sitoo. It is recommended to read the Sitoo API introduction before reading this document.

API Base URL

The service is available at the base URL https://journals.sitooapis.com/v3. To access the API you combine the base URL and the endpoint URL. Example for getting journal entries for a specific cash register:

REQUEST
GET https://journals.sitooapis.com/v3/journal-entries?register_id={DBFA5E0C-0BB4-431C-9EB3-471F88AE222E}&num=1000

Authentication

Authentication is done with the HTTP basic authentication mechanism over a secure connection. The API ID and password can be found in the Backoffice under settings/Sitoo REST API (Requires administrator privileges).

Using the API ID and password, add an extra header to the request for authentication:

"Authorization: Basic " + base64_encode("{API ID}" + ":" + "{password}");

Example header (API ID "10020-140" and password "buNxoOx2o5kM2JMc3VhBX20k4Gik4qKXyKfg332A"):

Authorization: Basic MTAwMjAtMTQwOmJ1TnhvT3gybzVrTTJKTWMzVmhCWDIwazRHaWs0cUtYeUtmZzMzMkE=)

POS Journal

Each POS (cash register) in Sitoo stores a log of events that occurred during usage. This log is often referred to as the "journal". This service holds a backup of the journal for easy access.

Incremental Journal Backup
If you wish to make an integration where you continously will be fetching the POS journal for your cash registers, please have a look at the date_type parameter using the value added in the Get Journal Entries endpoint

Journal Entry Types

Each entry in the journal has one of the following types. JournalEntry is a discriminated union on the type property: every type has its own entry schema — cart-clear is a JournalCartClearEntry, receipt is a JournalReceiptEntry, and so on — and each of those fixes the type of the object in the entry's data property. This is a list of the types and their respective data objects.

  • app-install A new version of the Sitoo POS app was installed; versiontype says whether it was a major or a minor one. Data of type JournalAppInstall.
  • cart-clear The cart was cleared by the POS staff. Data of type JournalCart.
  • cart-item-add A cart item was added by the POS staff. Data of type JournalCartItem.
  • cart-item-change A cart item was changed by the POS staff. Data of type JournalCartItem.
  • cart-item-remove A cart item was removed by the POS staff. Data of type JournalCartItem.
  • cart-payment-add A cart payment was added by the POS staff. Data of type JournalCartPayment.
  • cart-payment-retry A failed cart payment was retried by the POS staff. Data of type JournalCartPayment.
  • cart-payment-cancel A cart payment was cancelled before completion. Data of type JournalCartPayment.
  • cart-payment-success A cart payment was successfully completed. Data of type JournalCartPayment.
  • cart-payment-remove A successful cart payment was removed by the POS staff. Data of type JournalCartPayment.
  • cart-voucher-add The cart was given a discount(voucher) by the POS staff. Data of type JournalCart.
  • cart-voucher-remove The cart had a discount(voucher) removed by the POS staff. Data of type JournalCart.
  • cash-bank A banking cash transaction performed in the POS. Data of type JournalCash.
  • cash-bank-final A final banking transaction performed at the closing of the POS. Data of type JournalCash.
  • cash-counted The amount of cash counted at the closing of the POS. Data of type JournalCash.
  • cash-petty A petty cash transaction performed in the POS. Data of type JournalCash.
  • cash-start The amount of cash at the start when opening a POS. This entry also indicates the opening of the POS. Data of type JournalCash.
  • ctu-error A POS control unit error that occurred. Data of type JournalCtuError.
  • ctu-key-change The key of the POS control unit was changed. Data of type JournalCtuKeyChange.
  • ctu-offline-mode The POS entered or exited fiscal offline mode. Data of type JournalCtuOfflineMode.
  • journal-restore The journal on the POS was restored by downloading it again from the backup service; restoretype says whether all of it or only part of it. Data of type JournalRestore.
  • login A POS staff login. Data of type JournalStaff.
  • logout A POS staff logout. Data of type JournalStaff.
  • open-cash-drawer An extra opening of the cash drawer. Data of type JournalStaff.
  • period-close A period (day, month or fiscal year) was closed on the POS. Not produced in all markets. Data of type JournalPeriodClose.
  • printer-error A printer connected to the POS became unavailable. Data of type JournalPrinterError.
  • printout A printout was made by the POS staff. Data of type JournalPrintout
  • receipt A receipt that has been committed in the POS. That includes both sales and returns. Data of type JournalReceipt.
  • report-x An X-Report generated while register is still open. Data of type JournalXReport.
  • report-z A Z-Report generated when closing the register. Data of type JournalZReport.
  • report-z-month A Z-Report for the calendar month. Not produced in all markets. Data of type JournalZReportMonth.
  • report-z-fiscal-year A Z-Report for the fiscal year. Not produced in all markets. Data of type JournalZReportFiscalYear.
  • training-mode The POS entered or left training mode. Data of type JournalTrainingMode.