Wallet

Start a card top-up

POST
/v1/wallet/top-ups

Opens a Stripe Checkout session for adding funds by card. The wallet is credited once Stripe confirms the payment - from the webhook, never from this response.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Request Body

application/json
  1. body
amount*integer

Charged to the card, in cents

Range500 <= value <= 500000

Response Body

Created

application/json
  1. response

Created

id*string
url*string

Open this to pay

Formaturi
amount*integer

Charged to the card, in cents

creditAmount*integer

What the wallet is credited once Stripe confirms the payment

curl -X POST "https://example.com/v1/wallet/top-ups" \  -H "Content-Type: application/json" \  -d '{    "amount": 10000  }'
{  "id": "wtp_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",  "url": "http://example.com",  "amount": 0,  "creditAmount": 0}