Get Payment Attempt
One payment attempt on the event. Poll it after a 402 from a public cast, register, or checkout call to learn whether the payer completed checkout.
Authorization
bearerAuth AuthorizationBearer <token>
A key in the form pepvote_api_ followed by 32 hexadecimal characters.
In: header
Header Parameters
User-Agentstringrequired
Name and version of the calling integration. Required on every request.
Path Parameters
idOrCodestringrequired
Voting event ID or code.
idstringrequired
ID of the record.
Response Body
application/json
application/json
curl -X GET "https://example.com/voting-events/string/payments/string" \ -H "User-Agent: my-app/1.0"{
"data": {
"id": "string",
"votingEventId": "string",
"purpose": "candidate_registration",
"status": "created",
"provider": "stripe",
"amountMinor": 0,
"currency": "string",
"confirmationCode": "string",
"createdAt": 0,
"updatedAt": 0
}
}{
"error": {
"code": "bad_request",
"message": "string",
"details": {
"field": "string",
"parameter": "string",
"limit": 0,
"retryAfterSeconds": 0,
"feature": "string",
"plan": "string"
}
}
}Was this helpful?
Last updated September 6, 2026