---
title: "Create a charge meter"
method: POST
path: "/leases/{lease_id}/charges/{charge_id}/meters"
tags: ["Leases"]
---

# Create a charge meter

`POST /leases/{lease_id}/charges/{charge_id}/meters`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/leases/{lease_id}/charges/{charge_id}/meters`
- Auth: HTTP bearer

Create a new meter association for a charge

## Path parameters

- `lease_id` string, uuid, required
- `charge_id` string, uuid, required

## Request body

- CreateLeaseChargeMeter: Create a new charge-meter association. **Validation rules:** - `start_date` must be <= `end_date` (if provided) - `allocation_ratio` must be between 0 (exclusive) and 100 (inclusive)
  - `lease_charge_id` string, uuid, required
  - `meter_id` string, uuid, required
  - `calculation_method` 'DIRECT' | 'WEIGHTED' | 'SHARED' | 'FIXED_ALLOCATION': Method used to calculate charge consumption from meter readings. - `DIRECT`: Direct consumption billing - `WEIGHTED`: Weighted by a coefficient - `SHARED`: Shared proportionally among tenants - `FIXED_ALLOCATION`: Fixed allocation regardless of consumption
  - `allocation_ratio` number, nullable
  - `calculation_formula` object, nullable
  - `is_active` boolean
  - `start_date` string, date, required
  - `end_date` string, date, nullable

## Response `201`

Charge meter created successfully

- LeaseChargeMeter: Association between a meter and a specific lease charge. Defines how consumption readings from the meter are used to calculate the charge amount.
  - `id` string, uuid, required
  - `lease_charge_id` string, uuid, required
  - `meter_id` string, uuid, required
  - `calculation_method` 'DIRECT' | 'WEIGHTED' | 'SHARED' | 'FIXED_ALLOCATION': Method used to calculate charge consumption from meter readings. - `DIRECT`: Direct consumption billing - `WEIGHTED`: Weighted by a coefficient - `SHARED`: Shared proportionally among tenants - `FIXED_ALLOCATION`: Fixed allocation regardless of consumption
  - `allocation_ratio` number, nullable: Allocation ratio percentage (0 < x <= 100)
  - `calculation_formula` object, nullable: Custom calculation formula (JSON)
  - `is_active` boolean, required: Whether this meter-charge link is currently active
  - `start_date` string, date, required
  - `end_date` string, date, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/faireplace/apis/faireplace-property-management-api.md) · [All operations](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faireplace/apis/faireplace-property-management-api/revisions/69de39762919?raw)
