diff --git a/public/docs/preorder-api.yaml b/public/docs/preorder-api.yaml index edad69279..c4c166e3f 100644 --- a/public/docs/preorder-api.yaml +++ b/public/docs/preorder-api.yaml @@ -523,6 +523,44 @@ paths: description: Unauthorized '404': description: Vorbestellung nicht gefunden + delete: + tags: + - preorder + summary: Bestellung stornieren/kündigen + description: Erstellt einen Storno Request + operationId: cancelPreorder + parameters: + - name: code + in: path + description: code der Vorbestellung oder OAID der Wohneinheit + required: true + schema: + type: string + responses: + '200': + description: Successful operation + content: + application/json: + schema: + type: object + properties: + status: + type: string + description: Status string + example: OK + result: + type: object + properties: + message: + type: string + description: Statustext + example: Cancellation request submited + '401': + description: Unauthorized + '403': + description: Keine Berechtigung oder Storno Request bereits vorhanden + '404': + description: Bestellung nicht gefunden oder bereits storniert components: schemas: Zips: