Skip to content
  • Auto
  • Light
  • Dark
Talk to an expert

List

List pricing units
v1.pricing_units.list(PricingUnitListParams**kwargs) -> SyncCursorPage[idstris_currencyboolnamestrPricingUnitListResponse]
get/v1/credit-types/list

List all pricing units (known in the API by the legacy term "credit types").

Parameters
limitint
optional

Max number of results that should be returned

minimum1
maximum100
next_pagestr
optional

Cursor that indicates where the next page of results should start.

Returns
PricingUnitListResponseclass
Hide ParametersShow Parameters
idstr
optional
formatuuid
is_currencybool
optional
namestr
optional
from metronome import Metronome

client = Metronome(
    bearer_token="My Bearer Token",
)
page = client.v1.pricing_units.list()
page = page.data[0]
print(page.id)
200 Example
{
  "data": [
    {
      "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
      "is_currency": true,
      "name": "name"
    }
  ],
  "next_page": "next_page"
}