Skip to content
Console
Menu

Generated Assets

Workflows

Getting Started

Authentication

KV Store

Check standing on an usage event

Reads a subject's standing: active, past due or suspended, whether a payment method is on file, headroom and the threshold.

Reads a subject's standing: active, past due or suspended, whether a payment method is on file, headroom and the threshold.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/usage_events:checkStanding
  • Scope billing:read
  • Effect read — nothing is written.
  • Collection usage_events

#Request

FieldTypeWhat it is
parentstringThe environment. Required.
subjectSubjectWhose standing. Required.
subject_proofstringAs on UsageReservation: a verified token for the subject. Required.
actor_proofstringFor a customer organization: the acting user's token.

#Subject

FieldTypeWhat it is
end_userstringAn end user's id (Sylphx Auth, or the app's own OIDC issuer). One of the kind group.
customer_organizationstringA customer organization's id. One of the kind group.

#Response

FieldTypeWhat it is
statestringactive, past_due, or suspended.
payment_method_on_fileboolWhether a payment method is on file.
headroom_minorstringWhat the subject may still use now, minor units, a decimal string; empty when it has no limit.
threshold_minorstringThe amount that makes a threshold invoice be cut, minor units.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/usage_events:checkStanding" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"subject":{},"subject_proof":"…"}'