---
title: "Visitors vote at an exhibition: donations with the Charitips API"
description: "A museum funds a pot of 1 € per ticket for an exhibition. An interactive demo of the Charitips donation API, with its calls."
canonical: https://www.charitips.com/docs/use-cases/vote-on-a-budget/exhibition-ballot
---

# Visitors vote at an exhibition: donations with the Charitips API

> A museum funds a pot of 1 € per ticket for an exhibition. Each ticket is one vote on a screen at the exit; the pot is split by the votes when the exhibition closes.

- **Use case**: [Customers vote on a budget](https://www.charitips.com/docs/use-cases/vote-on-a-budget.md)
- **Sector**: Culture and events
- **Who pays**: Your company
- **What starts the donation**: A customer action
- **Example**: 1 € per ticket, split by the votes
- **Calls**: [`POST /v1/charities-selections`](https://www.charitips.com/docs/api-reference/create-charities-selection.md), [`POST /v1/campaigns`](https://www.charitips.com/docs/api-reference/create-campaign.md), [`POST /v1/campaigns/{campaignId}/activate`](https://www.charitips.com/docs/api-reference/activate-campaign.md), [`POST /v1/votes`](https://www.charitips.com/docs/api-reference/create-vote.md), [`POST /v1/votes/{voteId}/cast`](https://www.charitips.com/docs/api-reference/cast-vote.md)
- **Webhooks**: `vote_create`, `vote_update`

Interactive demo on the page. The same flow as a build spec: https://www.charitips.com/docs/demos/vote/exhibition-ballot.md

## How it works

The screens of the demo in order, with the calls your server makes at each one.

### Once, before the first customer

- [`POST /v1/charities-selections`](https://www.charitips.com/docs/api-reference/create-charities-selection.md) Create a charities selection: once: the charities you offer, from the catalog

  ```json
  {
    "name": "Oceans exhibition vote",
    "charityIds": [
      "<charityId>"
    ]
  }
  ```
- [`POST /v1/campaigns`](https://www.charitips.com/docs/api-reference/create-campaign.md) Create a campaign: once: the campaign the donations go to

  ```json
  {
    "name": "Oceans exhibition vote",
    "charitiesSelectionId": "<charitiesSelectionId>",
    "type": "TIME_BASED",
    "endDate": "2027-01-14",
    "amountType": "FIXED_AMOUNT",
    "donationType": "DISTRIBUTION",
    "budget": 1200000
  }
  ```
- [`POST /v1/campaigns/{campaignId}/activate`](https://www.charitips.com/docs/api-reference/activate-campaign.md) Activate a campaign: once: the campaign starts taking donations

### 1. When the ticket is scanned

- Button: Scan my ticket

**Your server calls:**

- [`POST /v1/votes`](https://www.charitips.com/docs/api-reference/create-vote.md) Create a vote: one vote per person; weight is how much it counts

  ```json
  {
    "campaignId": "<campaignId>",
    "weight": 1,
    "uniqueExternalId": "ticket_2026_10_18_0457",
    "externalId": "visitor_0457"
  }
  ```

Charitips then sends the `vote_create` webhook to your endpoint.

### 2. When the visitor votes

- The customer picks a charity from your selection.
- Button: Choose the charity

**Your server calls:**

- [`POST /v1/votes/{voteId}/cast`](https://www.charitips.com/docs/api-reference/cast-vote.md) Cast a vote: voteId from the create-vote response

  ```json
  {
    "charityId": "<charityId>"
  }
  ```

Charitips then sends the `vote_update` webhook to your endpoint.

## Other ways to run it

- [Customers vote on a budget](https://www.charitips.com/docs/use-cases/vote-on-a-budget/budget-vote.md) (Retail): A yearly budget split by the votes
- [The tournament winner picks](https://www.charitips.com/docs/use-cases/vote-on-a-budget/tournament-winner.md) (Software and apps): 2 € per entry, the winner picks the charity
- [Collective adoption goal](https://www.charitips.com/docs/use-cases/vote-on-a-budget/adoption-goal.md) (Software and apps): 0,50 € per user, paid once the goal is reached
- [Poll after a webinar](https://www.charitips.com/docs/use-cases/vote-on-a-budget/webinar-poll.md) (Education): 5 % of each ticket, the attendees choose
- [Full guide: edge cases, webhooks, receipts](https://www.charitips.com/docs/use-cases/vote-on-a-budget.md)
- [All use cases](https://www.charitips.com/docs/use-cases.md)
