# Query card operation records

> Query card operation records with pagination and optional filters.

```yaml
openapi: 3.1.0
info:
  title: Query card operation records
  version: 1.0.0
  description: Query card operation records with pagination and optional filters.
paths:
  /api/v1/merchant/card/getOperateRecordList:
    post:
      summary: Query card operation records
      description: Query card operation records with pagination and optional filters.
      parameters:
        - name: ApiKey
          in: header
          required: true
          description: Issuing API key request header assigned by Onerway.
          schema:
            type: string
            description: Issuing API key request header assigned by Onerway.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                cardId:
                  type: integer
                  description: Card ID filter. If omitted, records for all merchant cards can be
                    queried.
                clientRequestId:
                  type: string
                  description: Idempotent request ID filter.
                type:
                  type: string
                  description: Operation type filter.
                  enum:
                    - CREATE
                    - FREEZE
                    - UNFREEZE
                    - DEPOSIT
                    - TERMINATE
                    - RETURN
                  x-enum-descriptions:
                    CREATE: Card creation operation.
                    FREEZE: Card freeze operation.
                    UNFREEZE: Card unfreeze operation.
                    DEPOSIT: Card deposit operation.
                    TERMINATE: Card termination operation.
                    RETURN: Card balance return operation.
                startTime:
                  type: integer
                  description: Query start time, as a UTC timestamp in seconds.
                endTime:
                  type: integer
                  description: Query end time, as a UTC timestamp in seconds.
                pageNum:
                  type: integer
                  description: Page number.
                  x-onerway-constraints:
                    - kind: range
                      min: 1
                pageSize:
                  type: integer
                  description: Page size.
                  x-onerway-constraints:
                    - kind: range
                      min: 1
                      max: 100
              required:
                - pageNum
                - pageSize
            examples:
              default:
                summary: Query operation records
                value:
                  cardId: 100001
                  pageNum: 1
                  pageSize: 10
                  type: DEPOSIT
      responses:
        "200":
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  respCode:
                    type: string
                    description: Business response code. `20000` means success.
                  respMsg:
                    type: string
                    description: Response message.
                  data:
                    type:
                      - object
                      - "null"
                    properties:
                      totalRecords:
                        type: integer
                        description: Total record count.
                      pageSize:
                        type: integer
                        description: Page size.
                      current:
                        type: integer
                        description: Current page number.
                      pageNum:
                        type: integer
                        description: Current page number.
                      totalPages:
                        type: integer
                        description: Total page count.
                      records:
                        type: array
                        description: Operation records on the current page.
                        items:
                          type: object
                          properties:
                            operateRecordId:
                              type: integer
                              description: Operation record ID.
                            cardId:
                              type: integer
                              description: Card ID.
                            clientRequestId:
                              type: string
                              description: Idempotent request ID.
                            type:
                              type: string
                              description: Operation type.
                              enum:
                                - CREATE
                                - FREEZE
                                - UNFREEZE
                                - DEPOSIT
                                - TERMINATE
                                - RETURN
                                - SYSTEM_FREEZE
                                - SYSTEM_UNFREEZE
                              x-enum-descriptions:
                                CREATE: Card creation operation.
                                FREEZE: Card freeze operation.
                                UNFREEZE: Card unfreeze operation.
                                DEPOSIT: Card deposit operation.
                                TERMINATE: Card termination operation.
                                RETURN: Card balance return operation.
                                SYSTEM_FREEZE: System card freeze operation.
                                SYSTEM_UNFREEZE: System card unfreeze operation.
                            status:
                              type: string
                              description: Operation status.
                              enum:
                                - P
                                - S
                                - F
                                - I
                              x-enum-descriptions:
                                P: Processing.
                                S: Succeeded.
                                F: Failed.
                                I: Additional information is required.
                            remark:
                              type:
                                - string
                                - "null"
                              description: Operation remark.
                              x-onerway-value:
                                nullable: true
                                when:
                                  en: No remark is available.
                                  zh: 无备注时返回 `null`。
                            amount:
                              type: number
                              description: Operation amount.
                            currency:
                              type: string
                              description: Operation currency.
                            operateTime:
                              type: integer
                              description: Operation time, as a UTC timestamp in milliseconds.
                            feeList:
                              type: array
                              description: Fee detail list.
                              items:
                                type: object
                                properties:
                                  feeType:
                                    type: string
                                    description: Fee type.
                                  feeAmount:
                                    type: number
                                    description: Fee amount.
                                  feeCurrency:
                                    type: string
                                    description: Fee currency.
                              x-onerway-value:
                                empty: true
                                when:
                                  en: Returned as an empty array when no fee applies.
                                  zh: 无费用时返回空数组。
                        x-onerway-value:
                          empty: true
                          when:
                            en: Returned as an empty array when no record matches.
                            zh: 没有匹配记录时返回空数组。
                    description: Paginated operation records.
                    x-onerway-value:
                      nullable: true
                      when:
                        en: Returned as `null` when the query fails.
                        zh: 查询失败时返回 `null`。
              examples:
                success:
                  summary: Success
                  value:
                    respCode: "20000"
                    respMsg: success
                    data:
                      totalRecords: 1
                      pageSize: 10
                      current: 1
                      pageNum: 1
                      totalPages: 1
                      records:
                        - operateRecordId: 200001
                          cardId: 100001
                          clientRequestId: REQ_20260101_001
                          type: DEPOSIT
                          status: S
                          remark: null
                          amount: 100
                          currency: USD
                          operateTime: 1735689600000
                          feeList:
                            - feeType: DEPOSIT
                              feeAmount: 1
                              feeCurrency: USD
```
