Usage and spend

Spend policy, charges this period, cap state and enforcement (leases, overshoot bound)

get/v1/organizations/{organization_id}/spend

Request

  • Base URL: https://api.shardflux.dev
  • URL: https://api.shardflux.dev/v1/organizations/{organization_id}/spend
  • Auth: HTTP bearer

Path parameters

organization_idstring uuid required

UUIDv7, lowercase canonical form.

Response

Default Response

organization_idstring uuid required

UUIDv7, lowercase canonical form.

currencystring nullable required
overagestring nullable required
alert_thresholdsinteger[] required
subscription_fee_minorinteger nullable required
usage_charges_minorinteger required

Overage charged this period so far, whole minor units (floor; spend_cap.charges_minor).

estimated_period_total_minorinteger nullable required

subscription_fee_minor + usage_charges_minor; null without a subscription price.

exhaustedstring[] required
meter_submissionsobject nullable required

Stripe meter submission states (owner/billing only; null otherwise).

Changes

No recorded changes to this operation across all 1 revision of this API.