Cancel a session or verification
Stops a session the applicant is part-way through, or a verification still being processed. The status becomes cancelled. While cancelled, the applicant cannot continue or start over. It can be reversed with uncancel.
Error codes
Requires a secret (sk_) key. A publishable key receives 403 secret_key_required.
Authentication
AuthorizationBearer
Send the API key as a Bearer token. Each operation states whether a publishable key is enough or a secret key is required.
Path parameters
sessionId
The session identifier. For cancel and uncancel, a verification identifier works too.
Request
This endpoint expects an object.
reason
Why. Kept internally and never sent to webhooks.
Response
The session or verification after the cancel.
id
The session or verification identifier.
kind
attempt for a session not yet submitted, verification for a submitted one.
Allowed values:
status
The top-line status now.
previousStatus
The top-line status before the change, from the same vocabulary as status.
changed
False when the call changed nothing, for example a repeat of an earlier cancel.
refunded
Whether a reserved charge was released. A verification whose checks had begun is not refunded.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error