Skip to main content

Validate Scan

Validate a scan attempt for a ticket.

Endpoint

POST /v1/validate

Description

This endpoint validates a scan attempt for a ticket. It checks if the ticket is valid and can be used for entry.

Request

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
X-Session-IdstringYesSession ID from the session endpoint

Body

NameTypeRequiredDescription
tokenstringYesThe ticket token to validate
eventIdstringYesThe ID of the event

Response

200 OK

{
"valid": true,
"message": "Ticket is valid for entry"
}

Error Responses

Status CodeDescription
400Invalid request parameters
401Unauthorized
403Invalid or expired session
404Ticket not found
409Ticket already used
500Internal server error