Consultation of outstanding confirmation transactions at the terminal

In the event of a power outage, situations may occur in which the automation need to query transactions that are pending confirmation. This that is, transactions that need to be confirmed (or not) via FinalizaFuncaoSiTefInterativo.

Number of transactions pending confirmation on the terminal#

This function is used by the terminal to know how many transactions were carried out in the event of a power outage and are pending an automation action, via function call FinalizaFuncaoSiTefInterativo.

int ObtemQuantidadeTransacoesPendentes (TaxDate, TaxCoupon)

ASCII Interface

ObtemQuantidadeTransacoesPendentesA (Result, TaxDate, TaxCoupon)

ParameterTypeStandard interfaceASCII interfaceDescription
ResultOutput, by valueNot usedFixed 6Contains the result of the response to the routine call.
TaxDateInput, by valuechar *Fixed 8Tax Date in YYYYMMDD format
TaxCouponInput, by valuechar *Max. 20Tax Coupon number corresponding to the sale

The routine returns the number of pending transactions for the document informed tax, or -13 if the document was not found Supervisor.

Query pending transactions on the terminal#

It is possible to consult all pending confirmation information from the terminal.

This functionality is initiated through the function IniciaFuncaoSiTefInterativo with the Function parameter (first parameter routine input) assuming the value 130 and the other parameters with their usual values.

In particular, this function will disregard parameters relating to the fiscal document.

IMPORTANT: This routine only starts the request process. If the return is 10000, the process must continue through the routine ContinuaFuncaoSiTefInterativo until it returns a final result other than 10000.

The following fields will be returned for automation.

FieldTypeDescription
210Total number of pending issues, listed in the data blocks below
160TaxCoupon
161Payment Coupon Identification Number
163TaxDate
164TaxTime
211Original “Function” Code
1319Original transaction value

Query pending transactions in a specific tax document#

In a similar way to the previous item, it is possible to consult the data referring to a single tax document.

To do so, use the function IniciaFuncaoSiTefInterativo by passing the Function parameter the value 131 and the other parameters with their values usual. In this case, the parameters relating to the fiscal document.

The fields returned are identical to the previous item.