Transaction file
The transaction files obtained from SFTP and Alipay global open platform are slightly different in contents.
#Transaction file obtained from SFTP
The transaction file obtained from SFTP consists of two parts, which are the file header and the record details.
#File header
The following table lists the fields in the file header:
| No. | Field | Type (length) | Description |
| 1 | Partner | String(16) | The unique ID that is assigned by Alipay to identify a partner. The ID is composed of 16 digits beginning with 2088. |
| 2 | Payment_time | String(10) | The date when the transaction is completed. Format: YYYY-MM-DD |
| 3 | Total_count | Number(9) | The total number of records in the file |
#Record details
The record details contain the following fields:
#Sample
Partner:208800000000|Payment_time: 2013-12-02|Total_count:4
Partner_transaction_id|Transaction_id|Transaction_amount|Charge_amount|Currency|Payment_time|Transaction_type|Remark|Secondary_merchant_industry|Secondary_merchant_name|Operator_name|Order_scene|Trans_currency|Trans_amount|Trans_forex_rate
0001|201312020445|100|3|HKD|2013-12-02 10:45:42|PAYMENT||5812|xxx|xxx|shopQrCode|TWD|100|0.031
0002|201312020446|100|3|HKD|2013-12-02 10:45:13|REVERSAL||5812|xxx|xxx|shopQrCode|TWD|100|0.031
0003|201312020448|100|3|HKD|2013-12-02 10:45:09|REFUND|Refund|5812|xxx|xxx|shopQrCode|TWD|100|0.031 #Transaction file obtained from Alipay global open platform
When you view transaction information on Alipay global open platform, you can see the following fields:
No. | Field | Description |
1 | Time | The date and time when the transaction is completed. Format: YYYY.MM.DD HH:MM:SS
|
2 | Transaction ID/Partner transaction ID | The unique ID that is composed of digits and assigned by Alipay to identify a transaction / The unique ID that is assigned by the partner to identify a transaction in the partner system. When Type is P, the value is same as that of partner_trans_id. When Type is R, the value is same as that of transaction_id.
|
3 | Gross Amount | The transaction amount in foreign currency and in CNY currency. When the transaction is a refund, the amount is a minus number.
|
4 | Settlement | The settlement amount in foreign currency and in CNY currency.
|
5 | Fee | The commission fee that is charged for the transaction in foreign currency and in CNY currency.
|
6 | Discount Amount | Amount of the discount voucher in foreign currency and in CNY currency.
|
7 | Currency | Settlement currency
|
8 | Product | In-store payment product. The value is fixed as SPOT.
|
9 | Type | The
transaction type. The value can be: P: Payment transaction R: Refund transaction
|
10 | Status | Transaction
status. P: Payment succeeds When Type is R, the value can be:S: Refund succeeds F: Refund failed W: Refund process has not completed Note: The value W is only available in the async refund process.
|
11 | Remarks | Remarks |
12 | Operation | Action to process a transaction
|
#Sample
