Skip to main content
GET
Get

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The unique identifier of the cost Unique identifier for a cost

Pattern: ^cst_[a-zA-Z0-9]+$

Response

Cost details

id
string
required

Unique identifier for a cost

Pattern: ^cst_[a-zA-Z0-9]+$
object
enum<string>
default:cost
required
Available options:
cost
type
enum<string>
required
Available options:
metered
name
string
required
currency
string
required
unitCost
string
required

Decimal as string to avoid floating point precision loss.

productId
string
required

Unique identifier for a product

Pattern: ^prod_[a-zA-Z0-9]+$
merchantId
string
required

Unique identifier for an organization

Pattern: ^org_[a-zA-Z0-9]+$
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
unit
string | null
aggregation
enum<string> | null
Available options:
SUM,
COUNT,
AVG,
MIN,
MAX,
UNIQUE_COUNT,
LATEST
eventType
string | null
valueProperty
string | null
groupBy
object | null
deletedAt
string<date-time> | null

Soft-delete timestamp. Always null for active costs returned by the API.