Z-reports
Get POS Z-reports
get /pos-z-reportsEndpoint for retrieving POS Z-reports. The items returned are always sorted by dateadded
in ascending order. Note! The maximum number of items returned is 500. If maximum number of items is returned, either try using a narrower filter for your query, or simply use the dateadded
property for the last retrieved item to filter out the next items.
Filter on eshopid. Use comma as separator for multiple values.
Filter on store_id (external ID of the Store in Sitoo). Use comma as separator for multiple values.
Filter on z-reports generated from a specific registerid. Use comma as separator for multiple values.
Filter on z-reports with dateadded starting on or after the timestamp provided.
Filter on z-reports with dateadded ending on or before the timestamp provided.
[ { "zreportid": 2, "registerid": "{3CCB9848-155A-49E1-7CA8-5F7F78FC3067}", "manufacturerid": "SITOO3CCB9848155A49E17CA85F7F78FC3067", "registerkey": "SII0000001500001", "registernumber": 1, "datecreated": 1587110959, "dateopened": 1587110444, "dateadded": 1618225274, "eshopid": 1, "store_id": "200", "store_name": "Sitoo Concept Store", "company": "Sitoo", "companyid": "556677-8899", "address": "240 W Broadway", "address2": "", "address3": "New York NY 10012", "currencycode": "USD", "staff": "Staff", "staffuserid": "{441A73D1-5DA7-685D-7E40-445D90C97E9B}", "comment": "", "moneysalestotal": "40463.75", "moneysalestotalnet": "32373.15", "numsales": 3, "numsalesitems": 7, "vatgroupssales": [ { "vatvalue": 6, "moneytotal": "14.98", "moneytotalnet": "14.13", "moneytotalvat": "0.85" }, { "vatvalue": 25, "moneytotal": "40448.77", "moneytotalnet": "32359.02", "moneytotalvat": "8089.75" } ], "productgroupssales": [ { "name": "Books", "vatvalue": 6, "numtotal": 1, "moneytotal": "14.98", "moneytotalnet": "14.13", "moneytotalvat": "0.85" }, { "name": "Common Goods", "vatvalue": 25, "numtotal": 6, "moneytotal": "40448.77", "moneytotalnet": "32359.02", "moneytotalvat": "8089.75" } ], "moneyrefundtotal": "0.00", "moneyrefundtotalnet": "0.00", "numrefund": 0, "numrefunditems": 0, "vatgroupsrefund": [], "productgroupsrefund": [], "moneyroundoff": "0.00", "salestaxessales": [], "salestaxesrefund": [], "moneysummarysales": "40463.75", "moneysummaryrefund": "0.00", "moneysummarysubtotal": "40463.75", "moneysummarysalestax": "0.00", "moneysummaryroundoff": "0.00", "moneysummarytotal": "40463.75", "paymentssales": [ { "name": "Cash", "moneytotal": "28673.75", "subpayments": [] }, { "name": "Gift Card", "moneytotal": "300.00", "subpayments": [] }, { "name": "Other", "moneytotal": "11490.00", "subpayments": [] } ], "paymentsrefund": [], "discountssales": [ { "vouchercode": "", "moneytotal": "20.00", "moneytotalnet": "16.00", "moneytotalvat": "4.00" }, { "vouchercode": "discount-manual", "moneytotal": "100.00", "moneytotalnet": "80.00", "moneytotalvat": "20.00" } ], "discountsrefund": [], "moneycash_in": "31214.11", "moneycash_salesrefunds": "28673.75", "moneycash_petty": "0.00", "moneycash_bank": "-10000.00", "moneycash_expected": "49887.86", "moneycash_counted": "49888.00", "moneycash_diff": "0.14", "moneycash_bankfinal": "0.00", "moneycash_out": "49888.00", "moneydiscount": "120.00", "numsalestypeproduct": 7, "numsalestypeservice": 0, "numsalestypegiftcard": 0, "numreceipts": 3, "numopendrawer": 3, "numpractice": 0, "moneypractice": "0.00", "currencyconversions": [], "moneygrandtotalsales": "71807.56", "moneygrandtotalrefund": "0.00", "moneygrandtotalnet": "71807.56" }]
HTTP Status Code Summary | |
---|---|
200 | Returns an array with objects of type PosZReport |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get POS Z-report
get /pos-z-reports/{registerid}/{zreportid}Endpoint for retrieving one POS Z-report.
The ID of the register.
The ID of the POS Z-report.
{ "zreportid": 2, "registerid": "{3CCB9848-155A-49E1-7CA8-5F7F78FC3067}", "manufacturerid": "SITOO3CCB9848155A49E17CA85F7F78FC3067", "registerkey": "SII0000001500001", "registernumber": 1, "datecreated": 1587110959, "dateopened": 1587110444, "dateadded": 1618225274, "eshopid": 1, "store_id": "200", "store_name": "Sitoo Concept Store", "company": "Sitoo", "companyid": "556677-8899", "address": "240 W Broadway", "address2": "", "address3": "New York NY 10012", "currencycode": "USD", "staff": "Staff", "staffuserid": "{441A73D1-5DA7-685D-7E40-445D90C97E9B}", "comment": "", "moneysalestotal": "40463.75", "moneysalestotalnet": "32373.15", "numsales": 3, "numsalesitems": 7, "vatgroupssales": [ { "vatvalue": 6, "moneytotal": "14.98", "moneytotalnet": "14.13", "moneytotalvat": "0.85" }, { "vatvalue": 25, "moneytotal": "40448.77", "moneytotalnet": "32359.02", "moneytotalvat": "8089.75" } ], "productgroupssales": [ { "name": "Books", "vatvalue": 6, "numtotal": 1, "moneytotal": "14.98", "moneytotalnet": "14.13", "moneytotalvat": "0.85" }, { "name": "Common Goods", "vatvalue": 25, "numtotal": 6, "moneytotal": "40448.77", "moneytotalnet": "32359.02", "moneytotalvat": "8089.75" } ], "moneyrefundtotal": "0.00", "moneyrefundtotalnet": "0.00", "numrefund": 0, "numrefunditems": 0, "vatgroupsrefund": [], "productgroupsrefund": [], "moneyroundoff": "0.00", "salestaxessales": [], "salestaxesrefund": [], "moneysummarysales": "40463.75", "moneysummaryrefund": "0.00", "moneysummarysubtotal": "40463.75", "moneysummarysalestax": "0.00", "moneysummaryroundoff": "0.00", "moneysummarytotal": "40463.75", "paymentssales": [ { "name": "Cash", "moneytotal": "28673.75", "subpayments": [] }, { "name": "Gift Card", "moneytotal": "300.00", "subpayments": [] }, { "name": "Other", "moneytotal": "11490.00", "subpayments": [] } ], "paymentsrefund": [], "discountssales": [ { "vouchercode": "", "moneytotal": "20.00", "moneytotalnet": "16.00", "moneytotalvat": "4.00" }, { "vouchercode": "discount-manual", "moneytotal": "100.00", "moneytotalnet": "80.00", "moneytotalvat": "20.00" } ], "discountsrefund": [], "moneycash_in": "31214.11", "moneycash_salesrefunds": "28673.75", "moneycash_petty": "0.00", "moneycash_bank": "-10000.00", "moneycash_expected": "49887.86", "moneycash_counted": "49888.00", "moneycash_diff": "0.14", "moneycash_bankfinal": "0.00", "moneycash_out": "49888.00", "moneydiscount": "120.00", "numsalestypeproduct": 7, "numsalestypeservice": 0, "numsalestypegiftcard": 0, "numreceipts": 3, "numopendrawer": 3, "numpractice": 0, "moneypractice": "0.00", "currencyconversions": [], "moneygrandtotalsales": "71807.56", "moneygrandtotalrefund": "0.00", "moneygrandtotalnet": "71807.56"}
HTTP Status Code Summary | |
---|---|
200 | Returns an object of type PosZReport |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Store Z-reports
get /store-z-reportsEndpoint for retrieving aggregated z-reports for stores. The items returned are always sorted by day_created
in descending order. Also note that the store_id property for POS Z-reports missing a valid value will all be aggregated to a Store Z-report with the store_id value of NO_STORE
. Note! If the day
filter is not provided, then the number of returned items is limited to 100.
Filter on store_id (external ID of the Store in Sitoo). Use comma as separator for multiple values.
Filter on day
[ { "store_zreport_id": "b86a9d9e-6d58-4dce-a75f-ff63cdc459bc", "currency_code": "SEK", "store_id": "200", "store_name": "Sitoo Concept Store", "day_created": "2021-03-17", "date_created": 1615977763, "register_zreports": [ { "registerid": "{3CCB9848-155A-49E1-7CA8-5F7F78FC3067}", "zreportid": 24 }, { "registerid": "{562A1F6B-68E6-2028-2F71-A177E0E75214}", "zreportid": 28 } ], "data": { "moneysalestotal": "2248.00", "moneysalestotalnet": "1798.40", "numsales": 5, "numsalesitems": 5, "vatgroupssales": [ { "moneytotal": "2248.00", "moneytotalnet": "1798.40", "moneytotalvat": "449.60", "vatvalue": 25 } ], "productgroupssales": [ { "moneytotal": "2248.00", "moneytotalnet": "1798.40", "moneytotalvat": "449.60", "name": "Standard", "numtotal": 5, "vatvalue": 25 } ], "moneyrefundtotal": "0.00", "moneyrefundtotalnet": "0.00", "numrefund": 0, "numrefunditems": 0, "vatgroupsrefund": [], "productgroupsrefund": [], "moneyroundoff": "0.00", "salestaxessales": [], "salestaxesrefund": [], "moneysummarysales": "2248.00", "moneysummaryrefund": "0.00", "moneysummarysubtotal": "2248.00", "moneysummarysalestax": "0.00", "moneysummaryroundoff": "0.00", "moneysummarytotal": "2248.00", "paymentssales": [ { "moneytotal": "2248.00", "name": "Cash" } ], "paymentsrefund": [], "discountssales": [ { "moneytotal": "300.00", "moneytotalnet": "240.00", "moneytotalvat": "60.00" } ], "discountsrefund": [], "moneycash_in": "48778.00", "moneycash_salesrefunds": "2248.00", "moneycash_petty": "0.00", "moneycash_bank": "0.00", "moneycash_expected": "51026.00", "moneycash_counted": "51026.00", "moneycash_diff": "0.00", "moneycash_bankfinal": "0.00", "moneycash_out": "51026.00", "moneydiscount": "300.00", "numsalestypeproduct": 5, "numsalestypeservice": 0, "numsalestypegiftcard": 0, "numreceipts": 5, "numopendrawer": 0, "numpractice": 0, "moneypractice": "0.00", "currencyconversions": [] } }]
HTTP Status Code Summary | |
---|---|
200 | Returns an array with objects of type StoreZReport |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Store Z-report
get /store-z-reports/{store_zreport_id}Endpoint for retrieving an aggregated Store Z-report.
The ID of the Store Z-report.
{ "store_zreport_id": "b86a9d9e-6d58-4dce-a75f-ff63cdc459bc", "currency_code": "SEK", "store_id": "200", "store_name": "Sitoo Concept Store", "day_created": "2021-03-17", "date_created": 1615977763, "register_zreports": [ { "registerid": "{3CCB9848-155A-49E1-7CA8-5F7F78FC3067}", "zreportid": 24 }, { "registerid": "{562A1F6B-68E6-2028-2F71-A177E0E75214}", "zreportid": 28 } ], "data": { "moneysalestotal": "2248.00", "moneysalestotalnet": "1798.40", "numsales": 5, "numsalesitems": 5, "vatgroupssales": [ { "moneytotal": "2248.00", "moneytotalnet": "1798.40", "moneytotalvat": "449.60", "vatvalue": 25 } ], "productgroupssales": [ { "moneytotal": "2248.00", "moneytotalnet": "1798.40", "moneytotalvat": "449.60", "name": "Standard", "numtotal": 5, "vatvalue": 25 } ], "moneyrefundtotal": "0.00", "moneyrefundtotalnet": "0.00", "numrefund": 0, "numrefunditems": 0, "vatgroupsrefund": [], "productgroupsrefund": [], "moneyroundoff": "0.00", "salestaxessales": [], "salestaxesrefund": [], "moneysummarysales": "2248.00", "moneysummaryrefund": "0.00", "moneysummarysubtotal": "2248.00", "moneysummarysalestax": "0.00", "moneysummaryroundoff": "0.00", "moneysummarytotal": "2248.00", "paymentssales": [ { "moneytotal": "2248.00", "name": "Cash" } ], "paymentsrefund": [], "discountssales": [ { "moneytotal": "300.00", "moneytotalnet": "240.00", "moneytotalvat": "60.00" } ], "discountsrefund": [], "moneycash_in": "48778.00", "moneycash_salesrefunds": "2248.00", "moneycash_petty": "0.00", "moneycash_bank": "0.00", "moneycash_expected": "51026.00", "moneycash_counted": "51026.00", "moneycash_diff": "0.00", "moneycash_bankfinal": "0.00", "moneycash_out": "51026.00", "moneydiscount": "300.00", "numsalestypeproduct": 5, "numsalestypeservice": 0, "numsalestypegiftcard": 0, "numreceipts": 5, "numopendrawer": 0, "numpractice": 0, "moneypractice": "0.00", "currencyconversions": [] }}
HTTP Status Code Summary | |
---|---|
200 | Returns an object of type StoreZReport |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Store Z-report Configuration
get /store-z-reports/configEndpoint for retrieving configuration for Store Z-report service
{ "aggregation_active": true, "hour_of_day": 22, "time_zone": "Europe/Stockholm"}
HTTP Status Code Summary | |
---|---|
200 | Returns an object of type StoreZReportConfig |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Set Store Z-report Configuration
put /store-z-reports/configEndpoint for setting configuration for Store Z-report service
StoreZReportConfig object
{ "aggregation_active": true, "hour_of_day": 22, "time_zone": "Europe/Stockholm"}
{ "aggregation_active": true, "hour_of_day": 22, "time_zone": "Europe/Stockholm"}
HTTP Status Code Summary | |
---|---|
200 | Returns the updated object of type StoreZReportConfig |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Objects
Moneystring
PosZReportobject
Z-report for Sitoo POS Cash Register.
ID for this report (report number).
Unique ID for this Cash Register.
Manufacturer ID for this Cash Register.
Key for this Cash Register used by the Tax Authorities and also printed on receipts.
Number for this Cash Register (E.g 1, 2, 3...).
Timestamp for when this report was created.
Timestamp for when the register was opened or null if generated with legacy versions of Sitoo POS.
Unix timestamp for when this report was added from the client to Sitoo Platform.
Eshop ID (Eshop ID for the POS Z-report in Sitoo)
Store ID (external ID of the Store in Sitoo)
The name of the store
Company Name.
Company ID.
Address line 1 (street address).
Address line 2 (c/o or similar).
Address line 3 (zip, city and state).
Currency for the report. (ISO 4217, alpha-3 uppercased)
The name of the staff that produced the report.
The user ID for the staff that produced the report.
The comment that the staff entered for the report.
The total gross money value for sales.
The total net money value for sales.
The total number of sales.
The total number of items in sales.
Sales grouped by vat values. See ZReportVatGroup for fields.
Sales grouped by product group. See ZReportProductGroup for fields.
The total gross money value for sales not delivered.
The total net money value for sales not delivered.
The total number of sales where not all items were delivered.
The total number of items in sales not delivered.
Sales not delivered grouped by vat values. See ZReportVatGroup for fields.
Sales not delivered grouped by product group. See ZReportProductGroup for fields.
The total gross money value for refunds.
The total net money value for refunds.
The total number of refunds.
The total number of items in refunds.
Refunds grouped by vat values. See ZReportVatGroup for fields.
Refunds grouped by product group. See ZReportProductGroup for fields.
The total money value for roundoff.
Collected sales taxes for sales grouped by name, code and taxvalue. See ZReportSalesTax for fields.
Collected sales taxes for refunds grouped by name, code and taxvalue. See ZReportSalesTax for fields.
The total value of sales tax collected for items not delivered (if applicable).
The total money value for sales.
The total money value for refunds.
The sub total money value (moneysummarysales - moneysummaryrefund).
The sub total money value for sales tax.
The total money value for roundoff.
The total money value for the report (moneysummarysubtotal + moneysummarysalestax + moneysummaryroundoff).
All payments for sales. See ZReportPayment for fields.
All payments for refunds. See ZReportPayment for fields.
Discounts grouped by vouchercode for sales. See ZReportDiscount for fields.
Discounts grouped by vouchercode for sales not delivered. See ZReportDiscount for fields.
Discounts grouped by vouchercode for refunds. See ZReportDiscount for fields.
The entered money value for cash in the register when it was opened.
The total amount of cash from sales/refunds for register since it was opened.
The total petty cash change for register since it was opened.
The total banking cash change for register since it was opened.
The calculated money value for cash in the register before it was counted.
The counted money value for cash in the register when closing.
The difference in money value for cash between expected and counted values.
The amount of cash banked after cash had been counted.
The money value for cash in the register after it was closed.
The total money amount for discounts of sales (incl. VAT). For discount details see discountssales and discountsrefund.
The money bank bag ID for the counted cash.
The total number of items of type "product".
The total number of items of type "service".
The total number of items of type "gift card".
The total number of receipts.
The total number of time the cash register drawer was opened (excluding normal transactions).
The total number of transactions made in practice mode.
The total money value of transactions made in practice mode.
Contains details about foreign currencies. See ZReportCurrencyConversion for fields.
The total money value for sales since the start of the cash register.
The total money value for refunds since the start of the cash register.
The summary total money value since the start of the cash register (moneygrandtotalsales - moneygrandtotalrefund).
An optional reason code added when there is a difference between the expected and the counted cash when closing the register.
An optional comment on the reason for a difference between the expected and the counted cash when closing the register.
StoreZReportobject
UUID for the Store Z-report
Currency for the report. (ISO 4217, alpha-3 uppercased)
Store ID (external ID of the Store in Sitoo). All POS Z-reports without a proper store_id will be aggregated to a Store Z-report with the store_id value of NO_STORE
.
The name of the store
The day that this report was created
Unix timestamp for when this report was created.
ID for the Cash Register
ID for the report (report number)
The aggregated data for this Store Z-report
StoreZReportConfigobject
Configuration for running the Store Z-report aggregation service
Boolean value indicating if aggregation of POS Z-reports to Store Z-report should run or not
The hour of the day (for the time_zone specified) that the service should run
The timezone to be used for the aggregation to decide when the service should run
StoreZReportDataobject
The total gross money value for sales.
The total net money value for sales.
The total number of sales.
The total number of items in sales.
Sales grouped by vat values. See ZReportVatGroup for fields.
Sales grouped by product group. See ZReportProductGroup for fields.
The total gross money value for sales not delivered.
The total net money value for sales not delivered.
The total number of sales where not all items were delivered.
The total number of items in sales not delivered.
Sales not delivered grouped by vat values. See ZReportVatGroup for fields.
Sales not delivered grouped by product group. See ZReportProductGroup for fields.
The total gross money value for refunds.
The total net money value for refunds.
The total number of refunds.
The total number of items in refunds.
Refunds grouped by vat values. See ZReportVatGroup for fields.
Refunds grouped by product group. See ZReportProductGroup for fields.
The total money value for roundoff.
Collected sales taxes for sales grouped by name, code and taxvalue. See ZReportSalesTax for fields.
Collected sales taxes for refunds grouped by name, code and taxvalue. See ZReportSalesTax for fields.
The total value of sales tax collected for items not delivered (if applicable).
The total money value for sales.
The total money value for refunds.
The sub total money value (moneysummarysales - moneysummaryrefund).
The sub total money value for sales tax.
The total money value for roundoff.
The total money value for the report (moneysummarysubtotal + moneysummarysalestax + moneysummaryroundoff).
All payments for sales. See ZReportPayment for fields.
All payments for refunds. See ZReportPayment for fields.
Discounts grouped by vouchercode for sales. See ZReportDiscount for fields.
Discounts grouped by vouchercode for sales not delivered. See ZReportDiscount for fields.
Discounts grouped by vouchercode for refunds. See ZReportDiscount for fields.
The entered money value for cash in the register when it was opened.
The total amount of cash from sales/refunds for register since it was opened.
The total petty cash change for register since it was opened.
The total banking cash change for register since it was opened.
The calculated money value for cash in the register before it was counted.
The counted money value for cash in the register when closing.
The difference in money value for cash between expected and counted values.
The amount of cash banked after cash had been counted.
The money value for cash in the register after it was closed.
The total money amount for discounts of sales (incl. VAT). For discount details see discountssales
and discountsrefund
.
The total number of items of type "Product".
The total number of items of type "Service".
The total number of items of type "GiftCard".
The total number of receipts.
The total number of time the cash register drawer was opened (excluding normal transactions).
The total number of transactions made in practice mode.
The total money value of transactions made in practice mode.
Contains details about foreign currencies. See ZReportCurrencyConversion for fields.
ZReportCurrencyConversionobject
Contains details about a foreign currency with conversion to the default (base) currency.
The currency code of the foreign currency (3-letter ISO 4217).
The calculated amount for cash in the register in the foreign currency before it was counted.
The counted amount for cash in the register in the foreign currency when closing.
The calculated amount for cash in the register before it was counted, converted to the default currency.
The counted amount for cash in the register when closing, converted to the default currency.
The money bank bag ID for the counted cash in this currency.
ZReportDiscountobject
Contains the discount details for a Z-report.
ZReportPaymentobject
Contains the payment details for a Z-report.
The name of the payment.
The total money value of the payment.
The amount captured for the payment. The difference between total and captured is the reserved amount.
The amount captured for the payment for items that were not delivered at the time of purchase (payment in advance).
The reserved amount.
A specification of different payments within the payment type (if applicable). See ZReportSubPayment for fields.
ZReportProductGroupobject
Contains the product group details for a Z-report.
The name of the product group.
The vat value for the product group.
The total number of items for the product group.
The total gross money value for the product group.
The total net money value for the product group.
The total vat money value for the product group.
ZReportSalesTaxobject
Contains the sales tax details for a Z-report.
The name of the sales tax.
An identifier that can be used to specify the sales tax.
A custom value to make it easier to export to external systems.
The region of the salestaxgroup this salestax item belongs to.
The total sales the collected tax is calculated on. (ie. the sales with no tax)
The total net money value for this sales tax.
The tax value in percent.
ZReportSubPaymentobject
Contains the details for a sub payment of ZReportPayment.
The name of the sub payment.
The money value of the sub payment.
The amount captured for the payment. The difference between total and captured is the reserved amount.
The amount captured for the payment for items that were not delivered at the time of purchase (payment in advance).
The reserved amount.
ZReportVatGroupobject
Contains the VAT details for a Z-report.