---
title: "Get credit history for the current user"
method: GET
path: "/v1/billing/credit-history"
tags: ["Billing"]
---

# Get credit history for the current user

`GET /v1/billing/credit-history`

## Query parameters

- `start_date` string, date, required
- `end_date` string, date, required
- `page` integer
- `items_per_page` integer

## Response `200`

Successful response

- object
  - `data` CreditHistoryResponse[]
    - `id` string, uuid — The unique identifier of the credit record
    - `created_at` string, date-time — The timestamp when the credit record was created
    - `credits` number, float — The amount of credits added or deducted
    - `transaction_id` string — The unique identifier of the transaction
    - `transaction_type` 'NEW_USER_CREDIT' | 'FINE_TUNING_JOB' | 'STRIPE_CHECKOUT' — The type of transaction
  - `pagination` Pagination
    - `total_pages` integer
    - `current_page` integer
    - `items_per_page` integer

## Other responses

- `401` — Unauthorized

## Changes

- **2024-10-01** `c0b16488f7cd` — 2 info
  - added the optional property `data/items/transaction_id` to the response with the `200` status
  - added the optional property `data/items/transaction_type` to the response with the `200` status

[Change history](https://skmtc.dev/luminolabs/apis/billing-api/changes/v1/billing/credit-history/get.md)

---

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