Test Data
For your convenience, we provide test data you can use to verify your integration end-to-end.
Download
Sample Test Data
Test Data with Email
| EventId | Expected Response | |
|---|---|---|
68da919c6837407211b64db5 | lindsey@govotr.com | Vote now URL generated successfully |
68cbe3fc76a057049a2cf7b4 | maham@govotr.com | Vote now URL generated successfully |
68cbe3fc76a057049a2cf7b4 | hamza@govotr.com | Email not found for this event |
68cbe3fc76a057049a2cf7b4 | affan@govotr.com | Vote now URL generated successfully |
68cbe68876a057049a2cf945 | maham@govotr.com | Vote now URL generated successfully |
68cbe68876a057049a2cf945 | hamza@govotr.com | Email not found for this event |
68cbe68876a057049a2cf945 | affan@govotr.com | Vote now URL generated successfully |
68cbe7dd76a057049a2cfa79 | Any email | Voting period has ended |
Test Data with Account Number
| EventId | Account Number | Expected Response |
|---|---|---|
68da919c6837407211b64db5 | ACC001234567890 | Vote now URL generated successfully |
68cbe3fc76a057049a2cf7b4 | 34646800 | Vote now URL generated successfully |
68cbe3fc76a057049a2cf7b4 | 34646819 | Account not found for this event |
68cbe3fc76a057049a2cf7b4 | 64410242 | Vote now URL generated successfully |
68cbe68876a057049a2cf945 | 79818786 | Vote now URL generated successfully |
68cbe68876a057049a2cf945 | 12450920 | Account not found for this event |
68cbe68876a057049a2cf945 | 24449208 | Vote now URL generated successfully |
68cbe7dd76a057049a2cfa79 | Any account number | Voting period has ended |
How to Use Test Data
- Copy an
EventIdfrom the table above. - Use the corresponding email or account number for testing.
- Call the Voting URL API with these parameters.
- 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.
:::