Integračná dokumentácia Help

cardGetLastReceipt

Use

Device type

Note

eKasa

no

Command for payment services only

eKasa + POS

yes

POS

yes

The command returns information about the last payment operation (the last successful transaction). The command leaves a record in device's DB, the receipt is printed when commands "print" and "get" with the attribute "paragon" are invoked.

Format:

For operation type PAYMENT

Key

Description

ID

Payment terminal ID

A

Authorisation code

b

Card brand (VISA, MCI .. etc)

t

Transaction approval time

S

Variable symbol

B

Card number

TextZ

Receipt for the customer (multiline, every live starts with TextZ)

TextP

Receipt for the merchant (multiline, every line starts with TextP)

For operation type REFUND

Key

Description

OP

Operation

TR

Transaction result (0 - OK, 1 - Operation rejected, 9 - Rejection local error)

TM

Message for the user in device language

ST

Status code

RC

Payment protocol return code (according to the table)

S

Variable symbol

ID

Payment terminal ID

A

Authorisation code

b

Card brand (VISA, MCI .. etc)

t

Transaction approval time

C

Amount

B

Card number

CT

Card type (contact, contactless, magnetic, manualPan)

MID

Merchant ID

AID

Card type application identifier

TRNTYPE

Transaction type

SIG

Required signature

OFF

Offline transaction attribute

TRNERR

false - transaction OK; true - the transaction ended in error

RID

Receipt identifier (In the format: “yyyyMMddHHmm / RCL / RN”, 24 characters in total, RLC and RN aligned to 6 characters and initial zeros added)

RCL

Local receipt counter

RCG

Global receipt counter

RN

Report number

TRNSEQ

Transaction sequence number

S

Variable symbol

TextZ

Receipt for the customer (multiline, every line starts with TextZ)

TextP

Receipt for the merchant (multiline, every line starts with TextP)

Parameters

cardGetLastReceipt:

Example

00/cardGetLastReceipt:

Example results

Result OK

00/cardGetLastReceipt: >ID:EPO000004 >A:006721 >b:Visa Debit >t:2023-10-24 09:52:04 >S:Z804521249 >C:0.50 >B:**** **** **** 9138 >TextZ:-------------------------------- >TextZ: 24.10.2023 21:52:03 >TextZ:000005 000003 000024 >TextZ:-------------------------------- >TextZ: PLATBA >TextZ: >TextZ:MERCHANT ID: TEST01 >TextZ:TERMINÁL: EPO000004 >TextZ:PAN : **** **** **** 9138 >TextZ:Visa Debit >TextZ:AID : A0000000031010 >TextZ:~1B~21~30Suma EUR: 0,50~1B~21~00 >TextZ:CONTACTLESS >TextZ:AUTORIZAČNÝ KÓD: 006721 >TextZ:RC: 000 >TextZ: >TextZ: TRANSAKCIA VYKONANÁ >TextZ:-------------------------------- >TextP: The quick brown >TextP: fox jumps over >TextP:the lazy dog additional header. >TextP:-------------------------------- >TextP: 24.10.2023 21:52:03 >TextP: POTVRDENKA PRE OBCHODNÍKA >TextP:000005 000003 000024 >TextP:-------------------------------- >TextP: PLATBA >TextP: >TextP:MERCHANT ID: TEST01 >TextP:TERMINÁL: EPO000004 >TextP:PAN : **** **** **** 9138 >TextP:Visa Debit >TextP:AID : A0000000031010 >TextP: >TextP: >TextP:~1B~21~30Suma EUR: 0,50~1B~21~00 >TextP:CONTACTLESS >TextP:AUTORIZAČNÝ KÓD: 006721 >TextP:RC: 000 >TextP: >TextP: TRANSAKCIA VYKONANÁ >TextP:-------------------------------- >TextP: Ďakujeme Vám >TextP: Potvrdenku si odložte >TextP: pre prípadnú kon 00/

Result error

-3/cardGetLastReceipt:00.01;4562314875 99/
Last modified: 23 februára 2026