SmartGare
API referenceEndpoints

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`

POST/referential/v1/occupancy-agreements/{id}/termination

Records a prospective inclusive last occupation day, caps fees and preserves the signed end date.

Required permission: referential.occupancy-agreement:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*TerminateOccupancyAgreementRequest

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"}