Layerbeat

Get personal billing currency

GET
/v1/me/preferences

Returns your saved billing currency.

Access: User session. API keys aren't supported.

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.

Header Parameters

X-Org-ID?string

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

Response Body

Personal currency preference

application/json
  1. response
currency*string

Effective personal billing currency. USD is used if IDR accounting is unavailable.

Value in"USD""IDR"
saved_currency*|

Explicit personal choice; null means no choice has been saved yet.

Value in"USD""IDR"null
source*string
Value in"user""location""default"
idr_per_usd*|

Reviewed internal supplier and referral accounting reference. Never use it to calculate native catalog retail or convert wallet balances. Null when IDR accounting is unavailable.

Match^[0-9]+$
supported_currencies*array<>
Items1 <= items
curl -X GET 'https://layerbeat.com/v1/me/preferences'
{  "currency": "IDR",  "saved_currency": "IDR",  "source": "user",  "idr_per_usd": "16000",  "supported_currencies": [    "USD",    "IDR"  ]}