Skip to main content
POST
Add funds with a machine payment

Authorizations

Authorization
string
header
required

An API key from the console, starting ob_live_, sent as Authorization: Bearer <key>.

Body

application/json
amountUsd
number
required

How much to add to the balance, in US dollars: 10 to 5000, in whole cents. Send the same amount with the payment as the challenge was asked for.

Required range: 10 <= x <= 5000

Response

The payment was charged and the balance credited.

id
string
required

The top-up's id.

amountUsd
string
required

What was charged and added to the balance.

balanceUsd
string
required

The balance after the top-up.