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

Contract Applied Rate Card.

lago_id
string<uuid>
required

Unique identifier created by Lago.

Example:

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

external_contract_id
string
required

External identifier of the contract.

Example:

"contract_123"

rate_card_code
string
required

Code of the applied rate card.

Example:

"compute_usd"

product_code
string
required

Code of the product priced by the applied rate card.

Example:

"api_requests"

product_filter_code
string | null
required

Code of the product filter priced by the applied rate card, or null for the product default.

Example:

"eu"

units
string | null
required

Quantity. Sent as a decimal string.

Pattern: ^-?[0-9]+(\.[0-9]+)?$
Example:

"1.5"

effective_date
string<date>
required

Effective date.

Example:

"2022-04-29"

billing_anchor_date
string<date>
required

Billing anchor date.

Example:

"2022-04-29"

next_billing_at
string<date-time> | null
required

Next billing at.

Example:

null

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

billing_scope
enum<string>
required

Groups priced segments within a billing cycle or bills each segment separately. Defaults to cycle.

Available options:
cycle,
segment
Example:

"cycle"