Save Quadratic Credit Pricing
Replace the event's quadratic credit pricing. One entry per quadratic position, all in one currency the linked payment business supports. A ratio entry needs amountPerCredit, minimumPurchaseCredits, and maximumPurchaseCredits and no tiers. A tiers entry needs tiers and none of the ratio fields. Rule violations return 422.
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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
pricesarray<object>required
One entry per quadratic position. Replaces the existing set.
- Items:
1 to 100 items
Response Body
application/json
application/json
curl -X PUT "https://example.com/voting-events/string/pricing/quadratic-credits" \ -H "User-Agent: my-app/1.0" \ -H "Content-Type: application/json" \ -d '{ "prices": [ { "positionId": "string", "pricingModel": "ratio", "currency": "str" } ] }'{
"data": {
"prices": [
{
"id": "string",
"positionId": "string",
"pricingModel": "ratio",
"currency": "string",
"amountPerCredit": 0,
"minimumPurchaseCredits": 0,
"maximumPurchaseCredits": 0,
"tiers": [
{
"id": "string",
"creditAmount": 0,
"amount": 0,
"label": "string"
}
]
}
]
}
}{
"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