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`).

POST/v1/billing/wallet/top_up

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

NameInTypeRequiredWhat it is
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
amount_centsintegerYesIn the currency's minor unit. From 1500 to 10000000.

Answer

201. The top-up, pending until the card payment settles.

201
{
  "id": "example",
  "amount_cents": 1,
  "currency": "example",
  "state": "pending",
  "created_at": "2026-11-23T12:00:00.000Z"
}
FieldTypeAlwaysWhat it is
idstringYesThe billing provider's id for the wallet transaction.
amount_centsintegerYesAt least 1.
currencystringYesISO 4217.
state"pending" | "settled" | "failed"Yes
created_atstringYesRFC 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

ClientCall
TypeScriptpod.billing.topUp(amountCents)
Pythonpod.billing.top_up(amount_cents)