Last transaction status
Get Last Transaction – Android only
This method allows the developer to retrieve the status of the last transaction made on the specific TID
Request
For this operation there are two parameters that initialize the URI
- scheme:
neximpos
- authority:
last_transaction
followed by the query parameters composed of the fields shown below:
Name parameter | Description | Type | Mandatory |
---|---|---|---|
callerName | String used to value the label of the “Torna A …” button | String | yes |
terminalId | Identification string of the terminal used for the payment to retrieve | String | yes |
callerTrxId | Identification string of the operation within the third-party app | String | yes |
uri | URI on which to retrieve the transaction response | String | yes |
Example request
neximpos://last_transaction?callerName=App%20Demo&terminalId=97943348&callerTrxId=12312 3uri=demonexi%3A%2F%2Flast_transaction
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 response consists of the following fields:
Name parameter | Description | Type | Mandatory |
---|---|---|---|
callerTrxId | Identification string of the transaction within the third-party app | String | yes |
amount | This field describes the amount of the last transaction in cents, same format of amount field f30 | String | yes |
operationType | This field describes the type of operation | String (LAST_TRANSACTION) | yes |
terminalType | This field describes the terminal type related to the last transaction | String (MPOS or SOFTPOS) | yes |
result | This field describes the result of the requested operation | int 0: success -41: empty receipt error | yes |
- | Receipt parameters, returned through the receipt field keys | Map<String, String> encoded into String | yes |
Example response
demonexi://last_transaction?operationType=LAST_TRANSACTION&callerTrxId=123123&result=0 amount=000000025200&terminalType=SOFTPOS&f30=25200&f32=09517&F42=8994712%20%20 %20%20%20%20%20%20&f53=01014&f12=172617&f11=000344&CT121=VIA%20CARLO%20CATT ANEO%207%2C%2087100%2C%20COSENZA%20(CS)&ABI=38937&CT120=STUDIO%20MEDICO%20 DR%20ROMANO&f38=401531&9F14=1100&f37=430517222236&f39=000&CT118=978&CT117=On line&CT116=00034&CT115=Contactless&CT114=NEXI%20Core&CT112=************7937&CT111 =2&acquirerId=909517&CT119=Grazie%20e%20arrivederci&CURRENCY=EUR&f41=97943348&f43= STUDIO%20MEDICO%20DR%20ROMANO%20VIA%20CARLO%20CATTANEO%207%2C%2087100%2 C%20COSENZA%20(CS)&f42=8994712%20%20%20%20%20%20%20%20&CT110=2024-1031T17%3A27%3A07%2B01%3A00&f03=000000&f02=516795******7937&f49=978&f04=0000000 25200&f28=241031&CT107=17%3A26&CT106=31%2F10%2F2024&CT105=ACQUISTO&CT104=STU DIO%20MEDICO%20DR%20ROMANO%20VIA%20CARLO%20CATTANEO%207%2C%2087100%2C%2 0COSENZA%20(CS)&CT103=430517222236&CT102=A0000000041010&CT123=***&CT101=46&CT 100=7937&PROVINCE=PALERMO&CT109=Debit%20Mastercard&CT108=Mastercard