---
title: "Balance, automatic recharge, prices and top-ups"
method: GET
path: "/billing"
tags: ["Dashboard"]
---

# Balance, automatic recharge, prices and top-ups

`GET /billing`

## Request

- Base URL: `https://api.eu.doconda.com/v1`
- URL: `https://api.eu.doconda.com/v1/billing`
- Auth: HTTP bearer

## Response `200`

Billing.

- object
  - `configured` boolean, required: false while Stripe isn't set up on this deployment (no top-ups).
  - `balance_eur` number, required: Prepaid balance. Paid documents are taken from here.
  - `prices` object[], required
    - `key` 'extract' | 'review' | 'create' | 'build' | 'edit', required: build: create from your own Markdown (`content`), with no writing.
    - `price_eur` number, required: The `standard` level price.
    - `by_quality` object, nullable, required: create, build and edit: the price of each quality level.
      - `fast` number, required
      - `standard` number, required
      - `best` number, required
  - `topup_amounts_eur` number[], required
  - `payments` object[], required: Money added to the balance, newest first.
    - `id` string, required
    - `amount_eur` number, required: Added to the balance.
    - `paid_eur` number, nullable, required: What was charged for it, VAT included (null on older top-ups).
    - `promo` string, nullable, required: The promotion code or discount used, if any.
    - `kind` 'welcome' | 'topup' | 'auto_recharge', required: welcome: the sign-up credit.
    - `created_at` string, date-time, required
  - `payment_method` object, nullable, required: Card saved on the last top-up.
    - `brand` string, required
    - `last4` string, required
  - `auto_recharge` object, required
    - `enabled` boolean, required
    - `threshold_eur` integer, required: When the balance drops below this…
    - `amount_eur` integer, required: …charge the saved card this much.
    - `pending` boolean, required: A recharge is being charged right now.
    - `last_error` string, nullable, required: Why the last automatic recharge failed (it is then turned off).
  - `monthly_discount` object, nullable, required: A discount this organization gets on its first top-up of each month (set by Doconda).
    - `label` string, required
    - `available` boolean, required: Not used yet this month: the next top-up gets it.
  - `has_billing_account` boolean, required

## Other responses

- `401`: unauthorized (missing, unknown or revoked key; expired session).
- `403`: session_required: dashboard only.

---

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