scalingo_addonscalingo_alertscalingo_appscalingo_app_eventscalingo_autoscalerscalingo_collaboratorscalingo_containerscalingo_container_typescalingo_cronscalingo_databasescalingo_database_backupscalingo_database_maintenancescalingo_database_type_versionscalingo_database_userscalingo_deploymentscalingo_domainscalingo_environmentscalingo_event_typescalingo_invoicescalingo_keyscalingo_log_drainscalingo_log_drain_addonscalingo_notification_platformscalingo_notifierscalingo_regionscalingo_scm_integrationscalingo_scm_repo_linkscalingo_stackscalingo_tokenscalingo_user_eventscalingo_user_scm_repo_link
Table: scalingo_invoice
List the invoices associated to your account.
Examples
List invoices
select id, total_pricefrom scalingo_invoice;
Get unpaid invoices
select id, total_pricefrom scalingo_invoicewhere state != 'paid';
Get price in € per years
select year, round(sum(total_price) / 100, 2) as total_price, round(sum(total_price_with_vat) / 100, 2) as total_price_with_vatfrom ( select date_part('year', billing_month) as year, total_price, total_price_with_vat from scalingo_invoice ) as invoices_as_yeargroup by year;
Schema for scalingo_invoice
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
billing_month | timestamp with time zone | This invoice is related to this month. | |
detailed_items | jsonb | Detail breakdown of the consumption. | |
id | text | = | Unique ID of the invoice. |
invoice_number | text | The invoice number. | |
items | jsonb | The list of items to pay. | |
pdf_url | text | URL to download the PDF invoice. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
state | text | The state of this invoice (new, paid or failed). | |
total_price | bigint | price of this invoice (cents). | |
total_price_with_vat | bigint | Price of this invoice including VAT (cents). | |
vat_rate | bigint | The VAT rate applied to this invoice (in ‰). |