---
title: "A Stripe Checkout link to buy X top-up credits (one-time payment)"
method: POST
path: "/api/x/credits/checkout"
---

# A Stripe Checkout link to buy X top-up credits (one-time payment)

`POST /api/x/credits/checkout`

## Request

- Base URL: `https://postwire.io`
- URL: `https://postwire.io/api/x/credits/checkout`
- Auth: HTTP bearer

Packs: "5" = 80 credits for $5, "20" = 340 credits for $20. Nothing is charged until the person pays on the Stripe page. Paid plans only (403 x_paid_plan_required otherwise, with the plan that has X).

## Request body

- object
  - `pack` '5' | '20', required

## Response `200`

{ url } of the Stripe Checkout page

## Other responses

- `403`: x_paid_plan_required (Free or a running trial) or internal_account

---

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