Accounting closure
Overview
Account closure – MobilePOS Only! The account closure can be run by calling the closeAccount method. Only callable with an active MobliePOS TID
Request
For this operation there are two parameters that initialize the URI
- scheme:
neximpos
- authority:
accounting_closure
followed by the query parameters composed of the fields shown below:
Name | Description | Type | Mandatory |
---|---|---|---|
callerName | String used to value the label of the “Torna A …” button | String | yes |
callerTrxId | Identification string of the transaction within the third-party app | String | yes |
uri | URI on which to retrieve the transaction response. | String | yes |
Example request
neximpos://accounting_closure?callerTrxId=qwerty&callerName=AAA&uri=demonexi%3A%2F% accounting
Response
The response has the following attributes:
- scheme:
specified in the URI field shown above
- authority:
specified in the URI field shown above
while for query parameters the request consists of the following fields:
Name | Description | Type | Mandatory |
---|---|---|---|
callerTrxId | Identification string of the transaction within the third-party app | String | yes |
operationType | This field describe type of operation | String (ACCOUNTING_CL OSE) | yes |
result | This field contains the result of the transaction | int | yes |
hostTotal | Total amount received from the bank, in hundredths of euro. e.g. €123,45 ”12345” | int | optional * |
terminalTotal | Total amount stored in the terminal, in hundredths of euro. e.g. €12,50 “1250” | int | optional * |
* Valued only if accounting closure is performed The result field can take the following values:
- 0: accounting closure performed
- -1: invalid input parameters
- -2: device not secure
- -3: Bluetooth off
- -4: services not available
- -5: deprecated app
- -6: login required
- -7: terminalId suspended
- -8: terminalId absent
- -9: terminalId not configured on pos
- -10: pos connection timeout
- -12: accounting closure not performed
Example response
demonexi:// accounting_closure?result=0&hostTotal=1&terminalTotal=1&callerTrxId=qwerty&operationType=A CCOUNTING_CLOSURE