Skip to main content
GET
Get a credit top-up

Authorizations

Authorization
string
header
required

Authenticate every request with a Bearer token. Pass your Reply API key in the Authorization header:

Get your API key from the Reply dashboard: Settings → API Key.

Path Parameters

purchaseId
string<uuid>
required

The purchaseId sent when the purchase was made.

Response

The purchase and its current state

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