vermietungMietverhaeltnisse.holen
One tenancy with tenant (name, email, phone), apartment, period, amount and status, plus the ids of apartment, request and offer, the Stripe payment (paymentIntentId), storniertAm and createdAt. A tenancy of another tenant or an unknown one results in NOT_FOUND. Owner of a rental tenant only. Read-only query.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
wohnung | string | yes | |
name | string | yes | |
email | string | yes | |
telefon | string · nullable | yes | |
einzug | string | yes | |
auszug | string | yes | |
betragCents | integer | yes | |
status | enum | yes | One of: bestaetigt, storniert |
wohnungId | string | yes | |
anfrageId | string | yes | |
angebotId | string | yes | |
paymentIntentId | string | yes | |
storniertAm | string · nullable | yes | |
createdAt | string | yes |
vermietungMietverhaeltnisse.liste
The tenancies (paid rents), sorted by move-in (at most 500): id, wohnung (title), name, email, telefon, einzug and auszug (YYYY-MM-DD, auszug = last day of the tenancy), betragCents (first payment) and status (bestaetigt, storniert). With ab (YYYY-MM-DD) only those whose move-out is on or after that day. Owner of a rental tenant only. Read-only query.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
ab | string | no |
Output fields
Returns array of object. Fields of each element:
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
wohnung | string | yes | |
name | string | yes | |
email | string | yes | |
telefon | string · nullable | yes | |
einzug | string | yes | |
auszug | string | yes | |
betragCents | integer | yes | |
status | enum | yes | One of: bestaetigt, storniert |
vermietungMietverhaeltnisse.stornieren
Cancels a confirmed tenancy (grund: 1 to 500 characters, one line): status storniert, the blocked nights of the apartment become free, the request is cancelled. Foyer refunds NOTHING — hinweis says the refund has to be issued in Stripe. An already cancelled tenancy results in CONFLICT, one of another tenant or an unknown one in NOT_FOUND. Owner of a rental tenant only. Changes data. Mutation — changes data.
Input parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
grund | string | yes |
Output fields
| Field | Type | Required | Notes |
|---|---|---|---|
ok | literal | yes | One of: true |
hinweis | string | yes |