List
List pricing units
client.v1.pricingUnits.list(PricingUnitListParamsquery?, RequestOptionsoptions?): CursorPage<idstringis_currencybooleannamestringPricingUnitListResponse>
get/v1/credit-types/list
List all pricing units (known in the API by the legacy term "credit types").
Parameters
querylimitnumbernext_pagestringPricingUnitListParams
Returns
PricingUnitListResponse
import Metronome from '@metronome/sdk';
const client = new Metronome({
bearerToken: 'My Bearer Token',
});
// Automatically fetches more pages as needed.
for await (const pricingUnitListResponse of client.v1.pricingUnits.list()) {
console.log(pricingUnitListResponse.id);
}
200 Example
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"is_currency": true,
"name": "name"
}
],
"next_page": "next_page"
}