Layerbeat

Get the wallet

GET
/v1/billing/wallet

Returns your personal balance, reserved credit and available credit.

Access: API key: billing:read · Session: any role, own account.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Query Parameters

currency?string

Defaults to USD. Both actual balances are always returned.

Value in"USD""IDR"

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Response Body

Wallet

application/json
  1. response
balances?
balance*string
held*string

Reserved for servers being created.

available*string

balance minus held.

currency*string
curl -X GET 'https://layerbeat.com/v1/billing/wallet?currency=IDR'
{  "balance": "50.00",  "held": "12.00",  "available": "38.00",  "currency": "USD"}