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
Name | Type | Required | Description |
---|---|---|---|
Authorization | string | Yes | Bearer token for authentication |
X-Session-Id | string | Yes | Session ID from the session endpoint |
Body
Name | Type | Required | Description |
---|---|---|---|
token | string | Yes | The ticket token to validate |
eventId | string | Yes | The ID of the event |
Response
200 OK
{
"valid": true,
"message": "Ticket is valid for entry"
}
Error Responses
Status Code | Description |
---|---|
400 | Invalid request parameters |
401 | Unauthorized |
403 | Invalid or expired session |
404 | Ticket not found |
409 | Ticket already used |
500 | Internal server error |