Terminate an occupancy agreement
Records a prospective inclusive last occupation day, caps fees and preserves the signed end date. **Required permission:** `referential.occupancy-agreement:write`
/referential/v1/occupancy-agreements/{id}/terminationRecords a prospective inclusive last occupation day, caps fees and preserves the signed end date.
Required permission: referential.occupancy-agreement:write
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/referential/v1/occupancy-agreements/string/termination" \ -H "Content-Type: application/json" \ -d '{ "terminated_on": "2019-08-24" }'{ "commercial_unit_id": "string", "concluded_at": "2019-08-24T14:15:22Z", "concluded_by": "string", "created_at": "2019-08-24T14:15:22Z", "id": "string", "occupant_id": "string", "reference": "string", "station_id": "string", "terminated_at": "2019-08-24T14:15:22Z", "terminated_by": "string", "terminated_on": "2019-08-24", "updated_at": "2019-08-24T14:15:22Z", "valid_from": "2019-08-24", "valid_until": "2019-08-24"}Provide a fee
Adds a one-off or periodic fee in the station currency, with dates contained in the convention. A ONE_OFF fee takes due_on and no period; a MONTHLY, QUARTERLY or YEARLY fee takes period_start and period_end and no due date. A request of the wrong shape is refused as invalid_fee_dates, naming each field at fault. **Required permission:** `referential.fee:write`
List occupants
Searches the declared register with optional filters. **Required permission:** `referential.occupant:read`