Order Reconciliation File Download

Download link interface for reconciliation files.

Request URL

Will be provided via email.

Download Reconciliation File Request Parameters

Data Signing Rules

Field NameTypeValueRequired
Content-TypeString(30)Fixed value "application/json;charset=utf-8"Yes
X-TIMESTAMPString(29)Current time, format 2022-09-16T16:58:47.964+07:00Yes
X-SIGNATUREString(64)Signature. For details see Data Signing RulesYes
X-PARTNER-IDString(20)Merchant IDYes
X-REQUEST-IDString(64)Unique ID for each requestYes

Body

ParameterTypeRequiredRemarks
requestIdString(64)YesUnique ID for each request
merchantIdString(20)YesUnique ID provided by the payment gateway to the merchant
transactionTypeString(2)Yes10 Payment order

Download Reconciliation File Response Parameters

Header

Field NameTypeValueRequired
Content-TypeString(30)Fixed value "application/json;charset=utf-8"Yes

Body

ParameterTypeRequiredRemarks
requestIdString(64)YesUnique ID for each request
errCodeString(32)NoSee Error Code section
errCodeDesString(128)NoError details based on error code
merchantIdString(20)YesUnique ID provided by the payment gateway to the merchant
fileNameString(200)NoFile name
fileUrlString(200)NoFile download URL (valid for 24 hours)
fileSizeNumberNoFile size
statusString(2)No0 Initial, 1 Processing, 2 Downloadable, 3 Failed

fileUrl notes

File is a zip archive. After extraction, you will get one or more CSV files named merchantId_payDate_xxx_xxx.csv (xxx are 4-digit numbers).

CSV File Format

delimiter = ",";
quote = '"';
RecordSeparator = "\r\n";