Skip to content

The commercial ceiling was reached

POST

Delivered as a CloudEvents 1.0 envelope whose data is a CommercialEnvelope. Batched ≤ 20 per delivery as a JSON array; signed with Sweep-Signature.

Media typeapplication/json
Array
object
specversion
required
string
Allowed values: 1.0
id
required

Prefixed ULID (evt_…)

string
/^evt_[0-9A-HJKMNP-TV-Z]{26}$/
source
required
type
required

Event type from events.json, e.g. sweep.execution.completed

string
time
required
string format: date-time
subject

Primary resource id

string
datacontenttype
string
Allowed values: application/json
data
required
object
key
additional properties
sweepsimulated

CloudEvents extension: true in developer test mode.

boolean
type
required
Allowed value: sweep.usage.ceiling_reached
data
required

The standing commercial envelope: authorize once, let ordinary usage continue within the ceiling.

object
authorization_id
One of:
string
version
required
integer
plan
required
string
Allowed values: free sweep_plus developer
rate_card_version
required
string
terms_version
required
string
included_allowances
required
object
key
additional properties
number
authorized_meters
required
Array<string>
monthly_ceiling_cents
required
integer
category_ceilings
object
key
additional properties
integer
current_period_rated_cents
required
integer
remaining_headroom_cents
required
integer
ceiling_policy
required
string
Allowed values: warn pause_billable require_ceiling_change fallback_basic
effective_from
required
string format: date-time
stripe_subscription_id
One of:
string

Acknowledge with any 2xx within 10 seconds