Leases
Update lease charge
Update the information of an existing charge.
Validations performed:
- service_place / lease compatibility: The service must be attached to the same place as the lease's estate
- Automatic resolution of the distribution key: If distribution_key_id is not provided, uses default_distribution_key_id from the service_place or the existing value
- Distribution / billing consistency: Checks that the distribution is compatible with the billing method
- Method / basis consistency: Checks that the billing method is compatible with the calculation basis
- Lease type compatibility: Checks that the category and billing method are allowed for this lease type
- Period validation: Checks that billing periods are within the lease boundaries and respect max_provisional_months if applicable
- Category x basis compatibility: Checks that personnel calculation bases are only used with the EMPLOYEE category
put/leases/{lease_id}/charges/{charge_id}
Request
- Base URL: https://api.faireplace.com/api
- URL: https://api.faireplace.com/api/leases/{lease_id}/charges/{charge_id}
- Auth: HTTP bearer
Path parameters
lease_idstring uuid required
Lease ID
charge_idstring uuid required
Charge ID
Request body
Example request
{
"calculation_method": "PROVISION",
"calculation_basis": "FORFAIT"
}Response
Charge updated successfully
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"lease_id": "550e8400-e29b-41d4-a716-446655440001",
"calculation_method": "PROVISION",
"calculation_basis": "FORFAIT",
"amount": 150
}Changes
No recorded changes to this operation across all 1 revision of this API.