Skip to content

Latest commit

 

History

History
84 lines (52 loc) · 2.27 KB

BillingInvoicesApi.md

File metadata and controls

84 lines (52 loc) · 2.27 KB

BillingInvoicesApi

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.
list_invoices GET /billing/v3/invoices List of invoices.

get_invoice_by_invoice_id

Returns invoice associated with the invoice id.

let cfg = &Configuration::default();
let params = GetInvoiceByInvoiceIdParams {
    // parameters
};
get_invoice_by_invoice_id(cfg, params)

Parameters

Name Type Description Required Notes
invoice_id String Alphanumeric string identifying the invoice. [required]

Return type

crate::models::InvoiceResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]

list_invoices

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)

Parameters

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.

Return type

crate::models::ListInvoicesResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to README]