---
title: "An account's purchases and refunds"
method: GET
path: "/v1/admin/billing/refunds"
tags: ["Admin"]
---

# An account's purchases and refunds

`GET /v1/admin/billing/refunds`

## Request

- Base URL: `https://api.lizzflix.xyz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.lizzflix.xyz/v1/admin/billing/refunds`
- Auth: none declared

## Query parameters

- `email` string, required

## Response `200`

Purchases and refunds

- object
  - `user` object, required
    - `id` string, required
    - `email` string, required
  - `purchases` AdminPurchase[], required
    - `purchaseId` string, required
    - `kind` 'topup' | 'plan', required
    - `itemName` string, required
    - `sourceRef` string, nullable, required
    - `purchasedAt` string, required
    - `totalCredits` number, required
    - `unusedCredits` number, required
    - `listPriceCents` number, required
  - `refunds` BillingRefund[], required
    - `id` string, required
    - `kind` 'withdrawal' | 'admin', required
    - `purchaseKind` 'topup' | 'plan', required
    - `purchaseId` string, nullable, required
    - `status` 'pending' | 'succeeded' | 'failed', required
    - `refundCents` number, required
    - `amountPaidCents` number, nullable, required
    - `currency` string, nullable, required
    - `providedShare` number, nullable, required
    - `clawedBackCredits` number, required
    - `reason` string, nullable, required
    - `createdAt` string, required
    - `completedAt` string, nullable, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: No such account

---

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