Start of Payment or Management transaction

The following routines are recommended for starting a transaction on CliSiTef.

What differentiates the transaction to be executed is the Function code passed as a parameter. (See Table 5.2.2)

The various transactions initiated by commercial automation are grouped by fiscal data, which is the pair (CupomFiscal, DataFiscal) and with this data, controls on transactions pending confirmations from CliSiTef are carried out.

HoraFiscal is important for security validations of some pinpad manufacturers (in order to prevent attacks and fraud).

int IniciaFuncaoSiTefInterativo (Function, Value, Tax Coupon, Tax Data,
HoraFiscal, Operator, ParamAdic)

Interface ASCII

IniciaFuncaoSiTefInterativoA (Result, Function, Value, Tax Coupon, Tax Data,
HoraFiscal, Operator, ParamAdic)

The functions below were used for Self-Service terminals, and are considered obsolete.

int IniciaFuncaoAASiTefInterativo (Function, Value, Tax Coupon, Tax Data,
HoraFiscal, Operator, ParamAdic, Products)

ASCII interface

IniciaFuncaoAASiTefInterativoA (Result, Function, Value, Tax Coupon, Tax Date,
HoraDiscal, Operator, ParamAdic, Products)

ParameterTypeStandard InterfaceASCII InterfaceDescription
ResultOutput, pleaseNot usedFixed 6Contains the result of the response to the routine call
FunctionInput pleaseintFixed 6Select the payment method, according to the “Function Codes” table below.
ValueInput pleasechar *VariableContains the amount to be paid including the decimal separator (“,”). It must always be passed with two decimal places after the comma (“,”). If the operation does not have a value defined a priori (e.g. prepaid recharge), this field must be empty.
Tax CouponEntry, pleasechar *Max 20Tax Coupon Number corresponding to the sale

It is important that the tax coupon number is always increasing (increased with each transaction), as the entire transaction control process CliSiTef pending and confirmations are based on the CouponFiscal + DataFiscal set.
Tax DateEntry, pleasechar *Fixed 8Fiscal Date in AAAAMMDD format
Tax TimeEntry, pleasechar *Fixed 6Fiscal Schedule in HHMMSS format
OperatorEntry pleasechar *Max. 20Identification of the cashier
ParamAdicEntry pleasechar *VariableAdditional parameters. Allows the application to limit the type of payment method. It is optional and can be passed empty. When this field is used, CliSiTef will limit the navigation menus only to codes not present in the list. See item 5 for the description of the internal format of this field
ProductsEntry pleasechar *VariableContains the list of products that the customer is purchasing at the Self-Service terminal. It is mandatory as these products will form an integral part of the Tef operation receipt to be printed. The basic format of this field is:
See Example below

Basic product field format:

[<Description1>;<Code1>;<Quantity1>;<Total Value1>];
[<Description2>;<Code2>;<Quantity2>;<Total Value2>];...
FieldFormat
Description1 to 14 characters
Code1 to 08 characters
Quantity1 to 04 digits
Value999,999.99

It must be repeated as many times as the number of distinct products purchased by the customer.


IMPORTANT: This routine only starts the payment process. If the return is 10000 the payment process must be continued through the routine ContinuaFuncaoSiTefInterativo or ContinuaFuncaoSiTefInterativoA until the latter returns a final result (see item that describes this function).



IMPORTANT: up to version 6.1.114.39 (inclusive) of clisitef, whenever a payment is initiated on a new tax document (a pair <CupomFiscal, DataFiscal> different from the previous one), data from the previous transaction will be replaced by those of the newly started one, making it impossible for some treatments, such as pending issues, to be carried out successfully. Therefore, all necessary treatments must be resolved before starting a new transaction


From version 6.1.114.40 (inclusive), CliSiTef allows you to start a new payment, without deleting any pending issues from the previous tax document

5.2.1 Return code table#

ValueDescription
0Success in executing the function
10000The process continuity routine must be called.
other positive valueDenied by authorizer.
-1Module not initialized. The POS tried to call some routine without first executing the configure function.
-2Operation canceled by operator
-3The function / modality parameter is non-existent/invalid.
-4Lack of memory in the POS.
-5No communication with SiTef.
-6Operation canceled by user (on pinpad).
-7Reserved
-8CliSiTef does not have the necessary function implementation, it is probably outdated (CliSiTefI is more recent).
-9The automation called the routine ContinuaFuncaoSiTefInterativo without first starting an iterative function.
-10Some mandatory parameter was not passed by commercial automation.
-12Error executing the iterative routine. Probably the previous iterative process was not executed until the end (while the return is equal to 10000).
-13Tax document not found in CliSiTef records. Returned in query functions such as GetPendingTransactionQuantity.
-15Operation canceled by commercial automation.
-20Invalid parameter passed to the function.
-21A prohibited word, for example PASSWORD, is used to collect open data on pinpad. For example, in the function ObtemDadoPinpadDiretoEx
-25Banking Correspondent Error: Bloodletting must be carried out.
-30File access error. Make sure that the user running the application has read/write rights.
-40Transaction denied by SiTef server.
-41Invalid data
-42Reserved
-43Problem executing any of the routines on the pinpad.
-50Unsecured transaction.
-100Internal module error.
other negative valueErrors detected internally by the routine.

2.2 Function code table#

The following codes are available to be used in the Function parameter described above¹

FunctionDescription
0Generic payment. CliSiTef allows the operator to choose the payment method through menus.
1Check
2Debt
3Credit
4Fininvest
5Benefit Card
6Centralized Credit
7Fuel Card
8Pay More Redecard
10Wappa Meal Benefit
11Wappa Food Benefit
12Infocard
13PayPass
15Sale with Gift Card
16Debit for payment of carnet
17Credit for payment of carnets
28Sales with Quality Card (ICI Card)
...
100Telemarketing: Initiates collection of transaction data at the point needed to handle an entered credit card transaction
...
101Cancellation of sales with a Quality card (ICI Card)
110Open the Management transactions menu
111Communication test with SiTef
112Reprint Menu
113Re-print specific voucher
114Reprint last receipt
115Pre-authorization
116Pre-authorization capture
117Pre-authorization adjustment
118Pre-authorization consultation
...
130Querying pending transactions on the terminal
131Querying pending transactions in a specific tax document
  • ¹ See specific product documents for other function codes
FunctionDescription
150Bonus Consultation
151Gift Card Balance Inquiry
152Gift Card Balance Inquiry
...
160EMS Card Consultations
161EMS Card Sales
...
200Normal Cancellation: Starts data collection at the point necessary to cancel a debit or credit transaction, without having to first go through the administrative transactions menu
201Telemarketing Cancellation: Similar to modality 200 but for the function of canceling entered credit transactions
202Pre-authorization Cancellation
203Cancellation of Pre-Authorization Capture
210Cancellation of credit card sales
211Cancellation of sales with Debit card
212Cancellation of sales with Fuel card
213Cancellation of Gift Card Sales
250Bonus Consultation Cancellation
251Cancellation Gift Card Recharge
253Cancellation Accumulation of Points Bonus Card
254Points Redemption Bonus Card
255Cancellation of Bonus Card Points Redemption
256Accumulation of Bonus Card Points
257Gift Card Recharge Cancellation
...
264Gift Card Recharge
265Activation Linked Payment Gift Card
266Gift Card Consultation
267Gift Card Activation Without Payment
268Gift Card Activation With Payment
269 ​​Activation Unlinked Gift Card
...
310Bank Correspondence (Bill Payment)
311Payment of Bills with Withdrawal
...
312Consultation for Unlinked Payment (Generic)
313Unlinked Payment (Generic)
314Corban SE Prepaid Recharge with Withdrawal
315Withdrawal for Payment
316Unlinked Payment Cancellation (Generic)
317Consultation Banking Correspondent Limits
318Bradesco Prepaid Recharge
319Bradesco Prepaid Recharge disconnected from payment
320Corban SE Prepaid Recharge
321Corban SE Prepaid Recharge disconnected from payment
...
322Identified Deposit
323Transfer between Accounts
324Pay Easy
325INSS Password Revalidation
...
350Sell ​​Product (No Value)
351Product Sale Cancellation (No Value)
...
400Vale-Gás
401Vale-Gás Validation
410Surprise Change
...
422Insurance Membership
...
430Le Cartão Seguro (LeCartaoSeguro)
431Le Trilha Chip (LeTrilhaChipInterativoEx)
...
500ACSP Detailed Consultation
501Serasa Detailed Consultation
...
600Balance Inquiry
601Debit Card Balance Inquiry
602Credit Card Balance Inquiry
...
657Withdraw Credit Transfer
658Withdraw Credit
...
660IBI Withdrawal Menu
661IBI Bank Withdrawal Consultation
...
662IBI Bank Withdrawal
...
663GetNet Withdrawal
664GetNet Withdrawal Cancellation
...
665Points Redemption
667Points Issuance
668Cancellation of Point Issuance
669Prepaid Load
670Cancellation of Prepaid Load
...
671Withdrawal Consultation with IBI Bank Withdrawal
672IBI Bank Withdrawal Cancellation
...
680Prepaid Balance Inquiry
...
698Debit Withdrawal
...
700Sale Oi Paggo
701Hi Paggo Cancellation
702Bill Payment
703Benefit Card Payment Cancellation
...
705Invoice Payment
...
740Adm Credit Installment Consultation
...
770Loading tables on pinpad²
771Forced loading of tables on pinpad (Local)
772Forced loading of tables on the pinpad (SiTef)
...
775Obtaining information from the pinpad³
...
899Credit card recharge
900Credit card top-up cancellation
...
913Change of Pre-Authorization
...
928Debit Cancellation for Payment Carnet Forced Network
...
943Payment Invoice without linked invoice
944Payment Invoice without unlinked invoice
...
999Closing
...
1000Paper Voucher

  • ² See item 5.12 - Loading Tables in PinPad for more information.
  • ³ See item 5.11 - PinPad Information for more information.