Skip to main content

Test Data

For your convenience, we provide test data you can use to verify your integration end-to-end.

Download

Download the Test Data PDF

Sample Test Data

Test Data with Email

EventIdEmailExpected Response
68da919c6837407211b64db5lindsey@govotr.comVote now URL generated successfully
68cbe3fc76a057049a2cf7b4maham@govotr.comVote now URL generated successfully
68cbe3fc76a057049a2cf7b4hamza@govotr.comEmail not found for this event
68cbe3fc76a057049a2cf7b4affan@govotr.comVote now URL generated successfully
68cbe68876a057049a2cf945maham@govotr.comVote now URL generated successfully
68cbe68876a057049a2cf945hamza@govotr.comEmail not found for this event
68cbe68876a057049a2cf945affan@govotr.comVote now URL generated successfully
68cbe7dd76a057049a2cfa79Any emailVoting period has ended

Test Data with Account Number

EventIdAccount NumberExpected Response
68da919c6837407211b64db5ACC001234567890Vote now URL generated successfully
68cbe3fc76a057049a2cf7b434646800Vote now URL generated successfully
68cbe3fc76a057049a2cf7b434646819Account not found for this event
68cbe3fc76a057049a2cf7b464410242Vote now URL generated successfully
68cbe68876a057049a2cf94579818786Vote now URL generated successfully
68cbe68876a057049a2cf94512450920Account not found for this event
68cbe68876a057049a2cf94524449208Vote now URL generated successfully
68cbe7dd76a057049a2cfa79Any account numberVoting period has ended

How to Use Test Data

  1. Copy an EventId from the table above.
  2. Use the corresponding email or account number for testing.
  3. Call the Voting URL API with these parameters.
  4. Verify the response matches the expected result.

Example call with email (deprecated endpoint)

curl -X POST "https://api-dev.govotr.com/api/v1/ballot/by-email" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"eventId": "68cbe3fc76a057049a2cf7b4",
"email": "maham@govotr.com"
}'

Example call with account number (deprecated endpoint)

curl -X POST "https://api-dev.govotr.com/api/v1/ballot/by-email" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"eventId": "68cbe3fc76a057049a2cf7b4",
"accountNo": "34646800"
}'

Expected response

{
"message": "Data retrieved successfully",
"status": true,
"data": {
"url": "https://vote.govotr.com/public-voting-screen?id=..."
}
}

:::tip Use the recommended endpoint The deprecated /ballot/by-email endpoint is shown above for parity with legacy integrations. New integrations should call GET /api/v1/events/{eventId}/ballot — see the Voting reference. :::