Skip to main content
POST
Start a one-time hosted card checkout for the root account's USD wallet.

Authorizations

Authorization
string
header
required

A person's session: Authorization: Bearer <ID token>, the ID token the Sendblue sign-in issues. The person acts in their company's root account with the role of their seat.

Headers

Idempotency-Key
string
required

A value unique to this intended write, 1 to 128 visible ASCII characters. A repeat with the same key returns the original result.

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]+$

Body

application/json
amount
string
required

USD from $1.00 to $150.00 in whole cents. Extra trailing zeroes identify the same amount on replay.

Pattern: ^(?:(?:[1-9][0-9]?|1[0-4][0-9])\.[0-9]{2}0{0,4}|150\.0{2,6})$
Example:

"25.00"

Response

The durable top-up, including its current state on replay.

id
string
required
amount
object
required

An amount in US dollars. amount is a decimal string with two to six decimals; amount_micro_usd is the same amount as every other money member of this API states it.

Example:
status
enum<string>
required
Available options:
pending,
succeeded,
failed,
expired
transaction_id
string | null
required

ID of the funding entry in GET /admin/billing/transactions, once credited.

checkout_url
string<uri> | null
required
created_at
string<date-time>
required

RFC 3339, UTC.

updated_at
string<date-time>
required

RFC 3339, UTC.