GET
下载结算文件
该接口用于在 Onerway 开通结算文件下载权限后,按结算日期和结算币种下载结算文件。请求参数需放在 Header 中,成功响应请保存为 UTF-8 CSV 文件。
curl -X GET 'https://sandbox-acq.onerway.com/v1/settlementFile/download' \
-H 'merchantNo: replace_with_merchant_no' \
-H 'date: 20211026' \
-H 'currency: USD' \
-H 'sign: {{SIGN}}' \
-H 'Content-Type: application/json' \
--data-raw '{}'响应
file{ Content-Type, csv }成功响应返回
application/octet-stream 文件流,而不是 JSON body。请将 UTF-8 编码内容保存为 .csv 文件。{
"file": "Settlement Date,Settlement Currency,Transaction Amount,Refund Amount,Transaction Processing Fee,Refund Processing Fee,Fee,Interchange Fee,Scheme Fee,Markup,Deposit Release,Deposit,Settlement Amount,Platform fee,Fraud Administration Fee,Decision management Fee,Other charges\n2026-06-26,USD,220.000000,-20.000000,-1.500000,-0.200000,-1.000000,-1.100000,-0.200000,-1.300000,0.000000,-30.000000,181.900000,0.000000,0.000000,0.000000,0.000000\nSettlement Date,Settlement Batch ID,Transaction ID,Merchant Order ID,Production Type,Card Type,APP ID,Transaction URL,Order_Currency,Order Amount,Transaction Type,Transaction Status,Settlement Currency,Transaction Amount,Processing Fee,Fee,Interchange Fee,Scheme Fee,Markup,Deposit,Settlement Amount,Settlement Status,Wallet Type Code,Merchant Order Time,Platform type,Platform fee,Fraud Administration Fee,card product,card category,Decision management Fee,Fee Percentage,Markup Fixed amount,Markup Fixed currency,Markup Percentage,Transaction complete time,Original transaction ID,Original transaction merchant order ID,Remark,Other charges,Counterparty Name,Transaction Time (GMT+8)\n2026-06-26,2070319499920410001,2065303220829687001,1781241631001,LPMS,VISA,2065269384285683001,example.com,USD,100.000000,SALE,S,USD,100.000000,-1.000000,-1.000000,0.000000,0.000000,-0.500000,-10.000000,87.500000,S,,2026-06-12 13:20:32,,0.000000,0.000000,,,0.000000,1.000000%,-0.500000,USD,0.000000%,2026-06-12T13:21:39,,,,0.000000,,2026-06-12T13:20:33\n2026-06-26,2070319499920410001,2065303220829687002,1781241631003,CARD,VISA,2065269384285683001,example.com,USD,200.000000,SALE,S,USD,200.000000,-0.500000,0.000000,-1.100000,-0.200000,-0.800000,-20.000000,177.400000,S,,2026-06-12 13:20:32,,0.000000,0.000000,1,C,0.000000,,,,2026-06-12T13:22:00,,,,0.000000,,2026-06-12T13:22:01\n2026-06-26,2070319499920410001,2065306663241781002,1781241631002,LPMS,MB_WAY,2065269384285683001,example.com,USD,20.000000,REFUND,S,USD,-20.000000,-0.200000,0.000000,0.000000,0.000000,0.000000,0.000000,-20.200000,S,,2026-06-12 13:20:32,,0.000000,0.000000,,,0.000000,,,,,2026-06-12T13:34:20,2065303220829687001,1781241631001,,0.000000,,2026-06-12T13:34:14\n2026-06-26,2070319499920410001,2065306663241781004,1781241631004,LPMS,VISA,2065269384285683001,example.com,USD,40.000000,CB,S,USD,-40.000000,-2.800000,0.000000,0.000000,0.000000,0.000000,0.000000,-42.800000,S,,2026-06-12 13:20:32,,0.000000,0.000000,,,0.000000,,,,,2026-06-12T14:10:00,,,,0.000000,,2026-06-12T14:10:01\n2026-06-26,2070319499920410001,2065306663241781003,1781241631005,LPMS,,2065269384285683001,example.com,USD,20.000000,SHARE,S,USD,-20.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,-20.000000,S,,2026-06-12 13:20:32,,0.000000,0.000000,,,0.000000,,,,,2026-06-12T13:30:00,2065303220829687001,1781241631001,,0.000000,,2026-06-12T13:30:01"
}该接口暂未记录错误响应。