Skip to main content
API v2 is in beta. Endpoints return the X-Lago-Endpoint-Status: beta header.

Product.

lago_id
string<uuid>
required

Unique identifier created by Lago.

Example:

"1a901a90-1a90-1a90-1a90-1a901a901a90"

name
string
required

Name.

Example:

"example"

code
string
required

Code.

Example:

"example"

description
string | null
required

Description.

Example:

"Example"

invoice_display_name
string | null
required

Invoice display name.

Example:

"example"

created_at
string<date-time>
required

UTC creation timestamp, with microsecond precision.

Example:

"2022-04-29T08:59:51.123456Z"

updated_at
string<date-time>
required

UTC timestamp of the last update, with microsecond precision.

Example:

"2022-04-29T08:59:51.123456Z"

deleted_at
string<date-time> | null
required

UTC deletion timestamp, with microsecond precision. Null until deletion.

Example:

null

product_category_code
string | null
required

Code of the category, or null for an uncategorized product.

Example:

"compute"

billable_metric_code
string | null
required

Code of the billable metric. Required for metered products and absent for fixed products.

Example:

"api_requests"

product_type
enum<string>
required

Type of product. Metered products require a billable metric; fixed products must not reference one.

Available options:
metered,
fixed
Example:

"metered"

product_category
object | null

Present only with expands[]=product_category on retrieval.

billable_metric
object | null

Present only with expands[]=billable_metric on retrieval.