---
title: "Get payment history"
method: GET
path: "/test_framework/billing/payment-history/"
tags: ["test_framework"]
---

# Get payment history

`GET /test_framework/billing/payment-history/`

## Request

- Base URL: `https://api.cekura.ai`
- URL: `https://api.cekura.ai/test_framework/billing/payment-history/`
- Auth: one of:
  - API key in header `X-CEKURA-API-KEY`
  - HTTP bearer
  - HTTP bearer

Returns a paginated list of all payments (auto-pay, one-time, subscription) made by the organization.

## Query parameters

- `organization_id` integer, required

## Response `200`

- PaymentHistory[]
  - `id` integer
  - `amount` string
  - `currency` string, nullable: Currency code (e.g. USD, INR)
  - `payment_type` 'auto_pay' | 'one_time_payment' | 'self_serve_credits' | 'self_serve_member_seat' | 'subscription' | 'subscription_member_seat' | 'null', nullable: Type of payment (auto_pay or one_time_payment) * `auto_pay` - Auto Pay * `one_time_payment` - One-Time Payment * `self_serve_credits` - Self-Serve Credits * `self_serve_member_seat` - Self-Serve Member Seat * `subscription` - Subscription * `subscription_member_seat` - Subscription Member Seat
  - `description` string: Payment description or notes
  - `stripe_payment_intent_id` string, nullable: Stripe PaymentIntent ID for tracking. CAUTION: subscription renewal rows (written by StripeWebhookView.handle_invoice_paid) store the Stripe *invoice* id here instead of a PI id. The payment_intent.payment_failed ops alert (send_granted_before_payment_failed_alert) matches this field against PI ids and relies on renewals NOT matching — if renewals ever store real PI ids, every dunning retry on a renewal would page ops.
  - `created_at` string, date-time

## Other responses

- `400`: organization_id is required
- `404`: Organization not found

## Changes

- **2026-11-03** `a6fb6a739212`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cekura/apis/cekura-api/changes/test_framework/billing/payment-history/get.md)

---

[API](https://skmtc.dev/cekura/apis/cekura-api.md) - [All operations](https://skmtc.dev/cekura/apis/cekura-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cekura/apis/cekura-api/revisions/a6fb6a739212?raw)
