Get control daily totals
post
/bi/v1/{orgIdentifier}/getControlDailyTotals
Get the Control Daily Totals for a specified location and business date.
Request
Path Parameters
-
orgIdentifier(required): string
Unique identifier of the organization name
The request body defines the details of the API request.
Root Schema : controlTotalsRequestPayload
Type:
object
Request payload for Control Daily Totals
Show Source
-
applicationName:
string
Title:
Application Name
Maximum Length:128
The name of the application which is accessing the API.First Available Version: 20.1.10
-
busDt(required):
string(date)
Title:
Business Date
If present, the API will return the superset of all guest checks where Open Business Date or Closed Business Date match to the supplied date. This parameter cannot be present if clsdBusDt or opnbusDt are present -
clsdBusDt(required):
string(date)
Title:
Business Date
If present, the API will return all guest checks which were closed or reopen closed on the supplied business date. This parameter cannot be present if opnBusDt or busDt are present.First Available Version: 20.1.10
-
include:
string
Title:
Include
Maximum Length:2000
List of objects to include in response -
locRef(required):
string
Title:
Location Reference
Maximum Length:99
The location reference, this may be a store number or name depending on the organization -
opnBusDt(required):
string(date)
Title:
Business Date
If present, the API will return the guest checks which were opened or reopened on the supplied business date. This parameter cannot be present if clsdBusDt or busDt are present.First Available Version: 20.1.10
-
rvcNum:
integer
Title:
Revenue center number
Maximum Length:10
Revenue center number for which the control totals are to be fetched.First Available Version: 20.1.9.7
-
searchCriteria:
string
Title:
Search Criteria
Maximum Length:2000
Search criteria to filter results based on field value
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : controlDailyTotals
Type:
object
The response body contains information about the control totals for the specified business date and location.
Show Source
-
busDt(required):
string(date)
Title:
Business Date
Business Date -
eodStatus(required):
integer
Title:
End of Day Status
End of Day status. O = Open, 1 = Closed -
firstTransLcl(required):
string(date-time)
Title:
First Transaction Local
The date and time of first transaction in this business day in the location's timezone.First Available Version: 20.1.9.6
-
firstTransUTC(required):
string(date-time)
Title:
First Transaction UTC
The UTC date and time of first transaction in this business day -
lastTransLcl(required):
string(date-time)
Title:
Last Transaction Local
The date and time of last transaction in this business day in the location's timezone.First Available Version: 20.1.9.6
-
lastTransUTC(required):
string(date-time)
Title:
Last Transaction UTC
The UTC date and time of last transaction in this business day -
lastUpdatedLcl(required):
string(date-time)
Title:
Last Updated Date Time Local
The date and time of the most recent transaction updates or inserts in the cloud in the location's timezone.First Available Version: 20.1.12
-
lastUpdatedUTC(required):
string(date-time)
Title:
Last Updated Date Time UTC
The date and time of the most recent transaction updates or inserts in the cloud as a UTC time.First Available Version: 20.1.12
-
locRef(required):
string
Title:
Location Reference
Maximum Length:99
The location reference, this may be a store number or name depending on the organization -
revenueCenters(required):
array revenueCenters
An array of Control Totals by RVC
Nested Schema : revenueCenters
Type:
array
An array of Control Totals by RVC
Show Source
-
Array of:
object controlTotalsByRVC
The response body contains control totals about a revenue center for the specified location.
Nested Schema : controlTotalsByRVC
Type:
object
The response body contains control totals about a revenue center for the specified location.
Show Source
-
clsdChkTtl:
number
Title:
Closed Checks Total
The amount of all closed checks including taxes and service charges. -
numClsdChecks:
integer
Title:
Number of Closed Checks
Maximum Length:16
The number of checks closed for the business date -
numNonSlsTrans:
integer
Title:
Number of Non Sale Transactions
Maximum Length:16
The number of non-sales transactions that occurred during this business day, including no sales and media transactions. -
numOpnChksAtEOD:
integer
Title:
Number of Open Checks at End of Day
Maximum Length:16
The number of open checks at end of day -
opnChkTtlAtEOD:
number
Title:
Open Check total at End of Day
The amount of open checks at end of day including taxes, service charges, payments, etc. -
rvcNum(required):
integer
Title:
Revenue Center Number
Maximum Length:10
Revenue Center number
400 Response
Bad Request
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle error code
Oracle error code -
status:
integer
Title:
Status
HTTP response code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
401 Response
Unauthorized
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle error code
Oracle error code -
status:
integer
Title:
Status
HTTP response code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
403 Response
Service Unavailable
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle error code
Oracle error code -
status:
integer
Title:
Status
HTTP response code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
404 Response
Resource Not Found
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle error code
Oracle error code -
status:
integer
Title:
Status
HTTP response code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
Default Response
Unexpected Error
Root Schema : exceptionDetailType
Type:
object
Error details
Show Source
-
detail:
string
Title:
Error description
The description of the error -
o:errorCode(required):
integer
Title:
Oracle error code
Oracle error code -
status:
integer
Title:
Status
HTTP response code -
title(required):
string
Title:
Title
High level description of the error -
type(required):
string
Title:
Type
The description of the type of HTTP error
Examples
The following example shows how to view Control Daily totals for a specified location & business date by submitting a POST request on the REST resource using cURL. For more information, see Use cURL
curl -i -X POST -H "Authorization: Bearer" -H "Content-Type:application/json" -d {"locRef":"1234","rvcNum":123,"busDt":"2020-10-20"} https://baseurl/bi/v1/orgidentifier/getControlDailyTotals
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Date: Tue, 20 Oct 2020 21:24:33 GMT Transfer-Encoding: chunked Content-Type: application/json
Example of Response Body
The following example shows the contents of the response body in JSON format:
{ "locRef": "1234", "busDt": "2019-07-20", "eodStatus": 1, "lastUpdatedUTC": "2020-10-20T16:20:45", "lastUpdatedLcl": "2020-10-20T16:20:45", "firstTransUTC": "2019-07-20T13:02:00", "firstTransLcl": "2019-07-20T09:02:00", "lastTransUTC": "2019-07-20T22:01:26", "lastTransLcl": "2019-07-20T18:01:26", "revenueCenters":[{ "rvcNum": 123, "numClsdChks": 399, "clsdChkTtl": 14657.34, "numOpnChksAtEOD": 3, "opnChkTtlAtEOD": 50.99, "numNonSlsTrans": 19 }] }