Billing
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET | |
GET |
Create billing alerts destinations delete
Delete a notification destination by deleting its HogFunction group atomically.
Required API key scopes
organization:writePath parameters
- idstring
Request parameters
- hog_function_idsarray
Example request
POST /api /organizations /:organization_id /billing /alerts /:id /destinations /deleteExample response
Status 204 No response body
Create billing alerts destinations delete
Delete a notification destination by deleting its HogFunction group atomically.
Required API key scopes
organization:writePath parameters
- idstring
Request parameters
- hog_function_idsarray
Example request
POST /api /organizations /:organization_id /billing /alerts /:id /destinations /deleteExample response
Status 204 No response body
List all billing alerts events
List evaluation and notification events for this billing alert, newest first.
Required API key scopes
organization:readPath parameters
- idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /billing /alerts /:id /eventsExample response
Status 200
List all billing alerts events
List evaluation and notification events for this billing alert, newest first.
Required API key scopes
organization:readPath parameters
- idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /organizations /:organization_id /billing /alerts /:id /eventsExample response
Status 200
Retrieve billing features
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /featuresExample response
Status 200
Retrieve billing forecast
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /forecastExample response
Status 200
List all billing invoices
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- cursorstring
- limitinteger
- statusstringOne of:
"open""paid""uncollectible""void"
Response
Example request
GET /api /organizations /:organization_id /billing /invoicesExample response
Status 200
Retrieve billing invoices content
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readPath parameters
- invoice_idstring
Example request
GET /api /organizations /:organization_id /billing /invoices /:invoice_id /contentExample response
Status 200
Retrieve billing limits
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /limitsExample response
Status 200
List all billing products
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- include_plansbooleanDefault:
false
Response
Example request
GET /api /organizations /:organization_id /billing /productsExample response
Status 200
Retrieve billing products
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readPath parameters
- product_keystring
Query parameters
- include_plansbooleanDefault:
false
Response
Example request
GET /api /organizations /:organization_id /billing /products /:product_keyExample response
Status 200
Retrieve billing products summary
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /products /summaryExample response
Status 200
List all billing project
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta. Every project the organization has reported usage for, deleted ones included, so a caller knows which ids a project breakdown or a team_ids filter can name. Below full billing access the list is the projects the caller can see.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /projectsExample response
Status 200
Retrieve billing spend summary
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /spendExample response
Status 200
Retrieve billing spend export
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- breakdownsstring | null
- end_datestring | null
- intervalstring | null
- start_datestring | null
- team_idsstring | null
- top_projectsinteger | null
- usage_typesstring | null
Example request
GET /api /organizations /:organization_id /billing /spend /exportExample response
Status 200
Retrieve billing spend timeseries
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- breakdownsstring | null
- cursorstring | null
- end_datestring | null
- intervalstring | null
- limitinteger | null
- start_datestring | null
- team_idsstring | null
- top_projectsinteger | null
- usage_typesstring | null
Response
Example request
GET /api /organizations /:organization_id /billing /spend /timeseriesExample response
Status 200
Retrieve billing subscription
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /subscriptionExample response
Status 200
Retrieve billing usage summary
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /usageExample response
Status 200
Retrieve billing usage export
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readQuery parameters
- breakdownsstring | null
- end_datestring | null
- intervalstring | null
- start_datestring | null
- team_idsstring | null
- top_projectsinteger | null
- usage_typesstring | null
Example request
GET /api /organizations /:organization_id /billing /usage /exportExample response
Status 200
Retrieve billing usage status
In beta: the organization billing API is behind the organization-billing-api feature flag and answers 403 without it, so ask support for access. Its shapes may change while it is in beta.
Required API key scopes
billing:readResponse
Example request
GET /api /organizations /:organization_id /billing /usage /status