---
agentTools:
  projectIndex: https://scandoc.readme.io/llms.txt
---

# /guest/{guest_id}

The endpoint is used to delete a guest from the database

It's important to note that the guest **will not** be deleted instanly, but instead will be deleted on a downtime period. This is done so the guest can still use the services that depend on this method after he checks out, for a different use-case please contact us.

The service returns 202 status code on a success, 404 if the guest doesn't exist or 401 if the user doesn't have access to that particular guest. The UserId/SubClientId pair defined by Authorization depends if the user has access to the desired guest or not.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Guest Identification API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.scandoc.ai/cis/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/guest/{guest_id}": {
      "delete": {
        "summary": "/guest/{guest_id}",
        "description": "The endpoint is used to delete a guest from the database",
        "operationId": "guestguest_id-1",
        "parameters": [
          {
            "name": "guest_id",
            "in": "path",
            "description": "Guest id of the guest you'd like to delete",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "AcceptTermsAndConditions",
            "in": "query",
            "description": "Terms and conditions must be accepted or the service will reject the request",
            "required": true,
            "schema": {
              "type": "string",
              "default": "True"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Access token provided by the key service",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "202",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"TransactionID\": \"<transaction-uuid>\",\n  \"UploadedAt\": \"<timestamp>\",\n  \"ProductName\": f\"Guest Identification {APP_VERSION}\",\n  \"Errors\": [\"<Error1>\", ...],\n  \"Warnings\": [\"<Warning1>\", ...],\n  \"Status\": <status-code>,\n  \"InfoCode\": <info-code>,\n  \"Method\": \"GetGuest\",\n  \"UserId\": <user-id>,\n  \"SubClientId\": <sub-client-id>,\n  \"CreatedDate\": \"<timestamp>\",\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "6511de94eb250f00120ab66a:65128b0851c835006ef44918"
}
```