---
title: "Grand-livre crédits d'un compte (admin)"
method: GET
path: "/api/admin/credits/ledger"
tags: ["Admin", "Credits"]
---

# Grand-livre crédits d'un compte (admin)

`GET /api/admin/credits/ledger`

## Request

- Base URL: `https://app.serpmantics.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.serpmantics.com/api/admin/credits/ledger`
- Auth: HTTP bearer

Timeline complète et immuable des mouvements de crédits d'un utilisateur (octrois, consommations, refunds, resets, ajustements admin), avec libellés FR en clair, delta signé, solde après, source, auteur et référence. Inclut le solde reconstruit à une date arbitraire (paramètre `at`) et un contrôle de cohérence (solde == dernier balanceAfter == somme des deltas). Réservé aux administrateurs. Lecture seule.

## Query parameters

- `userId` string, required
- `at` string
- `limit` integer

## Response `200`

Timeline + en-tête + cohérence.

## Other responses

- `400`: userId manquant.
- `403`: Accès réservé aux administrateurs.

---

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