Expired documents are not allowed by default when supplied for the `document_scan` task. It is possible to change this behavior by providing the `allowedExpiration` setting. A positive number allows a document to be expired for the specified number of days, a negative number requires a document to be valid for at least the specified number of days.

`POST https://api.cm.com/id-scan/v1/transactions`

**Request headers**



**Document should be valid for at least 90 days after expiration date**



**Document should be valid for at least 90 days before expiration date**