Billing period
BillingPeriod
dataclass
#
BillingPeriod(
id: str,
start_date: datetime,
end_date: datetime,
status: str,
outstanding_cost: float,
gross_cost: float,
discount: float,
response_count: int,
credits: float | None,
effective_limit: float | None,
)
What the current billing period has cost so far, and what is left to spend.
All amounts are in US dollars, rounded to the cent. Costs accrue continuously while jobs run, so this is a snapshot: fetch it again for an up-to-date figure.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
The billing period's id. |
start_date |
datetime
|
When the billing period started. |
end_date |
datetime
|
When the billing period ends. |
status |
str
|
The period's lifecycle status — |
outstanding_cost |
float
|
The net cost accrued so far — |
gross_cost |
float
|
The cost accrued so far, before any discounts. |
discount |
float
|
The discounts applied to the period so far. |
response_count |
int
|
The number of billable responses collected in the period. |
credits |
float | None
|
The prepaid credit still available to spend, or |
effective_limit |
float | None
|
The most the organization may spend in this period, or
|