Skip to main content
POST
Start buying credit

Authorizations

oc_session
string
cookie
required

The console's session cookie (httpOnly, SameSite=Lax, 30 days), set by signup and login.

Body

application/json
amountUsd
number
required

Dollars, in whole cents.

Required range: 5 <= x <= 2000
returnUrl
string

A path or URL on this site to come back to. /billing by default.

Response

Where to send the browser.

url
string
required

Send the browser here. In test mode it is a path on this plane.