{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"external_id": "example",
"code": "initial",
"lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"external_customer_id": "customer_123",
"name": "example",
"plan_code": "standard",
"status": "pending",
"consolidate_invoice": false,
"purchase_order_number": "example",
"billing_anchor_date": null,
"effective_billing_anchor_date": null,
"skip_invoice_custom_sections": false,
"started_at": null,
"ended_at": null,
"terminated_at": null,
"canceled_at": null,
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T08:59:51.123456Z",
"applied_rate_cards": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"external_contract_id": "contract_123",
"rate_card_code": "compute_usd",
"product_code": "api_requests",
"product_filter_code": "eu",
"units": "1.5",
"effective_date": "2022-04-29",
"billing_anchor_date": "2022-04-29",
"next_billing_at": null,
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T08:59:51.123456Z",
"deleted_at": null,
"billing_scope": "cycle"
}
],
"plan": {
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "example",
"code": "example",
"description": "example",
"invoice_display_name": "example",
"currency": "USD",
"created_at": "2022-04-29T08:59:51.123456Z",
"deleted_at": null,
"taxes": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"name": "VAT",
"code": "standard_vat",
"rate": 20,
"description": "Standard VAT",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T09:30:00.123456Z",
"deleted_at": null
}
]
},
"invoice_custom_sections": [
{
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"code": "example",
"name": "example",
"description": "example",
"details": "example",
"display_name": "example",
"created_at": "2022-04-29T08:59:51.123456Z",
"updated_at": "2022-04-29T08:59:51.123456Z",
"deleted_at": null
}
]
}Contracts
The contract object
Fields of a contract in the Lago API. A contract applies plan terms and rate cards to a customer and drives invoicing.
API v2 is in beta. Endpoints return the
X-Lago-Endpoint-Status: beta header.Contract.