JavaScript SDK
Pricing
Public price catalog for all billable resources
2 methods
GET
listPrices()
List all prices
Parameters
servicestring
- Filter by service
resource_typestring
- Filter by resource type
active_onlyboolean
- Only return active prices
Example
import { ByCloud } from "@bycoded/bycloud-sdk";const client = new ByCloud({token: "YOUR_ACCESS_TOKEN",});const result = await client.pricing.listPrices();console.log(result);
GET
getPrice()
Get price by SKU
Parameters
skustring
required- SKU identifier
Example
import { ByCloud } from "@bycoded/bycloud-sdk";const client = new ByCloud({token: "YOUR_ACCESS_TOKEN",});const result = await client.pricing.getPrice({sku: "example"});console.log(result);