Skip to main content

Transaction data file specification

Data file naming

TXN-V02-{MID}-{from:YYYYMMDD}-{to:YYYMMDD}-{generation_timestamp}[-{split_index}].csv

MID: Merchant ID

from:YYYYMMDD: Start date of the transaction, e.g. 20200101 refers to 1st Jan 2020 00:00:00

to:YYYYMMDD: End date of the transaction, e.g. 20200101 refers to 1st Jan 2020 23:59:59

generation_timestamp: Unix timestamp of the file generation, e.g. 1587657600000 refers to 24th April 2020 00:00:00

split_index: Optional, only present when the file is split into multiple files. e.g. 1 refers to the first file of the split files.

File Content

Record type

Record typedescription
00header record
01transaction header
02transaction detail
99tailer record

record type 00 - Header record

Field Nodescription
1record type
2from date
3to date
4MID - QFPay merchant ID
5SID - QFPay store ID (if applicable)
6BR No. (8 digits)
7no. of transactions in the current file
8sum of amount of transactions in the current file
9no. of transactions in the batch
10sum of amount of transactions in the batch

record type 02 - Data record

Field Nodescription
1Store Name
2Cashier
3Transaction type
4Transaction Date
5Transaction time
6Transaction amount
7Transaction status
8Transaction ID
9Original Transaction ID
10Currency
11UDID
12Merchant Order ID
13Remark
14Store ID
15External Order ID
16Consumer Source

record type 99 - trailer record

Field Nodescription
1record type
2no. of transactions in the current file
3sum of amount of transactions in the current file
4no. of transactions in the batch
5sum of amount of transactions in the batch

Samples of data files

Data sample: https://cdn.qfpay.com.hk/cdi/data-samples/TXN-V02-11000001-20221001-20221002-1692085343502.csv