# List Account Payments

Source: https://recoupable.dev/docs/api-reference/accounts/payments-get

List the invoices paid or owed by an account, newest first: subscription renewals, credit purchases, and invoiced enterprise plans alike. Non-draft rows carry the hosted invoice URL for the receipt; `url` is null for drafts. Returns an empty list (not 404) when the account has no Stripe customer or no invoices yet. `id` may be the authenticated account or an organization the caller belongs to.

## GET /api/accounts/{id}/payments

Full OpenAPI specification: https://recoupable.dev/docs/spec/accounts.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://recoupable.dev/docs/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Recoup API - Accounts",
    "description": "API documentation for the Recoup platform - an AI agent platform for the music industry",
    "license": {
      "name": "MIT"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.recoupable.dev"
    }
  ],
  "paths": {
    "/api/accounts/{id}/payments": {
      "get": {
        "description": "List the invoices paid or owed by an account, newest first: subscription renewals, credit purchases, and invoiced enterprise plans alike. Non-draft rows carry the hosted invoice URL for the receipt; `url` is null for drafts. Returns an empty list (not 404) when the account has no Stripe customer or no invoices yet. `id` may be the authenticated account or an organization the caller belongs to.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier (UUID) of the account. Must be the authenticated account or another accessible via organization membership.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum rows to return.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "startingAfter",
            "in": "query",
            "description": "Cursor for the next page: the `id` of the last payment from the previous response.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "in_1U5xj400JObOnOb5BE0CmxCt"
          }
        ],
        "security": [
          {
            "apiKeyAuth": []
          },
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Payments retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPaymentsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request - invalid `id`, `limit`, or `startingAfter`",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPaymentsErrorResponse"
                },
                "example": {
                  "error": "limit must be between 1 and 100"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - invalid or missing authentication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPaymentsErrorResponse"
                },
                "example": {
                  "error": "Unauthorized"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - the account is not the caller's and not an organization they belong to (an unknown id also returns 403, never 404)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPaymentsErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountPaymentsResponse": {
        "type": "object",
        "required": [
          "account_id",
          "payments",
          "hasMore"
        ],
        "properties": {
          "account_id": {
            "type": "string",
            "format": "uuid",
            "description": "The account these payments belong to.",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountPayment"
            },
            "description": "Invoices, newest first. Empty when the account has no Stripe customer or no invoices."
          },
          "hasMore": {
            "type": "boolean",
            "description": "True when another page exists; pass the last `id` as `startingAfter`.",
            "example": false
          }
        }
      },
      "AccountPaymentsErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Human-readable error message.",
            "example": "Account not found"
          }
        }
      },
      "AccountPayment": {
        "type": "object",
        "required": [
          "id",
          "createdAt",
          "description",
          "amountCents",
          "currency",
          "status",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Stripe invoice id; use as `startingAfter` to page.",
            "example": "in_1U5xj400JObOnOb5BE0CmxCt"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the invoice was created.",
            "example": "2026-09-04T14:33:00Z"
          },
          "description": {
            "type": "string",
            "description": "What was billed: the first line item's description, or the plan name.",
            "example": "Pro, monthly"
          },
          "amountCents": {
            "type": "integer",
            "description": "Amount due in the smallest currency unit.",
            "example": 9900
          },
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code, lowercase.",
            "example": "usd"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "open",
              "paid",
              "uncollectible",
              "void"
            ],
            "description": "Stripe invoice status.",
            "example": "paid"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "nullable": true,
            "description": "Hosted invoice page (receipt). Null for draft invoices.",
            "example": "https://invoice.stripe.com/i/acct_123/test_456"
          }
        }
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your Recoup API key. [Learn more](/quickstart#api-keys)."
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```
