---
title: "Get machine-readable top-up constraints"
method: GET
path: "/credits/topups/config"
tags: ["Top-ups"]
---

# Get machine-readable top-up constraints

`GET /credits/topups/config`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/credits/topups/config`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns the workspace-specific top-up amount constraints and credit denomination. Read it before creating a checkout so the requested amount is valid.

## Response `200`

Tenant-specific amount constraints and denomination

- TopupConstraintsEnvelope
  - `success` unknown, required
  - `constraints` TopupConstraints, required
    - `currency` 'USD', required
    - `minUsd` string, required
    - `maxUsd` 'null', nullable, required: No fixed platform maximum; commercial and processor controls remain risk-based.
    - `incrementUsd` '0.01', required
    - `maxAmountDecimalPlaces` unknown, required
    - `amountEncoding` 'decimal_string', required
    - `creditsPerDollar` string, required
    - `purchasingEnabled` boolean, required: False when this tenant cannot currently create checkout sessions or buy credits.
    - `disabledReason` 'funding_unavailable' | 'null', nullable, required
    - `bonusTiers` object[]: Volume-bonus cliff tiers over creditsUsd — the highest reached tier applies to the whole purchase. Management surface only; omitted from the end-user /me config because end-user top-ups never earn a bonus.
      - `minUsd` string, required
      - `bonusBps` integer, required

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
