Skip to main content

A one-time purchase of API credits and its current state.

purchaseId
string<uuid>
required

The identifier sent when the purchase was made.

credits
integer
required

Number of API credits bought.

status
enum<string>
required

Where a credit top-up stands.

  • granted — paid; the credits are on the team's balance.
  • awaitingPayment — the invoice was issued and is not paid yet.
  • inProgress — the purchase is being processed; read it again in a few minutes.
  • paymentDeclined — the payment was declined and nothing was charged.
  • purchaseRefused — the billing provider refused the purchase and nothing was charged.
  • paidNotGranted — the payment went through after the team left the API plan, so no credits were added; contact support for a refund.
Available options:
granted,
awaitingPayment,
inProgress,
paymentDeclined,
purchaseRefused,
paidNotGranted