---
title: "Buy 100 API credits for $5"
method: POST
path: "/billing/topup"
---

# Buy 100 API credits for $5

`POST /billing/topup`

## Request

- Base URL: `https://developer.usepopup.com/api/v0`
- URL: `https://developer.usepopup.com/api/v0/billing/topup`
- Auth: HTTP bearer

Charges the card on file immediately and adds 100 credits to the account balance. Requires an active Stripe customer with a payment method.

## Response `200`

Credits purchased successfully

- object
  - `data` object
    - `credits_added` integer
    - `credits_remaining` integer
    - `amount_charged` integer: Amount in cents
    - `currency` string
    - `invoice_id` string

## Other responses

- `400`: No payment method on file
- `402`: Payment declined

---

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