Skip to content
Console
Menu

Generated Assets

Workflows

Getting Started

Authentication

KV Store

Usage settings

Usage Settings is the environment's usage-billing account: its currency, the enforcement switch (dark until a merchant admin turns it on),…

Usage Settings is the environment's usage-billing account: its currency, the enforcement switch (dark until a merchant admin turns it on), the free allowance, the dunning schedule and an extra token issuer. One per environment (AIP-156 singleton, id default).

Service Sylphx Money · Resource type money.sylphx.com/UsageSettings · Name pattern orgs/{org}/projects/{project}/envs/{env}/usage_settings/{usage_settings} · Shape record

#Fields

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/usage_settings/default.
uidstringuset_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
currency_codestringThe currency usage is rated and invoiced in (ISO 4217, upper case). Required.
enforcement_enabledboolWhile false a reservation is always granted and a would-be refusal is only recorded. Off until the merchant's admin turns it on.
free_allowance_nanostringWhat a subject with no payment method may use each month, nano-minor, as a decimal string.
past_due_grace_daysint32Days after an invoice's due time before the subject is past due.
suspend_grace_daysint32Days after an invoice's due time before the subject is suspended.
extra_issuerstringA further token issuer (the merchant's own OIDC provider) besides Sylphx Auth; empty for Sylphx Auth only. It needs extra_issuer_jwks_url.
extra_issuer_jwks_urlstringThe issuer's HTTPS JWKS URL.
extra_issuer_audiencestringThe audience that issuer's tokens must carry; required with extra_issuer.
extra_issuer_org_claimstringThe claim that names a customer organization in that issuer's tokens; empty means the issuer proves no organization subject.

#Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
GETgetGets the environment's usage settings.
PATCHupdateUpdates the usage settings, the enforcement switch included. A change is recorded with who made it.

#get

Gets the environment's usage settings.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/usage_settings/usage-settings · scope billing:read · effect read · Request, response and examples

#update

Updates the usage settings, the enforcement switch included. A change is recorded with who made it.

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/usage_settings/usage-settings · scope billing:write · effect write · Request, response and examples