# query deposit record

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/deposit/query:
    post:
      summary: query deposit record
      deprecated: false
      description: >-
        the amount in deposit record: amount / 1e12 => \$, ex. 12000000000000
        (12 zero) = \$12.00
      tags:
        - User/deposit
        - deposit
      parameters:
        - name: Authorization
          in: header
          description: ''
          example: Bearer {{AUTH_TOKEN}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                filter:
                  description: query condition
                  allOf:
                    - type: object
                      properties:
                        credit_type:
                          description: always "user_dollar"
                          type: string
                        end_date:
                          description: 'end date, format: 2023-02-10'
                          type: string
                        start_date:
                          description: 'start date, format: 2023-01-10'
                          type: string
                      x-apifox-refs: {}
                      x-apifox-orders:
                        - credit_type
                        - start_date
                        - end_date
                      required:
                        - credit_type
                        - end_date
                        - start_date
                limit:
                  description: query quantity for pagination
                  type: integer
                offset:
                  description: query offset for pagination
                  type: integer
              x-apifox-refs: {}
              x-apifox-orders:
                - filter
                - limit
                - offset
              required:
                - filter
                - limit
                - offset
            example:
              filter:
                credit_type: user_dollar
                end_date: '2023-06-30'
                start_date: '2023-06-01'
              limit: 10
              offset: 0
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        amount:
                          type: integer
                          description: >-
                            amount / 1e12 => $, ex. 12000000000000 (12 zero) =
                            $12.00
                        created_unixtime:
                          type: integer
                        credit_type:
                          type: string
                        id:
                          type: integer
                        log:
                          type: string
                        operator_id:
                          type: integer
                        payment_id:
                          type: integer
                        payment_type:
                          description: for third-part payment
                          type: string
                        tag:
                          type: string
                        user_id:
                          type: integer
                      x-apifox-refs: {}
                      x-apifox-orders:
                        - amount
                        - created_unixtime
                        - credit_type
                        - id
                        - log
                        - operator_id
                        - payment_id
                        - payment_type
                        - tag
                        - user_id
                      description: deposit record
                    description: query result
                  meta_message:
                    type: string
                    description: success or other error msg
                  meta_status:
                    type: integer
                    description: 1 for success, negative for error
                  total_count:
                    type: integer
                    description: total record quantity
                x-apifox-refs: {}
                x-apifox-orders:
                  - data
                  - meta_message
                  - meta_status
                  - total_count
          headers: {}
          x-apifox-name: result
      security: []
      x-apifox-folder: User/deposit
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2880121/apis/api-88999350-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.ipcola.com
    description: ipcola
security: []

```
