Skip to main content
GET
cURL
The setting that applies, with its source (customer or plan), what one top-up buys (credits, amountCents), whether failures hold it back (suspended, coolingDownUntil), and the customer’s last 10 top-ups, by hand or automatic. autoTopUp is null when neither the customer nor their plan has one.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

customerId
string
required

Your ID for the customer, such as your user ID.

Required string length: 1 - 255

Response

The auto top-up that applies, and recent top-ups

customerId
string
required
autoTopUp
object | null
required
suspended
boolean
required

Three failures in a row: no attempt until the setting is saved again or the default card changes.

coolingDownUntil
string<date-time> | null
required

After a failure, no attempt before this (unless the card changes).

recent
object[]
required

The last 10 top-ups, newest first.