---
title: "Returns the caller's wallet transactions grouped by verification job, newest group first by default."
method: GET
path: "/api/wallet/transactions/grouped"
tags: ["wallet"]
---

# Returns the caller's wallet transactions grouped by verification job, newest group first by default.

`GET /api/wallet/transactions/grouped`

## Request

- Base URL: `https://api.pricklymails.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pricklymails.com/api/wallet/transactions/grouped`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Query parameters

- `limit` integer
- `offset` integer
- `sort` string
- `order` string

## Response `200`

Paginated, job-grouped wallet transaction list, newest group first.

- WalletTransactionGroupsResponse: JSON response body for `GET /api/wallet/transactions/grouped`.
  - `groups` WalletTransactionGroupItem[], required: Transaction groups of the page.
    - `entries` WalletTransactionItem[], required: Every transaction in the group, oldest first (for example a reservation followed by its commit or cancel).
      - `amount` integer, required: Token amount moved.
      - `context` string, required: Short label describing why the transaction happened.
      - `job_uuid` string, uuid, nullable: Public UUID of the linked verification job, when the transaction is tied to one.
      - `occurred_at` string, date-time, required: RFC 3339 timestamp of the transaction.
      - `transaction_type` string, required: Transaction type: `"Credit"`, `"Debit"`, `"Reservation"`, `"Commit"` or `"Cancel"`.
    - `job_uuid` string, uuid, nullable: Public UUID of the linked verification job. `null` for a credit or top-up, which is its own single-entry group.
    - `last_status` string, required: The transaction type of the group's most recent entry (`"Reservation"`, `"Commit"`, `"Cancel"`, `"Credit"` or `"Debit"`), which is the job's current billing state.
    - `net_amount` integer, required: The signed net effect of the whole group on the wallet: positive for a net inflow (a credit, or a canceled/refunded reservation), negative for a net outflow (a debit, a pending reservation, or a committed/billed job).
    - `occurred_at` string, date-time, required: Timestamp of the group's most recent entry.
  - `limit` integer, required: Page size applied after clamping, counted in groups.
  - `offset` integer, required: Offset applied, counted in groups.

## Other responses

- `400`: Unknown `sort` or `order` value.
- `401`: Missing or invalid API key, session token, or agent token.
- `403`: The key or agent token lacks the `billing:read` scope.

---

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