Skip to main content
POST
Credit cost: Spends no Smart Prospect credits. It charges your saved card for a credit pack and adds those credits.
This endpoint requires your API key: pass it as the api_key query parameter, or in an X-API-Key or Authorization: Bearer header (see Authentication).
This call charges your saved card. With an API key you must send an Idempotency-Key header, so a retry after a timeout never charges twice.

Headers

string
required
A unique value per purchase, 1 to 255 visible ASCII characters. A UUID is the usual choice. Required for API-key callers.
  • The same key from the same account within 24 hours returns the first response again (with the response header Idempotent-Replayed: true) and does not charge again.
  • Every outcome is kept for the key, failures included, because a failed or timed-out charge may still have gone through. To try a new purchase after a failure, first check your top-up history, then use a new key.

Request Body

Send an empty JSON object ({}). No fields are accepted.

Response Fields

boolean
true when the card was charged
string
Top-up successful.
object

Idempotency errors

Other failures (no saved card, plan does not allow top-ups, top-up limit reached) return their own status and error, and are replayed for the same key like any other outcome.