---
title: "Mobility wallet: donations with the Charitips API"
description: "A mobility app rounds each journey up to the next euro and gives the cents to the charity the rider saved."
canonical: https://www.charitips.com/docs/use-cases/round-up/transit-wallet
---

# Mobility wallet: donations with the Charitips API

> A mobility app rounds each journey up to the next euro and gives the cents to the charity the rider saved. The rider pays the round-ups; a refunded trip deletes its round-up.

- **Use case**: [Round-up on every payment](https://www.charitips.com/docs/use-cases/round-up.md)
- **Sector**: Travel and mobility
- **Who pays**: Your users, with their own money
- **What starts the donation**: A purchase
- **Example**: Each journey rounded up to the next euro
- **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/transit-wallet.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": "Transit 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": "Transit 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. Turn on round-ups

The customer picks a charity, a multiplier and a monthly cap, and agrees to pay the round-ups. Your app saves it on its side. Nothing is sent to Charitips yet.

- The customer picks a charity from your selection.
- Button: Turn on

No call: this screen only shows the result.

### 2. Journey payment rounded up

Every journey payment is rounded up on its own, with no confirmation. Your server charges the round-up with the payment, then records the donation in the customer's name: one fiscal receipt a year, and in France 66 % of the donation comes off their income tax.

- Bike share, 32 min: 2,30 €
- Round-up for the charity: 0,70 €
- **Charged to the pass: 3,00 €**
- Button: Simulate a journey payment

**Your server calls:**

- [`POST /v1/donations`](https://www.charitips.com/docs/api-reference/create-donation.md) Create a donation: for each rounded payment, once the customer is charged; amount in cents, after the multiplier and the cap; hasBeenCharged puts the receipt in the customer's name

  ```json
  {
    "campaignId": "<campaignId>",
    "amount": 70,
    "uniqueExternalId": "transaction_51201",
    "externalId": "rider_3307",
    "charityId": "<charityId>",
    "hasBeenCharged": true,
    "withFiscalReceipt": true,
    "donor": {
      "firstName": "Camille",
      "lastName": "Martin",
      "email": "camille.martin@example.com",
      "street": "12 rue des Lilas",
      "zip": "75011",
      "city": "Paris",
      "country": "FR"
    }
  }
  ```

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

### 3. Refund received

The merchant refunds the payment: your server deletes its round-up, as long as it is not billed yet.

- Button: Simulate a refund

**Your server calls:**

- [`DELETE /v1/donations/{donationId}`](https://www.charitips.com/docs/api-reference/delete-donation.md) Delete a donation: donationId kept with the transaction; 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
- [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
- [Restaurant self-order kiosk](https://www.charitips.com/docs/use-cases/round-up/self-order-kiosk.md) (Hotels and restaurants): The bill rounded up to the next euro at the kiosk
- [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)
