Skip to main content
POST
get current billing-period usage

Authorizations

Authorization
string
header
required

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

Body

application/json

Current billing-period usage request

customer_id
string

The customer ID. Optional when the API key is bound to a customer.

Example:

"cus_1H7KQFLr7RepUyQBKdnvY"

project_id
string

The project ID. Only main-project keys can select another project.

Example:

"project_1H7KQFLr7RepUyQBKdnvY"

Response

Current billing-period usage

billing_periods
object[]
required