---
title: "Restaurant self-order kiosk: donations with the Charitips API"
description: "A restaurant's self-order kiosk offers to round the bill up to the next euro before payment."
canonical: https://www.charitips.com/docs/use-cases/round-up/self-order-kiosk
---

# Restaurant self-order kiosk: donations with the Charitips API

> A restaurant's self-order kiosk offers to round the bill up to the next euro before payment. The customer picks the charity and pays the difference with the meal.

- **Use case**: [Round-up on every payment](https://www.charitips.com/docs/use-cases/round-up.md)
- **Sector**: Hotels and restaurants
- **Who pays**: Your users, with their own money
- **What starts the donation**: A purchase
- **Example**: The bill rounded up to the next euro at the kiosk
- **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/donations`](https://www.charitips.com/docs/api-reference/create-donation.md), [`DELETE /v1/donations/{donationId}`](https://www.charitips.com/docs/api-reference/delete-donation.md)
- **Webhooks**: `donation_create`

Interactive demo on the page. The same flow as a build spec: https://www.charitips.com/docs/demos/round-up/self-order-kiosk.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": "Kiosk round-up charities",
    "charityIds": [
      "<charityId>"
    ]
  }
  ```
- [`POST /v1/campaigns`](https://www.charitips.com/docs/api-reference/create-campaign.md) Create a campaign: once: the campaign, on an account with the B2C use case

  ```json
  {
    "name": "Kiosk round-ups",
    "charitiesSelectionId": "<charitiesSelectionId>"
  }
  ```
- [`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. Round up the bill

Before payment, the kiosk offers to round the bill up to the next euro. The customer picks a charity in the widget and accepts. Your kiosk keeps it with the order. Nothing is sent to Charitips yet.

- The customer picks a charity from your selection.
- Button: Round up for the chosen charity

No call: this screen only shows the result.

### 2. Bill paid with its round-up

The customer pays the meal and the round-up in one card payment. Your server then records the donation as paid by the customer.

- Your order: 14,60 €
- Round-up for the charity: 0,40 €
- **Charged to the card: 15,00 €**
- Button: Simulate a card payment

**Your server calls:**

- [`POST /v1/donations`](https://www.charitips.com/docs/api-reference/create-donation.md) Create a donation: once the card payment is accepted, from your till or payment server; amount in cents; with no donor, withFiscalReceipt is false

  ```json
  {
    "campaignId": "<campaignId>",
    "amount": 40,
    "uniqueExternalId": "order_31248",
    "charityId": "<charityId>",
    "hasBeenCharged": true,
    "withFiscalReceipt": false
  }
  ```

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

### 3. Order canceled at the counter

The counter cancels and refunds the order: your server deletes its round-up, as long as it is not billed yet.

- Button: Simulate a cancellation at the counter

**Your server calls:**

- [`DELETE /v1/donations/{donationId}`](https://www.charitips.com/docs/api-reference/delete-donation.md) Delete a donation: donationId kept with the order; only before the monthly bill

## Other ways to run it

- [Bank card payments](https://www.charitips.com/docs/use-cases/round-up/bank-card.md) (Banking and insurance): Each card payment rounded up to the next euro
- [Festival cashless wallet](https://www.charitips.com/docs/use-cases/round-up/festival-wallet.md) (Culture and events): Each wristband payment rounded up to the next euro
- [Mobility wallet](https://www.charitips.com/docs/use-cases/round-up/transit-wallet.md) (Travel and mobility): Each journey rounded up to the next euro
- [Online store checkout](https://www.charitips.com/docs/use-cases/round-up/online-checkout.md) (Retail): The order total rounded up to the next euro
- [Full guide: edge cases, webhooks, receipts](https://www.charitips.com/docs/use-cases/round-up.md)
- [All use cases](https://www.charitips.com/docs/use-cases.md)
