Layerbeat

Save personal billing currency

PATCH
/v1/me/preferences

Saves USD or IDR as your default billing currency across devices and workspaces.

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.

Request Body

application/json
  1. body
currency*string
Value in"USD""IDR"

Response Body

Saved 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 PATCH 'https://layerbeat.com/v1/me/preferences' \  -H 'Content-Type: application/json' \  -d '{  "currency": "IDR"}'
{  "currency": "IDR",  "saved_currency": "IDR",  "source": "user",  "idr_per_usd": "16000",  "supported_currencies": [    "USD",    "IDR"  ]}