---
title: "Create a custom-amount USD top-up order (amount in cents, minimum 500)"
method: POST
path: "/billing/checkout"
tags: ["billing"]
---

# Create a custom-amount USD top-up order (amount in cents, minimum 500)

`POST /billing/checkout`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/billing/checkout`
- Auth: HTTP bearer

## Headers

- `idempotency-key` string, required

## Request body

- union
  - object
    - `amount` integer, required
  - object
    - `pack_id` string, required

## Response `200`

Stripe Checkout URL

- object
  - `success` boolean, required
  - `id` string, required
  - `url` string, required

## Other responses

- `400`: Invalid top-up amount
- `409`: Top-up request conflict
- `503`: Top-ups unavailable

---

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