Use GetTotalsRequest to retrieve totals from a terminal without starting a new reconciliation period.
Requirements
Endpoint
Where and how to send Terminal API messages depends on your type of implementation. See Use the correct endpoint.
GetTotalsRequest
For a list of request fields, see GetTotalsRequest.
The SaleID and ServiceID in the MessageHeader should be unique. SaleID and ServiceID combinations are rejected if used recently, within 48 hours.
The fields described below are the fields you specify when making a GetTotalsRequest call to the Terminal API.
Use the TotalFilter to limit the totals to the presented field/value combinations.
Use the TotalDetails cluster to group the results on the specified fields.
GetTotalsRequest - Specific totalsGroupID
Returns totals for a specific group of totals. Specified with the totalsGroupID.
GetTotalsRequest - Group by OperatorID
Return a list of totals for an operator. Specified with the OperatorID.
GetTotalsResponse
For a list of response fields, see GetTotalsResponse.
{
"SaleToPOIResponse":{
"MessageHeader":{
"ProtocolVersion":"3.0",
"SaleID":"CashRegB3",
"MessageClass":"Service",
"MessageCategory":"GetTotals",
"ServiceID":"0518144235",
"POIID":"P400Plus-275008565",
"MessageType":"Response"
},
"GetTotalsResponse":{
"POIReconciliationID":"1000",
"Response":{
"Result":"Success"
},
"TransactionTotals":[
{
"SaleID":"CashRegB3",
"PaymentInstrumentType":"StoredValue",
"PaymentCurrency":"EUR",
"PaymentTotals":[
{
"TransactionType":"Debit",
"TransactionCount":1,
"TransactionAmount":100.99
}
],
"OperatorID":"",
"CardBrand":"SVS",
"TotalsGroupID":"GroupA",
"ShiftNumber":""
},
{
"SaleID":"CashRegB3",
"PaymentInstrumentType":"Card",
"PaymentCurrency":"EUR",
"PaymentTotals":[
{
"TransactionType":"Debit",
"TransactionCount":51,
"TransactionAmount":1841.52
}
],
"OperatorID":"",
"CardBrand":"mc",
"TotalsGroupID":"GroupA",
"ShiftNumber":""
}
]
}
}