Skip to main content
GET
/
v0
/
billableMetrics
/
{id}
Get
curl --request GET \
  --url https://api.paygentic.io/v0/billableMetrics/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "bm_u3v4w5x6y7z8a9b0",
  "object": "billableMetric",
  "aggregation": "SUM",
  "createdAt": "2024-02-01T14:45:30Z",
  "description": "Gigabytes of cloud storage utilized",
  "merchantId": "org_c1d2e3f4g5h6i7j8",
  "mode": "usage",
  "name": "Storage Capacity",
  "productId": "prod_k9l0m1n2o3p4q5r6",
  "taxRate": 10,
  "unit": "GB",
  "updatedAt": "2024-02-15T09:20:00Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

Unique identifier for a billable metric

Response

Billable metric details

id
string

Unique identifier for a billable metric

object
enum<string>
default:billableMetric
Available options:
billableMetric
aggregation
enum<string>
Available options:
SUM,
MAX,
COUNT,
COUNT_UNIQUE
createdAt
string<date-time>
description
string
merchantId
string

Unique identifier for an organization

mode
enum<string>
Available options:
usage,
flat
name
string
productId
string

Unique identifier for a product

unit
string
updatedAt
string<date-time>