Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
get_invoice_by_invoice_id | GET /billing/v3/invoices/{invoice_id} | Get invoice by ID. |
get_month_to_date_invoice | GET /billing/v3/invoices/month-to-date | Get month-to-date invoice. |
list_invoices | GET /billing/v3/invoices | List of invoices. |
Returns invoice associated with the invoice id.
let cfg = &Configuration::default();
let params = GetInvoiceByInvoiceIdParams {
// parameters
};
get_invoice_by_invoice_id(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
invoice_id | i32 | [required] |
crate::models::EomInvoiceResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Returns month-to-date invoice for the current month.
let cfg = &Configuration::default();
let params = GetMonthToDateInvoiceParams {
// parameters
};
get_month_to_date_invoice(cfg, params)
This endpoint does not need any parameter.
crate::models::MtdInvoiceResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to README]
Returns the list of invoices, sorted by billing start date (newest to oldest).
let cfg = &Configuration::default();
let params = ListInvoicesParams {
// parameters
};
list_invoices(cfg, params)
Name | Type | Description | Required | Notes |
---|---|---|---|---|
billing_start_date | Option<String> | |||
billing_end_date | Option<String> | |||
limit | Option<String> | Number of results per page. The maximum is 200. | [default to 100] | |
cursor | Option<String> | Cursor value from the next_cursor field of a previous response, used to retrieve the next page. To request the first page, this should be empty. |
crate::models::ListEomInvoicesResponse
- Content-Type: Not defined
- Accept: application/json