SmartGare
API referenceEndpoints

Read an occupancy agreement

Returns signed terms, dated status and fee versions applicable on as_of, today when omitted. **Required permission:** `referential.occupancy-agreement:read`

GET/referential/v1/occupancy-agreements/{id}

Returns signed terms, dated status and fee versions applicable on as_of, today when omitted.

Required permission: referential.occupancy-agreement:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Query Parameters

as_of?string
Formatdate

Response Body

*/*

curl -X GET "https://example.com/referential/v1/occupancy-agreements/string"
{  "agreement": {    "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"  },  "as_of": "2019-08-24",  "fees": [    {      "effective_end": "2019-08-24",      "fee": {        "created_at": "2019-08-24T14:15:22Z",        "fee_kind_id": "string",        "id": "string",        "occupancy_agreement_id": "string",        "station_id": "string"      },      "in_force": true,      "version": {        "amount": 0,        "created_at": "2019-08-24T14:15:22Z",        "currency": "string",        "due_on": "2019-08-24",        "effective_from": "2019-08-24",        "fee_id": "string",        "id": "string",        "period_end": "2019-08-24",        "period_start": "2019-08-24",        "recorded_at": "2019-08-24T14:15:22Z",        "recorded_by": "string",        "rhythm": "ONE_OFF"      }    }  ],  "status": "string"}