---
title: "Get charge distribution key"
method: GET
path: "/charges/distributions/{id}"
tags: ["Services"]
---

# Get charge distribution key

`GET /charges/distributions/{id}`

## Request

- Base URL: `https://api.faireplace.com/api`
- URL: `https://api.faireplace.com/api/charges/distributions/{id}`
- Auth: HTTP bearer

Retrieve a charge distribution key by its ID

## Path parameters

- `id` string, uuid, required

## Response `200`

Distribution key retrieved successfully

- ChargeDistributionKey: Charge distribution key. **When used in a rental charge:** - The `calculation_type` must be compatible with the charge's `calculation_method` - `CONSOMMATION_MESUREE` requires `RELEVE_DIRECT` or `PROVISION` as billing mode - Other types can be used with `PROVISION` or `FORFAIT`
  - `id` string, uuid, required: Unique identifier of the distribution key
  - `name` string, required: Name of the distribution key
  - `description` string, nullable: Description of the distribution key
  - `calculation_type` 'SURFACE' | 'OCCUPANT' | 'CONSOMMATION_MESUREE' | 'NOMBRE_EQUIPEMENTS' | 'MILLIEME' | 'PARTS_EGALES' | 'FORMULE_PERSONNALISEE', required: Type of charge distribution among tenants (distribution technique). **Compatibility rules with the billing mode:** - `CONSOMMATION_MESUREE` requires `RELEVE_DIRECT` or `PROVISION` (not `FORFAIT`) - Other types can be used with `PROVISION` or `FORFAIT`
  - `formula` string, nullable: Custom calculation formula (required if calculation_type = FORMULE_PERSONNALISEE)
  - `parameters` DistributionParameters: Charge distribution parameters based on the chosen calculation type
    - `surface_m2` number, nullable: Surface area in m² for SURFACE calculation
    - `occupant_count` integer, nullable: Number of occupants for OCCUPANT calculation
    - `meter_id` string, uuid, nullable: Meter ID for CONSOMMATION_MESUREE calculation
    - `equipment_count` integer, nullable: Number of equipment items for NOMBRE_EQUIPEMENTS calculation
    - `millieme_value` number, nullable: Value in thousandths for MILLIEME calculation
    - `formula_parameters` object, nullable: Custom parameters for FORMULE_PERSONNALISEE calculation (JSON format)
  - `validation_rules` ValidationRules: Validation rules for distribution calculations
    - `min_value` number, nullable: Minimum allowed value
    - `max_value` number, nullable: Maximum allowed value
    - `required_parameters` string[]: Required parameters for validation
    - `custom_validation` object, nullable: Custom validation rule (JSON format)
  - `created_at` string, date-time: Creation date
  - `updated_at` string, date-time: Last modification date

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `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)
