Add prepaid credit to the wallet
Buys credit: the billing provider adds `amount_cents` of paid credit to the wallet (making the wallet on the first top-up) and charges the card on file for it; the credit is usable once the payment settles (`state`).
Buys credit: the billing provider adds amount_cents of paid credit to the wallet (making the wallet on the first top-up) and charges the card on file for it; the credit is usable once the payment settles (state). A card on file is needed (conflict). Paying is a person's: only a signed-in person whose role may read billing, with a fresh second factor; an API key answers person_required. With billing off it is conflict; the billing provider not answering is upstream.
For people only: a signed-in person with a fresh second factor makes this call. An API key is refused with person_required. The person's role must be one that may read billing.
Request
curl -X POST "https://api.pod.mapier.ai/v1/billing/wallet/top_up" \
-H "Authorization: Bearer $POD_PERSON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount_cents":1500}'Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
amount_cents | integer | Yes | In the currency's minor unit. From 1500 to 10000000. |
Answer
201. The top-up, pending until the card payment settles.
{
"id": "example",
"amount_cents": 1,
"currency": "example",
"state": "pending",
"created_at": "2026-11-23T12:00:00.000Z"
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | The billing provider's id for the wallet transaction. |
amount_cents | integer | Yes | At least 1. |
currency | string | Yes | ISO 4217. |
state | "pending" | "settled" | "failed" | Yes | |
created_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
Errors
The refusals this call is known for: invalid, person_required, forbidden, conflict, upstream. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.
In the SDKs
| Client | Call |
|---|---|
| TypeScript | pod.billing.topUp(amountCents) |
| Python | pod.billing.top_up(amount_cents) |