---
title: "POST /api/v1/credits/quick-topup"
method: POST
path: "/api/v1/credits/quick-topup"
tags: ["Subscribe"]
---

# POST /api/v1/credits/quick-topup

`POST /api/v1/credits/quick-topup`

## Request

- Base URL: `https://xquik.com`
- URL: `https://xquik.com/api/v1/credits/quick-topup`
- Auth: API key in cookie `__Host-xquik_session`

Charges a saved payment method only after explicit confirmation. Send 1 Idempotency-Key per purchase. Reuse it within 24 hours to retry a lost answer, & the retry replays the first charge. A second top-up for the same account answers 409 while the first runs.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `dollars` number, required: Dollar amount for the top-up

## Response `200`

Quick top-up result

- union
  - object
    - `outcome` 'charged', required
    - `balance` string, required: Updated credit balance as a bigint string.
    - `credits` string, required: Credits added by this top-up as a bigint string.
  - object
    - `outcome` 'requires_action', required
    - `clientSecret` string, required: Payment client secret for completing authentication.
  - object
    - `outcome` 'no_payment_method', required
  - object
    - `outcome` 'declined', required

## Other responses

- `400`: Invalid input. A value past its maxLength gets this answer, & the message names the field & its limit.
- `401`: Unauthenticated
- `403`: An API key or OAuth token called a route that needs a dashboard session. Sign in at dashboard.xquik.com/account instead.
- `409`: Another top-up for this account is still running. Check the balance before you try again.
- `429`: Too many requests right now. Each user gets 500 reads a second. Each minute allows 120 writes & 60 deletes. `x_api_rate_limited` means X limits this read for now. Neither answer costs anything. Wait for the seconds in `Retry-After`, then retry.
- `500`: Unexpected error.
- `default`: Unexpected error.

## Changes

- **2026-10-20** `45942c75fdc2`: 12 warning, 2 info
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `topup_in_progress` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …10 more

[Operation history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/api/v1/credits/quick-topup/post.md)

---

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