---
title: "Create credit top-up checkout"
method: POST
path: "/credits/topup"
tags: ["Subscribe"]
---

# Create credit top-up checkout

`POST /credits/topup`

Create a Stripe Checkout session only after the user confirms. The request never completes payment or adds credits by itself.

## Request body

- object
  - `dollars` integer, required — Amount to top up in US dollars. Minimum 10.
  - `locale` string — Optional checkout locale. Defaults to en.

## Response `200`

Top-up payment links

- object
  - `redirect_url` string, uri, required — Stable first-party Xquik redirect URL for the active Stripe Checkout session.
  - `url` string, uri, required — Same stable first-party Xquik redirect URL as redirect_url. The response never exposes a raw Stripe Checkout URL.

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.

## Changes

- **2026-07-22** `37e31f0b5439` — 192 warning
  - added the new `body_too_large` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `body_too_large` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `body_too_large` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `body_too_large` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …188 more
  - …this revision’s changelog is incomplete
- **2026-07-13** `83005363f122` — 6 breaking, 1 warning, 55 info
  - added the new required request property `dollars`
  - added `subschema #1: LegacyErrorCode, subschema #2: StructuredError` to the `error` response property `oneOf` list for the response status `400`
  - added `subschema #1: LegacyErrorCode, subschema #2: StructuredError` to the `error` response property `oneOf` list for the response status `401`
  - the `error` response's property type changed from `string` to no type for status `400`
  - …58 more
- …earlier changes not shown

[Full history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/credits/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/37e31f0b5439?raw)
