# List payments (/docs/api-reference/account/listPayments)

> The payments you made, newest first: balance top-ups and subscription payments, what each was for, the amount and currency, its status, the subscription period, and why a failed one was refused.

**GET** `/account/payments`

The payments you made, newest first: balance top-ups and subscription
payments, what each was for, the amount and currency, its status, the
subscription period, and why a failed one was refused.

Use it to answer "did my payment go through?" or "why was my card
declined?". It lists the payments the API key's user made, as the
billing page shows them. Card details are never included.

The API key's user needs Billing access in your organization.

```yaml
operationId: listPayments
parameters:
  - name: pageno
    in: query
    schema:
      type: integer
      default: 1
      minimum: 1
      maximum: 10000
    description: Page number.
  - name: pagesize
    in: query
    schema:
      type: integer
      default: 50
      minimum: 1
      maximum: 150
    description: Payments per page.
responses:
  '200':
    description: One page of payments.
    content:
      application/json:
        schema:
          type: object
          properties:
            payments:
              type: array
              items:
                type: object
                properties:
                  date:
                    type: string
                    format: date-time
                  payment_type:
                    type: string
                    enum:
                      - one_time
                      - subscription
                  item:
                    type:
                      - string
                      - 'null'
                    description: The plan or top-up the payment was for.
                  status:
                    type: string
                    enum:
                      - Pending
                      - Success
                      - Failed
                  subscription_status:
                    type:
                      - string
                      - 'null'
                    description: For a subscription, its status, such as `active`, `past_due` or `canceled`.
                  amount_paid:
                    type: number
                  currency:
                    type:
                      - string
                      - 'null'
                    example: USD
                  period_start:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  period_end:
                    type:
                      - string
                      - 'null'
                    format: date-time
                  failure_reason:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Why the payment provider refused the payment, such as `insufficient_funds` or
                      `Your card has insufficient funds.` `null` when it did not fail, no reason was
                      given, or it was a one-time payment through Razorpay (which reports no reason
                      we can match to the payment).
            total_records:
              type: integer
        example:
          payments:
            - date: '2026-11-20T09:12:00Z'
              payment_type: one_time
              item: Balance top-up
              status: Failed
              subscription_status: null
              amount_paid: 0
              currency: USD
              period_start: null
              period_end: null
              failure_reason: insufficient_funds
          total_records: 1
  '400':
    description: A page out of range.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: invalid_request
          error_description: pagesize must be between 1 and 150
  '401':
    description: Missing or invalid API key.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: unauthorized
          error_description: Missing or invalid API key
  '403':
    description: |
      The API key's user does not have Billing access. If Billing is
      enabled for your organization, an administrator can grant it; if it
      is not, contact support.
    content:
      application/json:
        schema:
          type: object
          properties:
            error:
              type: string
              description: Machine-readable error code.
            error_description:
              type: string
              description: Human-readable explanation.
            code:
              type: string
              description: |
                Stable, specific reason. Present on the newer endpoints (Voice
                cloning, WhatsApp); older endpoints return only `error`.
            request_id:
              type: string
              description: |
                Correlates this response with the server log. Present alongside
                `code`. Also sent as the `X-Request-Id` header.
        example:
          error: forbidden
          error_description: >-
            You do not have access to Billing. If Billing is enabled for your organization, an
            administrator can grant it.
```

**curl**

```bash
curl -X GET "https://omnidim.io/api/v1/account/payments" \
  -H "Authorization: Bearer $OMNIDIM_API_KEY"
```