Settlement and reconciliation
Alipay provides automatically generated reports that are based on a specified schedule to help you perform financial tasks, such as validating funds received and reconciling balances.
#Settlement
The settlement rules are determined by the selected payment product. You can also specify settlement rules according to each payment in the payment or settlement interface. After the payment is successful, Alipay makes the settlement according to the settlement rules, calculates the payment fee amount, and deducts the fee amount from the total amount to get the settlement amount. For general transactions, Alipay provides the following service for generating bills and remitting:

Figure 1. General transaction settlement service flow
The general transaction settlement service consists of the following steps:
- Generate a transaction bill. When the natural day is over, Alipay summarizes all order information for the day (including payment, refund) based on the natural day.
- Generate a settlement bill. When the settlement bill date agreed by the merchant is reached (such as one day later), Alipay will summarize the settlement amount of the transaction specified in the settlement range (such as daily, weekly), and generate a settlement bill for the merchant.
- Remit to the merchant account. When the settlement date is reached (such as two days later), Alipay will fund the bank account of the merchant's designated settlement object.
Based on the settlement period specified in a merchant settlement agreement, the amount in all transactions deducting acquiring fee and refunded amount is settled and a settlement file is generated. All settled funds based on the settlement file are transferred to the merchant specified bank account. The settlement can be performed with a different currency from the payment currency, and the acquiring fee is calculated in the same currency that is used in the settlement. A merchant receives the settled funds with a settlement file including details of every transaction, fees, and discount information.
#Reports
Alipay provides financial reports to help you streamline your business workflows. You can download and use reports to perform financial tasks, such as validating funds received, and reconciling balances.
#Report types and schedule
Alipay provides three types of reports. The following list shows the report types, tasks of corresponding reports, and the generation schedule of each report:
Report | Task | Schedule |
Transaction Items report |
| Available at T+1 day, before 24:00. Note: The time follows the time zone specified in the contract signed by the merchant with Alipay. |
Settlement Summary report |
| Depending on the agreement specified in the contract, the availability can be one of the following cases:
|
Settlement Items report |
| Depending on the agreement specified in the contract, the availability can be one of the following cases:
|
Table 1. Report information
For more information about the reports, such as the sample report and report structure, see Transaction Items, Settlement Summary, and Settlement Items.
#Getting reports
You can fetch the reconciliation reports to view details of transactions. Alipay uploads reports to a specific directory in the SFTP for being downloaded and all reports are UTF-8 encoded.
#SFTP login
To obtain your reports through SFTP server of Alipay, complete the following steps:
- Contact Technical support to obtain the credentials.
- Log in to the SFTP server to download reports. Use the following settings to log in and obtain files:
- Port: 22
- Host name: isftp.alipay.com
- Username and password
- If you are using sandbox environment, contact AMS Technical Support to submit your public IP address with which you visit the SFTP server.
Notes:
- SFTP accounts that are not used for 90 days are closed.
- Files older than seven days on the SFTP server might be removed. It is suggested to download the files within three days. If the file you need is deleted, contact AMS Technical Support for help.
#File directory and file name
The file directory and name follow these rules:
- For the Transaction Items report:
The file is saved in the directory /v1/settlements/<customerId>/<transactionDate>/, with a file name of transactionItems_<transactionCurrency>_<seq>.csv.
- For the Settlement Summary report:
The file is saved in the directory /v1/settlements/<customerId>/<settlementDate>/, with a file name of settlementSummary_<settlementCurrency>_<settlementBatchId>_<seq>.csv.
- For the Settlement Items report:
The file is saved in the directory /v1/settlements/<customerId>/<settlementDate>/, with a file name of settlementItems_<settlementCurrency>_<settlementBatchId>_<seq>.csv.
For more information about file transmission via SFTP, see Secure file transmission.
#Exceptional cases
You might encounter problems when performing reconciliation. This section presents typical exceptional cases that might be encountered and the corresponding resolutions.
#1. Discrepancies
You might find discrepancies between different reports when performing reconciliation.
Possible reasons:
- Errors occur when performing the reconciliation.
- Problems happen when Alipay generates reports.
Actions:
- When discrepancies exist,the report information from Alipay should prevail. You can review the reconciliation procedures first to figure out whether problems exist.
- If adjustments are required, contact Alipay to review the related reports, and then take actions accordingly based on review results.
- If you cannot view or retrieve reports, contact Alipay technical support for help.
#2. Retrieving reports failure
You might be unable to view or retrieve the reports as usual.
Possible reasons:
- The target report is damaged.
- Problems occur when Alipay generates reports.
Actions:
Contact Alipay technical support for help.