Onerway
GET

Download settlement file

Use this endpoint after Onerway has enabled settlement-file download permission for your account. Send the signed request parameters as headers and save successful responses as UTF-8 CSV files.

Request

ApiKey
API key for the merchant account. Send it in the ApiKey request header. See Authentication.
Example:
merchantNo
Merchant number assigned by Onerway. See Setup for how to obtain it.
Example:
date
Settlement date for the file to download.
Example:
Constraints
Rule
Use yyyyMMdd format without hyphens; do not submit dates such as 2021-10-26.
currency
Three-letter ISO 4217 settlement currency code for the file to download.
Example:

Request example

curl -X GET 'https://sandbox-payment-api.onerway.com/v1/settlementFile/download' \
  -H 'merchantNo: replace_with_merchant_no' \
  -H 'date: 20211026' \
  -H 'currency: USD' \
  -H 'ApiKey: replace_with_api_key' \
  -H 'Content-Type: application/json' \
  --data-raw '{}'

Response

Successful responses return an application/octet-stream file stream, not a JSON body. Save the UTF-8 encoded content as a .csv file.

Response example

{
  "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"
}
No error responses are documented for this endpoint.