πDaily sales reports
This page provides a description of the available API routes for managing daily sales reports.
The fiscal device sends record closure information after each closed ticket or cash transfer. If a daily sales report record does not already exist (identified by fiscal name, fiscal memory serial number, and daily sales report number), it is automatically created by API.
Each ticket is associated with a specific daily sales report, and this information is stored in the ticket's closeInfo
property.
Daily sales report record is modified by API after following actions are performed on fiscal device:
cash transfer: new element is added to cash transfers collection
daily sales report closure: fiscal info model is fulfilled and daily sales report is considered as closed.
Daily sales report is closed, when it's state
property is set to closed
or manuallyClosed
. Closed daily sales reports cannot be modified.
Daily sales report is represented by DailySalesReport
class.
API methods
Get daily sales reports
GET
http://{server-address}/dailysalesreports
Returns all daily sales reports that matches query parameters. Result is of type QueryResult<DailySalesReport>
.
Query Parameters
isClosed
bool
Supports NData syntax.
$skip
int
Pagination property. Describing number of records to skip from beginning of result collection.
$take
int
Pagination property. Maximum count of items to be returned.
$sort
string[]
Comma separated list of property names. Please see NData syntax.
$count
bool
If set to true
, response will not contain items
collection. Use to get resource count, not the resources themselves.
id
bool
Supports NData syntax.
openDate
DateTime
currencyLabel
string
fiscalMemorySerialNumber
string
number
int
fiscalName
string
state
DailySalesReportStatus
closeDate
DateTime
Headers
Authorization*
string
Authorization header with authorization token.
Get daily sales report
GET
http://{server-address}/dailysalesreports/{id}
Result is of type DailySalesReport.
Path Parameters
id*
string
Unique identifier.
Headers
Authorization*
string
Authorization header with authorization token.
Create or update daily sales report
PUT
http://{server-address}/dailysalesreports/{id}
Creates new or updates existing (non-closed) daily sales report. Result is of type DailySalesReport.
Required rights
Authorized user must have assigned DsrCreate
or DsrUpdate
right.
Path Parameters
id*
string
Unique identifier.
Headers
Authorization*
string
Authorization header with authorization token.
Request Body
(body)*
DailySalesReport
Model to create or update.
Manually close daily sales report
POST
http://{server-address}/dailysalesreports/{id}/close
Changes state
of daily sales report to manuallyClosed
. Result is of type DailySalesReport.
Required rights
Authorized user must have dsrCloseManually
right assigned.
Path Parameters
id
string
Unique identifier.
Headers
Authorization*
string
Authorization header with authorization token.
Delete daily sales report
DELETE
http://{server-address}/dailysalesreports/{id}
Required rights
Authorized user must have DsrDelete
right assigned.
Path Parameters
id*
string
Unique identifier.
Headers
Authorization*
string
Authorization header with authorization token.
Last updated