API reference
CustomerVerification
Type: Enum
Usage: It conveys information to display/ print the customer verification text for card transaction receipt
| Value | Description |
|---|---|
| OFFLINE_PIN | Receipt should print "Verified by PIN" |
| OFFLINE_PIN_AND_SIGNATURE | Receipt should print "Verified by PIN and signature" |
| SIGNATURE | Receipt should print "Verified by cardholder signature" |
| CDCVM | (Amex CPQR) requires to print "Verified by CDCVM" |
| STT | Receipt should print "No signature required (STT)" |
| NO_NEED | Receipt should print "no signature required" |
EntryMode
Type: Enum
| Value | Description |
|---|---|
| CONTACTLESS | (NFC) Contactless card/ mobile |
| CHIP | (ICC) Chip card |
| MAGSTRIPE | (MSR) Magnetic stripe card |
| FALLBACK | Fallback from chip to swipe |
| MANUAL | (MKE) Manual keyed entry |
| QR_SCAN | (CPQR) Consumer-present QR, merchant scan |
| QR_PRESENT | (MPQR) Merchant-present QR, consumer scan |
| CASH | Cash |
| OCTOPUS | Octopus |
ForceAcquirer
Type: Enum
- EDC
- CUP
- QR
- EPS
- DCC
PaymentMethod
Type: Enum
| Value | Description |
|---|---|
| VISA | Visa |
| MASTER | Mastercard |
| AMEX | American Express |
| JCB | JCB |
| UNIONPAY | UnionPay |
| ALIPAY | Alipay |
| WeChat Pay | |
| CASH | Cash |
| FPS | FPS |
| OCTOPUS | Octopus |
| UPI_QR | UnionPay International QR |
| EPS | EPS |
PosRequestData
Type: defined data structure
| Field | Type | Presence | Description | Remark |
|---|---|---|---|---|
| posId | String | Mandatory | POS identifier | |
| messageId | String | Mandatory | Request identifier from POS | |
| transactionType | Enum<TransactionType> | Mandatory | Requested transaction type | |
| requestAmount | Decimal | Conditional | Request total amount | Required for SALE, TIP_ADJUST, AUTH, REFUND |
| currency | String | Conditional | ISO-4217 Alpha-3 currency code | Required for SALE, TIP_ADJUST, AUTH, REFUND |
| tipAmount | Decimal | Optional | Tip amount | |
| cashbackAmount | Decimal | Optional | Cashback amount (EPS) | |
| preferredInstrument | Enum<PreferredInstrument> | Optional | The first interface prompt in payment app | |
| password | String | Optional | The operation password for sensitive ops (eg. void, refund) | |
| forceAcquirer | Enum<ForceAcquirer> | Optional | Force the terminal to use only this specific acquirer | |
| approvalCode | String | Conditional | Approval code of (previously) authorized transaction | Required for OFFLINE_SALE, AUTH_COMPLETE |
| rrn | String | Optional | RRN of (previously) approved transaction | Optional for REFUND, AUTH VOID |
| originalTerminalTransactionId | String | Conditional | Original transaction ID used to retrieve (and modify) transaction | (Either this or trace) Required for VOID, TIP_ADJUST |
| trace | String | Conditional | Original trace used to retrieve (and modify) transaction | (Either this or OrgTranId) Required for VOID, TIP_ADJUST |
| upiVoidData | Object<UPIAuthVoidDetailData> | Conditional | Additional info for CUP Pre-auth void | Required for CUP AUTH VOID |
PosResponseData
Type: defined data structure
| Field | Type | Presence | Description | Remark |
|---|---|---|---|---|
| responseResult | Enum<ResponseResult> | Mandatory | The request result | |
| posId | String | Mandatory | Copy from request | |
| messageId | String | Mandatory | Copy from request | |
| terminalTransactionId | String | Conditional | The unique transaction ID generated by terminal | For payment request and result SUCCESS |
| responseCode | Int | Conditional | 4 digits response code. Ref to ResponseCode | For request result FAILED |
| responseMessage | String | Conditional | Human readable response message. Ref to ResponseCode | For request result FAILED |
| transactionResult | TransactionResult | Conditional | Payment request result | For payment request and result SUCCESS |
| settlementResult | List<SettlementResponseData> | Conditional | Settlement request result | For settlement request and result SUCCESS |
PreferredInstrument
Type: Enum
- DEFAULT
- CARD
- QR
- EPS
- OCTOPUS
- CASH
- ZELLE
ReceiptRequest
Type: defined data structure
| Field | Type | Description |
|---|---|---|
| htmlString | String | The html to print |
ResponseResult
Type: Enum
- SUCCESS
- FAILED
SettlementResponseData
Type: defined data structure
| Field | Type | Description |
|---|---|---|
| result | ResponseResult | |
| responseCode | Int | 4 digits response code. Ref to ResponseCode |
| responseText | String | Human readable response message. Ref to ResponseCode |
| acquirerId | String | |
| acquireName | String | Acquirer name used to print on receipt/ report |
| batchNumber | Long | |
| valueDate | String | (EPS only) |
TransactionResult
Type: defined data structure
| Field | Type | Description |
|---|---|---|
| posReferenceId | String | |
| poiReferenceId | String | |
| processorReferenceId | String | |
| acqReferenceId | String | |
| trace | Long | |
| batch | Long | |
| deviceId | String | |
| acquirerId | String | |
| acquirerMid | String | |
| acquirerTid | String | |
| messageFormat | Enum<MessageFormat> | |
| createTime | String | |
| lastUpdateTime | String | |
| originalTransactionDate | String | |
| currency | String | |
| totalAmount | Decimal | |
| baseAmount | Decimal | |
| billingAmount | Decimal | |
| tipAmount | Decimal | |
| cashbackAmount | Decimal | |
| receivedAmount | Decimal | |
| remainingValue | Decimal | |
| receivedCash | Decimal | |
| changeDue | Decimal | |
| cardholderCurrency | String | |
| dccBaseAmount | Decimal | |
| dccTipAmount | Decimal | |
| fxRateText | String | |
| markupRateText | String | |
| tranType | Enum<TransactionType> | |
| tranStatus | Enum<TransactionStatus> | |
| paymentMethod | Enum<PaymentMethod> | |
| entryMode | Enum<EntryMode> | |
| customerVerification | Enum<CustomerVerification> | |
| refundable | Boolean | |
| voidable | Boolean | |
| adjustable | Boolean | |
| printRetrievalQr | Boolean | |
| settled | Boolean | |
| demoMode | Boolean | |
| maskedPan | String | |
| displayExpiry | String | |
| cardholderName | String | |
| paymentAccountId | String | |
| appName | String | |
| aid | String | |
| tc | String | |
| approvalCode | String | |
| tvr | String | |
| tsi | String | |
| atc | String | |
| upiTrace | String | |
| upiRRN | String | |
| ippPlan | String | |
| numberOfInstalments | Int | |
| signatureString | String | |
| debitAccountIndicator | String | (EPS only) |
| inputSequenceNumber | String | (EPS only) |
| debitAccountUsed | String | (EPS only) |
| transactionValueDay | String | (EPS only) |
| shopLogo | String | |
| shopName | String | |
| shopAddress | String | |
| receiptHeader | List | |
| shopEmail | String | |
| shopPhone | String | |
| promotionMessage1 | String | |
| promotionMessage2 | String | |
| productCode | String |
TransactionStatus
Type: Enum
- PROCESSING
- APPROVED
- DECLINED
- ERROR
- VOIDED
- ADJUSTED
- OFFLINE
TransactionType
Type: Enum
- SALE
- VOID
- REFUND
- AUTH
- AUTH_COMPLETE
- TIP_ADJUST
- OFFLINE_SALE
UPIAuthVoidDetailData
Type: defined data structure
| Field | Type | Presence | Description |
|---|---|---|---|
| originalTranType | Enum<TransactionType> | Original transaction type | |
| approvalCode | String | ||
| upiRRN | String | ||
| originalId | String |