View Source Dnsimple.Billing (dnsimple v4.0.0)

Provides functions to interact with the billing endpoints.

Summary

Functions

Lists the billing charges the current authenticated entity has access to.

Functions

Link to this function

list_charges(client, account_id, options \\ [])

View Source
@spec list_charges(Dnsimple.Client.t(), String.t() | integer(), Keyword.t()) ::
  {:ok | :error, Dnsimple.Response.t()}

Lists the billing charges the current authenticated entity has access to.

See:

Examples:

client = %Dnsimple.Client{access_token: "a1b2c3d4"}
{:ok, response} = Dnsimple.Billing.list_charges(client, account_id = "1010")
{:ok, response} = Dnsimple.Billing.list_charges(client, account_id = "1010", filter: [start_date: "2016-01-01", end_date: "2016-01-31"])
{:ok, response} = Dnsimple.Billing.list_charges(client, account_id = "1010", page: 2, per_page: 10)
{:ok, response} = Dnsimple.Billing.list_charges(client, account_id = "1010", sort: "invoiced:asc")