# Download settlement file

> Download a UTF-8 CSV settlement file by settlement date and settlement currency.

```yaml
openapi: 3.1.0
x-onerway-docs-version: v2
x-onerway-spec-key: payments/versions/v2/settlement-files/download-settlement-file
info:
  title: Download settlement file
  version: v2
  description: Download a UTF-8 CSV settlement file by settlement date and
    settlement currency.
servers:
  - url: https://sandbox-payment-api.onerway.com
    description: sandbox
  - url: https://payment-api.onerway.com
    description: production
paths:
  /v1/settlementFile/download:
    get:
      summary: Download settlement file
      description: Download a UTF-8 CSV settlement file by settlement date and
        settlement currency.
      parameters:
        - name: ApiKey
          in: header
          required: true
          description: API key for the merchant account. Send it in the `ApiKey` request
            header. See
            [Authentication](/payments/versions/v2/get-started/authentication).
          schema:
            type: string
            description: API key for the merchant account. Send it in the `ApiKey` request
              header. See
              [Authentication](/payments/versions/v2/get-started/authentication).
        - name: merchantNo
          in: header
          required: true
          description: Merchant number assigned by Onerway. See
            [Setup](/payments/versions/v2/get-started/setup#retrieve-your-credentials)
            for how to obtain it.
          schema:
            type: string
            description: Merchant number assigned by Onerway. See
              [Setup](/payments/versions/v2/get-started/setup#retrieve-your-credentials)
              for how to obtain it.
        - name: date
          in: header
          required: true
          description: Settlement date for the file to download.
          schema:
            type: string
            description: Settlement date for the file to download.
            x-onerway-constraints:
              - kind: rule
                text: Use `yyyyMMdd` format without hyphens; do not submit dates such as
                  `2021-10-26`.
        - name: currency
          in: header
          required: true
          description: Three-letter [ISO
            4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes)
            settlement currency code for the file to download.
          schema:
            type: string
            description: Three-letter [ISO
              4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes)
              settlement currency code for the file to download.
      responses:
        "200":
          description: Settlement file content (illustrative)
          content:
            application/json:
              schema:
                type: object
                properties:
                  file:
                    type: object
                    properties:
                      Content-Type:
                        type: string
                        description: Response MIME type for the settlement file stream.
                      csv:
                        type: object
                        properties:
                          batch:
                            type: object
                            properties:
                              Settlement Date:
                                type: string
                                description: Settlement date of the settlement cycle. Each settlement cycle
                                  produces one file per settlement currency, and
                                  the batch summary section merges all batches
                                  of the same day and currency into one summary
                                  row.
                              Settlement Currency:
                                type: string
                                description: Settlement currency of this batch, i.e. the currency Onerway
                                  settles funds in. Three-letter [ISO
                                  4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes)
                                  code.
                              Transaction Amount:
                                type: string
                                description: Total transaction amount of this batch in the settlement currency.
                                  Payments count positive, refunds and
                                  chargebacks count negative.
                              Refund Amount:
                                type: string
                                description: Total successful refund amount of this batch in the settlement
                                  currency, written as a negative amount.
                              Transaction Processing Fee:
                                type: string
                                description: Total per-transaction processing fee charged in this batch,
                                  covering payments, captures,
                                  pre-authorizations and their voids, and
                                  pre-dispute billing entries, under either
                                  pricing model.
                              Refund Processing Fee:
                                type: string
                                description: Total per-transaction processing fee charged on successful refunds
                                  in this batch, under either pricing model.
                              Fee:
                                type: string
                                description: Total transaction fee charged by Onerway for this batch.
                                x-onerway-value:
                                  empty: true
                                  when:
                                    en: Populated for transactions priced under bundled pricing; stays `0` for
                                      transactions priced under IC++ pricing,
                                      whose fees are split into the Interchange
                                      Fee, Scheme Fee, and Markup columns. A
                                      merchant may have both pricing models
                                      configured.
                                    zh: 按打包模式计费的交易有值；按 IC++ 模式计费的交易为 `0`，其费用拆分见 Interchange Fee、Scheme Fee、Markup
                                      各列。商户可同时配置两种计费模式。
                              Interchange Fee:
                                type: string
                                description: Interchange fee charged by the card issuer.
                                x-onerway-value:
                                  empty: true
                                  when: &a1
                                    en: Populated for transactions priced under IC++ pricing. For transactions
                                      priced under bundled pricing the value
                                      stays `0` or empty; read `Fee` instead. A
                                      merchant may have both pricing models
                                      configured, so both groups of fee columns
                                      can carry values in the same file.
                                    zh: 按 IC++ 模式计费的交易有值；按打包模式计费的交易为 `0` 或空，此时以 `Fee`
                                      列为准。商户可同时配置两种计费模式，同一文件中两组费用列都可能承载费用。
                              Scheme Fee:
                                type: string
                                description: Scheme fee charged by the card network.
                                x-onerway-value:
                                  empty: true
                                  when: *a1
                              Markup:
                                type: string
                                description: Markup retained by Onerway on top of interchange and scheme fees.
                                x-onerway-value:
                                  empty: true
                                  when: *a1
                              Deposit Release:
                                type: string
                                description: Deposit amount released back to the merchant in this batch.
                              Deposit:
                                type: string
                                description: Deposit amount withheld by Onerway in this batch and returned after
                                  maturity.
                              Settlement Amount:
                                type: string
                                description: Net settlement amount of this batch in the settlement currency,
                                  i.e. transaction amounts netted with all fees.
                                  This is the amount actually payable for the
                                  batch.
                              Platform fee:
                                type: string
                                description: Total platform fee charged on transactions under the platform model
                                  in this batch.
                                x-onerway-value:
                                  empty: true
                                  when:
                                    en: "`0.000000` when no platform fee is charged in this batch."
                                    zh: 本批次未收取平台费时为 `0.000000`。
                              Fraud Administration Fee:
                                type: string
                                description: Total fraud administration fee charged for risk-control services in
                                  this batch under bundled pricing.
                                x-onerway-value:
                                  empty: true
                                  when:
                                    en: "`0.000000` when no fraud administration fee is charged in this batch."
                                    zh: 本批次未收取欺诈管理费时为 `0.000000`。
                              Decision management Fee:
                                type: string
                                description: Total risk decision management fee charged for risk-control
                                  decisions in this batch under bundled pricing.
                                x-onerway-value:
                                  empty: true
                                  when:
                                    en: "`0.000000` when no decision management fee is charged in this batch."
                                    zh: 本批次未收取风险决策管理费时为 `0.000000`。
                              Other charges:
                                type: string
                                description: Other charges deducted in this batch, mainly for agency settlement
                                  scenarios.
                                x-onerway-value:
                                  empty: true
                                  when:
                                    en: Has a value when other charges apply; this column is included in the
                                      settlement CSV schema.
                                    zh: 存在其他费用时有值；该列属于结算 CSV schema。
                            description: Settlement batch summary section aggregated by settlement cycle.
                          details:
                            type: array
                            description: Settlement detail rows used for reconciliation and reporting.
                            items:
                              type: object
                              properties:
                                Settlement Date:
                                  type: string
                                  description: Settlement date of the settlement cycle this detail row belongs to.
                                Settlement Batch ID:
                                  type: string
                                  description: ID of the settlement batch this row belongs to. One settlement file
                                    merges all batches of the same settlement
                                    day and currency, so detail rows in one file
                                    may carry different batch IDs.
                                Transaction ID:
                                  type: string
                                  description: Onerway transaction number generated for the original transaction.
                                    Use it as the unique key to reconcile
                                    against API responses and webhooks.
                                Merchant Order ID:
                                  type: string
                                  description: Merchant order ID submitted in the original payment request
                                    (`merchantTxnId`), used to match the
                                    transaction on the merchant side.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Output when the original request carried a merchant order ID; otherwise
                                        empty.
                                      zh: 原始请求携带商户订单号时输出，否则为空。
                                Production Type:
                                  type: string
                                  description: Payment product range the transaction belongs to.
                                  enum:
                                    - ALL
                                    - CARD
                                    - LPMS
                                    - ACCOUNT
                                    - SETTLE
                                    - PAYOUT
                                    - PAYMENT_CODE
                                    - ORDER_CODE
                                    - FOREIGN_EXCHANGE
                                    - COLLECTION
                                    - ISSUING
                                    - PRE_DISPUTE
                                  x-enum-descriptions:
                                    ALL: All payment types.
                                    CARD: Card payment.
                                    LPMS: Local payment method.
                                    ACCOUNT: Account transaction.
                                    SETTLE: Settlement.
                                    PAYOUT: Payout.
                                    PAYMENT_CODE: Payment code (merchant-scanned).
                                    ORDER_CODE: Order code (customer-scanned).
                                    FOREIGN_EXCHANGE: Foreign exchange.
                                    COLLECTION: Collection.
                                    ISSUING: Card issuing.
                                    PRE_DISPUTE: Pre-dispute alert.
                                Card Type:
                                  type: string
                                  description: Card brand or local payment method used by the customer, covering
                                    VISA, MASTERCARD, AE, DINERSCLUB, Alipay+,
                                    WeChat, PayPal, Klarna, PIX, and other
                                    payment methods; empty for non-payment rows
                                    that carry no payment method.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when a card transaction or local payment method transaction
                                        returns a concrete payment method.
                                      zh: 卡交易或本地支付方式交易返回具体支付方式时有值。
                                APP ID:
                                  type: string
                                  description: Merchant application ID that processed the transaction, created
                                    when the merchant registers a website with
                                    Onerway.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when the transaction is associated with a merchant application.
                                      zh: 交易关联商户应用时有值。
                                Transaction URL:
                                  type: string
                                  description: Merchant website URL recorded on the transaction.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when the transaction records a merchant transaction URL.
                                      zh: 交易记录了商户交易网址时有值。
                                Order_Currency:
                                  type: string
                                  description: Order currency of the original transaction, three-letter [ISO
                                    4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes)
                                    code. This column does not participate in
                                    the settlement calculation.
                                Order Amount:
                                  type: string
                                  description: Original transaction amount submitted in the payment request, in
                                    order currency. This column does not
                                    participate in the settlement calculation.
                                Transaction Type:
                                  type: string
                                  description: "Transaction operation type of this settlement row, covering
                                    payments, refunds, profit sharing,
                                    chargebacks, and chargeback appeals. The
                                    amount sign follows the type: payments are
                                    positive, refunds and chargebacks are
                                    negative."
                                  enum:
                                    - SALE
                                    - AUTH
                                    - CAPTURE
                                    - VOID
                                    - REFUND
                                    - SHARE
                                    - RETURN
                                    - CB
                                    - CB_CANCEL
                                    - CB_VOID
                                    - CB_APPEAL
                                    - CB_APPEAL_SUCCESS
                                    - CB_APPEAL_SECOND
                                    - CB_APPEAL_SECOND_SUCCESS
                                    - CB_APPEAL_SECOND_FAILURE
                                  x-enum-descriptions:
                                    SALE: Debit-style transaction used for ordinary payment, token payment,
                                      subscription, or installment payment.
                                    AUTH: Authorization-style transaction. Funds are authorized first and not
                                      captured immediately.
                                    CAPTURE: Capture of a previously authorized transaction amount.
                                    VOID: Void of a previously authorized transaction.
                                    REFUND: Refund transaction that returns funds from a previous payment
                                      transaction to the customer.
                                    SHARE: Profit-sharing transaction that splits funds from a completed payment to
                                      designated receivers.
                                    RETURN: Profit-sharing return transaction that reverses funds from a previous
                                      profit-sharing split.
                                    CB: Chargeback transaction created when the cardholder disputes a transaction
                                      through the issuer.
                                    CB_CANCEL: Chargeback cancellation transaction that cancels a previously
                                      initiated chargeback.
                                    CB_VOID: Chargeback void transaction that voids a previously initiated
                                      chargeback.
                                    CB_APPEAL: First chargeback appeal.
                                    CB_APPEAL_SUCCESS: First chargeback appeal succeeded and the chargeback was
                                      reversed.
                                    CB_APPEAL_SECOND: Second chargeback appeal after the first appeal was rejected.
                                    CB_APPEAL_SECOND_SUCCESS: Second chargeback appeal succeeded and the chargeback
                                      was reversed.
                                    CB_APPEAL_SECOND_FAILURE: Second chargeback appeal failed and the chargeback
                                      remained.
                                Transaction Status:
                                  type: string
                                  description: Processing status of the original transaction. This is different
                                    from `Settlement Status`, which represents
                                    the payout status of the settlement batch.
                                  enum:
                                    - S
                                    - F
                                  x-enum-descriptions:
                                    S: Successful transaction.
                                    F: Failed transaction. Failed rows may still appear in the file, for example
                                      when fees were charged or the record was
                                      adjusted; their fee and settlement amount
                                      columns are usually `0.000000`.
                                Settlement Currency:
                                  type: string
                                  description: Settlement currency Onerway settles this transaction in,
                                    three-letter [ISO
                                    4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes)
                                    code.
                                Transaction Amount:
                                  type: string
                                  description: Transaction amount of this row in the settlement currency, written
                                    with six decimal places. Payments are
                                    positive, refunds and chargebacks are
                                    negative; the sign rule is the same as
                                    `Settlement Amount`.
                                Processing Fee:
                                  type: string
                                  description: Fixed per-transaction processing fee charged on this entry,
                                    configured in the merchant pricing rules. It
                                    applies to payment, pre-authorization, void,
                                    refund, chargeback, and pre-dispute billing
                                    entries under either pricing model.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Populated when a per-transaction processing fee applies to this entry under
                                        the merchant pricing rules; otherwise
                                        `0` or empty.
                                      zh: 商户计费规则中该笔交易命中按笔处理费时有值，否则为 `0` 或空。
                                Fee:
                                  type: string
                                  description: Transaction fee charged by Onerway on this transaction.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Populated for transactions priced under bundled pricing; stays `0` for
                                        transactions priced under IC++ pricing,
                                        whose fees are split into the
                                        Interchange Fee, Scheme Fee, and Markup
                                        columns. A merchant may have both
                                        pricing models configured.
                                      zh: 按打包模式计费的交易有值；按 IC++ 模式计费的交易为 `0`，其费用拆分见 Interchange Fee、Scheme Fee、Markup
                                        各列。商户可同时配置两种计费模式。
                                Interchange Fee:
                                  type: string
                                  description: Interchange fee charged by the card issuer for this transaction.
                                  x-onerway-value:
                                    empty: true
                                    when: *a1
                                Scheme Fee:
                                  type: string
                                  description: Scheme fee charged by the card network for this transaction.
                                  x-onerway-value:
                                    empty: true
                                    when: *a1
                                Markup:
                                  type: string
                                  description: Markup retained by Onerway on top of interchange and scheme fees
                                    for this transaction.
                                  x-onerway-value:
                                    empty: true
                                    when: *a1
                                Deposit:
                                  type: string
                                  description: Deposit amount withheld for this transaction and returned after
                                    maturity.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Populated only when deposit withholding applies to this transaction;
                                        otherwise `0` or empty.
                                      zh: 仅该笔交易触发保证金扣留时有值，否则为 `0` 或空。
                                Settlement Amount:
                                  type: string
                                  description: Net settlement amount of this row, i.e. the transaction amount
                                    netted with all fees and deposits, written
                                    with six decimal places in the settlement
                                    currency. This is the amount actually
                                    payable for the row; failed rows are usually
                                    `0.000000`.
                                Settlement Status:
                                  type: string
                                  description: Settlement payout status, indicating the fund transfer result. This
                                    is different from `Transaction Status`,
                                    which represents transaction processing
                                    status.
                                  enum:
                                    - S
                                    - OP
                                    - OPS
                                    - OPF
                                    - OU
                                  x-enum-descriptions:
                                    S: Settlement payout is pending. The settlement batch has completed clearing and
                                      settlement and is awaiting payout
                                      processing. This is an intermediate status
                                      before payout.
                                    OP: Settlement payout is processing; settlement funds are being processed for
                                      transfer. This is an intermediate payout
                                      status.
                                    OPS: Settlement payout succeeded and has been completed. This is a final status
                                      indicating funds were transferred to the
                                      merchant designated account.
                                    OPF: Settlement payout failed. This is a final status indicating funds could not
                                      be transferred to the merchant account;
                                      contact Onerway support for assistance.
                                    OU: No payout required. This settlement batch does not require fund
                                      disbursement.
                                Wallet Type Code:
                                  type: string
                                  description: Wallet type code identifying the wallet used for the transaction,
                                    covering PayPal, ApplePay, GooglePay,
                                    Alipay+, and other wallet-based payment
                                    methods.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Populated when the transaction is paid through a wallet; otherwise empty.
                                      zh: 交易通过钱包类支付方式完成时输出，否则为空。
                                Merchant Order Time:
                                  type: string
                                  description: Merchant order time submitted in the original payment request
                                    (`externalOrderTime`).
                                Platform type:
                                  type: string
                                  description: Website type or platform from which the transaction was initiated.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when the transaction records a platform type.
                                      zh: 交易记录平台类型时有值。
                                Platform fee:
                                  type: string
                                  description: Platform fee charged on this transaction under the platform model.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: "`0.000000` when no platform fee is charged."
                                      zh: 未收取平台费时为 `0.000000`。
                                Fraud Administration Fee:
                                  type: string
                                  description: Fraud administration fee charged for risk-control services on this
                                    transaction under bundled pricing.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: "`0.000000` when no fraud administration fee is charged."
                                      zh: 未收取欺诈管理费时为 `0.000000`。
                                card product:
                                  type: string
                                  description: Card product tier returned by the card network.
                                  enum:
                                    - "1"
                                    - "2"
                                    - "3"
                                    - "4"
                                  x-enum-descriptions:
                                    "1": Consumer card product.
                                    "2": Commercial card product.
                                    "3": All card products.
                                    "4": Other card product.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value for card transactions when a card product type is returned.
                                      zh: 卡交易返回卡产品类型时有值。
                                card category:
                                  type: string
                                  description: Card category returned by the card network.
                                  enum:
                                    - D
                                    - P
                                    - C
                                    - H
                                    - R
                                    - N
                                  x-enum-descriptions:
                                    D: Debit
                                    P: Prepaid
                                    C: Credit
                                    H: Charge Card
                                    R: Deferred Debit
                                    N: Unknown
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value for card transactions when a card category is returned.
                                      zh: 卡交易返回卡类别时有值。
                                Decision management Fee:
                                  type: string
                                  description: Risk decision management fee charged for risk-control decisions on
                                    this transaction under bundled pricing.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: "`0.000000` when no decision management fee is charged."
                                      zh: 未收取风险决策管理费时为 `0.000000`。
                                Fee Percentage:
                                  type: string
                                  description: Percentage-based fee rate applied to this transaction, output with
                                    a percent sign. This column only describes
                                    how `Fee` is calculated and never creates an
                                    extra charge.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Populated when the transaction matches a percentage-based fee rule; empty
                                        for fixed-amount pricing and rows
                                        without fee calculation.
                                      zh: 交易匹配到按比例计费规则时有值；固定金额计费及无计费的记录为空。
                                Markup Fixed amount:
                                  type: string
                                  description: Fixed markup amount applied to this transaction. The sign indicates
                                    the fee direction. This column only
                                    describes the fixed component of `Markup`
                                    and never creates an extra charge.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Populated when the transaction matches a fixed markup rule; empty for rows
                                        without fee calculation. The currency is
                                        in `Markup Fixed currency`, which may
                                        differ from the settlement currency.
                                      zh: 交易匹配到固定 markup 规则有值；无计费的记录为空。币种见 `Markup Fixed currency`，可能与结算币种不同。
                                Markup Fixed currency:
                                  type: string
                                  description: Currency of the fixed markup amount.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when fixed markup amount pricing applies.
                                      zh: 适用固定 markup 金额时有值。
                                Markup Percentage:
                                  type: string
                                  description: Percentage-based markup applied to this transaction, output with a
                                    percent sign. This column only describes the
                                    percentage component of `Markup` and never
                                    creates an extra charge.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when percentage-based markup applies.
                                      zh: 适用按比例 markup 时有值。
                                Transaction complete time:
                                  type: string
                                  description: Time when the original transaction reached its final status.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when the transaction is completed and the completion time is
                                        recorded.
                                      zh: 交易已完成并记录完成时间时有值。
                                Original transaction ID:
                                  type: string
                                  description: Referenced original Onerway transaction ID.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when a derived transaction references the original transaction.
                                        `REFUND` and `CB` reference the original
                                        `SALE` transaction; `CB_APPEAL` and
                                        `CB_APPEAL_SECOND` reference the
                                        corresponding `CB` transaction.
                                      zh: 衍生交易引用原交易时有值；`REFUND` / `CB` 引用原 `SALE` 交易号，`CB_APPEAL` / `CB_APPEAL_SECOND`
                                        引用对应 `CB` 交易号。
                                Original transaction merchant order ID:
                                  type: string
                                  description: Original `SALE` merchant order ID referenced by a `REFUND`
                                    transaction.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Returned when the settlement row references an original `SALE` merchant
                                        order; older exported files may omit
                                        this column or use a different column
                                        name.
                                      zh: 当结算行引用原 `SALE` 商户订单时返回；较旧导出文件可能省略该列或使用不同列名。
                                Remark:
                                  type: string
                                  description: Supplementary information recorded on the settlement row.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when the settlement row carries a remark.
                                      zh: 结算明细存在备注时有值。
                                Other charges:
                                  type: string
                                  description: Other charges deducted from this row, mainly for agency settlement
                                    scenarios.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Has a value when other charges apply; this column is included in the
                                        settlement CSV schema.
                                      zh: 存在其他费用时有值；该列属于结算 CSV schema。
                                Counterparty Name:
                                  type: string
                                  description: Counterparty name associated with the transaction.
                                  x-onerway-value:
                                    empty: true
                                    when:
                                      en: Output when the transaction records a counterparty name.
                                      zh: 交易记录对手方名称时输出。
                                Transaction Time (GMT+8):
                                  type: string
                                  description: Transaction time in the GMT+8 (UTC+8) timezone.
                        description: UTF-8 encoded CSV settlement file. The file contains a batch
                          summary section followed by settlement detail rows.
                          Every amount column is written with six decimal
                          places, zero-decimal currencies included, and fees are
                          written as negative amounts; `0.000000` means the item
                          does not apply, and an empty cell means the column has
                          no value for that row. Fee columns depend on the
                          pricing model applied to each transaction, and a
                          merchant may have both pricing models configured. The
                          settlement amount is calculated from the amount and
                          fee columns only; the remaining columns are
                          reconciliation references only.
                        x-onerway-value:
                          empty: true
                          when:
                            en: When the requested date or currency has no settlement data, the response may
                              be an empty or no-data file; recheck the request
                              date, currency, and download permission.
                            zh: 请求日期或币种没有结算数据时，响应可能为空文件或无数据文件；此时需回查请求日期、币种与下载权限。
                    description: Successful responses return an `application/octet-stream` file
                      stream, not a JSON body. Save the UTF-8 encoded content as
                      a `.csv` file.
              examples:
                settlement-csv:
                  summary: Settlement file content (illustrative)
                  value:
                    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

                      2026-06-26,USD,220.000000,-20.000000,-1.500000,-0.200000,\
                      -1.000000,-1.100000,-0.200000,-1.300000,0.000000,-30.0000\
                      00,181.900000,0.000000,0.000000,0.000000,0.000000

                      Settlement 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)

                      2026-06-26,2070319499920410001,2065303220829687001,178124\
                      1631001,LPMS,VISA,2065269384285683001,example.com,USD,100\
                      .000000,SALE,S,USD,100.000000,-1.000000,-1.000000,0.00000\
                      0,0.000000,-0.500000,-10.000000,87.500000,S,,2026-06-12
                      13:20:32,,0.000000,0.000000,,,0.000000,1.000000%,-0.50000\
                      0,USD,0.000000%,2026-06-12T13:21:39,,,,0.000000,,2026-06-\
                      12T13:20:33

                      2026-06-26,2070319499920410001,2065303220829687002,178124\
                      1631003,CARD,VISA,2065269384285683001,example.com,USD,200\
                      .000000,SALE,S,USD,200.000000,-0.500000,0.000000,-1.10000\
                      0,-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

                      2026-06-26,2070319499920410001,2065306663241781002,178124\
                      1631002,LPMS,MB_WAY,2065269384285683001,example.com,USD,2\
                      0.000000,REFUND,S,USD,-20.000000,-0.200000,0.000000,0.000\
                      000,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-0\
                      6-12T13:34:14

                      2026-06-26,2070319499920410001,2065306663241781004,178124\
                      1631004,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

                      2026-06-26,2070319499920410001,2065306663241781003,178124\
                      1631005,LPMS,,2065269384285683001,example.com,USD,20.0000\
                      00,SHARE,S,USD,-20.000000,0.000000,0.000000,0.000000,0.00\
                      0000,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-0\
                      6-12T13:30:01"
      security:
        - apiKeyAuth:
            []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: ApiKey
```
