# Document expired

Our system sends the "Document expired" callback when a previously verified applicant's document has expired.

The callback must be enabled in the form's settings in the Dashboard before use.

## Schema

```json
{
  "$ref": "#/components/schemas/document-expired-api",
  "components": {
    "schemas": {
      "document_id": {
        "title": "Document ID",
        "type": "string",
        "minLength": 36,
        "maxLength": 36,
        "example": "da0ebf0ade0bfad0ebf0adeb0fade0bfad0e",
        "description": "A unique identifier of a document, that is assigned by our system after a document object was created with a “Create a document” request"
      },
      "applicant_id": {
        "title": "Applicant ID",
        "type": "string",
        "minLength": 36,
        "maxLength": 36,
        "example": "da0ebf0ade0bfad0ebf0adeb0fade0bfad0e",
        "description": "A unique identifier of an applicant, that is assigned by our system after an applicant object was created with a “Create an applicant” request"
      },
      "external_applicant_id": {
        "title": "External applicant ID",
        "type": [
          "string",
          "null"
        ],
        "minLength": 0,
        "maxLength": 50,
        "example": "ad0ebf0a-de0b-fad0-ebf0-adeb0fade0bf",
        "description": "A unique identifier of your user in your system"
      },
      "verification_id": {
        "title": "Verification ID",
        "type": [
          "string",
          "null"
        ],
        "minLength": 36,
        "maxLength": 36,
        "example": "da0ebf0ade0bfad0ebf0adeb0fade0bfad0e",
        "description": "A unique identifier for a verification, assigned by our system after a verification is created using the “Create a verification\" request"
      },
      "document-expired-api": {
        "type": "object",
        "title": "DOCUMENT_EXPIRED",
        "properties": {
          "type": {
            "type": "string",
            "example": "DOCUMENT_EXPIRED"
          },
          "document_id": {
            "$ref": "#/components/schemas/document_id"
          },
          "applicant_id": {
            "$ref": "#/components/schemas/applicant_id"
          },
          "external_applicant_id": {
            "$ref": "#/components/schemas/external_applicant_id"
          },
          "verification_id": {
            "$ref": "#/components/schemas/verification_id"
          }
        }
      }
    }
  }
}
```

## Example

```
{
    "type": "DOCUMENT_EXPIRED",
    "document_id": "{document_id}",
    "applicant_id": "{applicant_id}",
    "external_applicant_id": "{external_applicant_id}",
    "verification_id": "{verification_id}"
}
```