# List all charges

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/charges/list:
    get:
      summary: List all charges
      deprecated: false
      description: ''
      tags:
        - API Reference/Charges
      parameters:
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                customer:
                  type: string
                  description: >-
                    Only return charges for the customer specified by this
                    customer ID.
                created:
                  type: object
                  properties:
                    gt:
                      type: string
                      description: >-
                        Return results where the created field is greater than
                        this value.
                    gte:
                      type: string
                      description: >-
                        Return results where the created field is greater than
                        or equal to this value.
                    lt:
                      type: string
                      description: >-
                        Return results where the created field is less than this
                        value.
                    lte:
                      type: string
                      description: >-
                        Return results where the created field is less than or
                        equal to this value.
                  description: >-
                    A filter on the list based on the object created field. The
                    value can be a string with an integer Unix timestamp, or it
                    can be a dictionary with the following options:
                  x-apifox-orders:
                    - gt
                    - gte
                    - lt
                    - lte
                  x-apifox-ignore-properties: []
                ending_before:
                  type: string
                  description: >-
                    A cursor for use in pagination. ending_before is an object
                    ID that defines your place in the list. For instance, if you
                    make a list request and receive 100 objects, starting with
                    obj_bar, your subsequent call can include
                    ending_before=obj_bar in order to fetch the previous page of
                    the list.
                limit:
                  type: integer
                  description: >-
                    A limit on the number of objects to be returned. Limit can
                    range between 1 and 100, and the default is 10.
                payment_intent:
                  type: string
                  description: >-
                    Only return charges that were created by the PaymentIntent
                    specified by this PaymentIntent ID.
                starting_after:
                  type: string
                  description: >-
                    A cursor for use in pagination. starting_after is an object
                    ID that defines your place in the list. For instance, if you
                    make a list request and receive 100 objects, ending with
                    obj_foo, your subsequent call can include
                    starting_after=obj_foo in order to fetch the next page of
                    the list.
              x-apifox-orders:
                - customer
                - created
                - ending_before
                - limit
                - payment_intent
                - starting_after
              x-apifox-ignore-properties: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/List'
          headers: {}
          x-apifox-name: OK
      security:
        - basic: []
      x-apifox-folder: API Reference/Charges
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/1296482/apis/api-55483422-run
components:
  schemas:
    List:
      type: object
      properties:
        object:
          type: string
          default: '"list"'
        url:
          type: string
        has_more:
          type: boolean
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              object:
                type: string
              api_version:
                type: 'null'
              application:
                type: 'null'
              created:
                type: integer
              description:
                type: string
              enabled_events:
                type: array
                items:
                  type: string
              livemode:
                type: boolean
              metadata:
                type: object
                properties: {}
                x-apifox-orders: []
                x-apifox-ignore-properties: []
              status:
                type: string
              url:
                type: string
            x-apifox-orders:
              - id
              - object
              - api_version
              - application
              - created
              - description
              - enabled_events
              - livemode
              - metadata
              - status
              - url
            x-apifox-ignore-properties: []
      x-apifox-orders:
        - object
        - url
        - has_more
        - data
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    basic:
      type: http
      scheme: basic
servers:
  - url: https://apitest.wooshpay.com
    description: 官网测试
security:
  - basic: []

```
