Get Rate Card
client.rateCards.retrieve(stringrateCardID, RequestOptionsoptions?): RateCardResource { id, billing_interval, created_at, 6 more }
/rate-cards/{rate_card_id}
Get Rate Card
Parameters
rateCardID: string
Returns
Get Rate Card
import Lark from 'lark-billing';
const client = new Lark({
apiKey: 'My API Key',
});
const rateCardResource = await client.rateCards.retrieve('rate_card_id');
console.log(rateCardResource.id);
{
"id": "rc_jQK2n0wutCj6bBcAIrL6o07g",
"billing_interval": "monthly",
"created_at": "2025-11-01T00:00:00Z",
"fixed_rates": [
{
"id": "fr_04EjnYJoQLC7gtLKI6mPzZny",
"description": "description",
"name": "Base Rate",
"price": {
"amount": {
"currency_code": "usd",
"value": "2500"
},
"price_type": "flat"
}
}
],
"metadata": {},
"name": "Pro Plan",
"updated_at": "2025-11-01T00:00:00Z",
"usage_based_rates": [
{
"id": "ubr_zoXOJrDXlGGJWRNq3HqFYhbP",
"description": "description",
"included_units": 30,
"name": "Compute Hours",
"price": {
"amount": {
"currency_code": "usd",
"value": "100"
},
"price_type": "flat"
},
"pricing_metric_id": "pmtr_GlX5Tcm2HOn00CoRTFxw2Amw",
"usage_based_rate_type": "simple"
}
],
"description": "For production applications with moderate usage."
}Returns Examples
{
"id": "rc_jQK2n0wutCj6bBcAIrL6o07g",
"billing_interval": "monthly",
"created_at": "2025-11-01T00:00:00Z",
"fixed_rates": [
{
"id": "fr_04EjnYJoQLC7gtLKI6mPzZny",
"description": "description",
"name": "Base Rate",
"price": {
"amount": {
"currency_code": "usd",
"value": "2500"
},
"price_type": "flat"
}
}
],
"metadata": {},
"name": "Pro Plan",
"updated_at": "2025-11-01T00:00:00Z",
"usage_based_rates": [
{
"id": "ubr_zoXOJrDXlGGJWRNq3HqFYhbP",
"description": "description",
"included_units": 30,
"name": "Compute Hours",
"price": {
"amount": {
"currency_code": "usd",
"value": "100"
},
"price_type": "flat"
},
"pricing_metric_id": "pmtr_GlX5Tcm2HOn00CoRTFxw2Amw",
"usage_based_rate_type": "simple"
}
],
"description": "For production applications with moderate usage."
}