List

Lists billing ledger periods the caller’s org owns or is a payment counterparty on. | authz_personas=[billing_ledger_period_org_operators] | () -> (BillingLedgerPeriodListRes)

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

sort_byenumOptional
Field to sort by.
Allowed values:
sort_orderenumOptional

Sort order (asc or desc).

Allowed values:
pageintegerOptional>=1Defaults to 1
page_sizeintegerOptional1-100Defaults to 20
filter_billing_ledger_idstringOptional
Filter by parent billing ledger id.
filter_owned_by_org_idstringOptional
Filter by owner org id.
filter_statusenumOptional

Filter by status(es). Multi-select.

Allowed values:
filter_statement_idstringOptional
Filter to periods rolled into this statement.
filter_attached_to_statementbooleanOptional

Filter by whether the period is bundled into a statement (statement_id is not None if true, is None if false). Used by the statement-bundling worklist to find unbundled periods.

filter_period_end_at_timestamp_beforedatetimeOptional

Filter to periods whose period_end_at_timestamp is strictly before this instant. Combined with filter_status=open this yields the ‘needs cycling’ worklist.

filter_period_end_at_timestamp_afterdatetimeOptional

Filter to periods whose period_end_at_timestamp is strictly after this instant.

Response

Successful Response
itemslist of objects
total_countinteger

Errors

422
Billing Ledger Periods List V1request Unprocessable Entity Error