---
title: "List credit purchases"
method: GET
path: "/api/v1/credits/purchases"
tags: ["Credits"]
---

# List credit purchases

`GET /api/v1/credits/purchases`

## Request

- Base URL: `https://app.argorant.com`
- URL: `https://app.argorant.com/api/v1/credits/purchases`
- Auth: HTTP bearer

Credit purchases made through the API and AI agents, newest first. A payment link shows paid once the user paid it, and expired when it ran out unpaid.

| Cost | What it does | Key scopes |
| --- | --- | --- |
| Free | Reads only | `argorant:read_counts` |

## Query parameters

- `limit` integer
- `cursor` string
- `offset` integer

## Headers

- `X-Request-Id` string

## Response `200`

OK

- object
  - `total` integer, nullable, required: How many rows exist in total for this query.
  - `limit` integer, required: Rows per page in this answer.
  - `offset` integer, required: Rows skipped before this page.
  - `next_cursor` string, nullable, required: Pass as cursor to get the next page. null on the last page.
  - `has_more` boolean, required: true when another page exists.
  - `total_is_estimate` boolean: Present and true when total is a lower bound, for example when a list reached its upper size.
  - `purchases` CreditPurchase[], required
    - `purchase_id` string, uuid: Purchase id, the same as the quote id.
    - `status` 'paid' | 'awaiting_payment' | 'processing' | 'not_charged' | 'expired': paid: credits added. awaiting_payment: send checkout_url to the person who pays. processing: wait a minute. not_charged: the card was not charged. expired: the link ran out unpaid.
    - `paid_with` string, nullable: saved_card or payment_link.
    - `card` string, nullable: The saved card that was charged, for example card ending 4242.
    - `credits` integer: Credits bought.
    - `credits_added` integer: Credits added to the account.
    - `amount_cents` integer: Amount in cents.
    - `currency` string: Currency.
    - `checkout_url` string, uri, nullable: Payment page for the person who pays.
    - `message` string: What happened, in one or two sentences.
    - `saved_card` object: Present when the saved card was not used, with used (false), code and reason.
    - `replayed` boolean: Present and true when this is the answer of an earlier call with the same quote.

## Other responses

- `401`: 401 Unauthorized. `unauthorized` when the API key is missing, wrong or revoked.
- `403`: 403 Forbidden. `scope_missing` when the key lacks argorant:read_counts.
- `422`: 422 Validation error. `validation_error` when a field has the wrong type or is missing.
- `429`: 429 Too many requests. `rate_limited` when too many requests this minute.

---

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