---
title: "Real-world mission validated: donations with the Charitips API"
description: "A field missions app turns a mission's 5 € reward into a donation. An interactive demo of the Charitips donation API, with its calls."
canonical: https://www.charitips.com/docs/use-cases/validated-reward/irl-mission
---

# Real-world mission validated: donations with the Charitips API

> A field missions app turns a mission's 5 € reward into a donation. The worker completes the mission and picks the charity; the ops team validates the report, the app pays.

- **Use case**: [A reward validated later](https://www.charitips.com/docs/use-cases/validated-reward.md)
- **Sector**: Professional services
- **Who pays**: Your company
- **What starts the donation**: A customer action
- **Example**: 5 € per mission validated by the ops team
- **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), [`POST /v1/donations/{donationId}/claim`](https://www.charitips.com/docs/api-reference/claim-donation.md), [`POST /v1/donations/{donationId}/validate`](https://www.charitips.com/docs/api-reference/validate-donation.md)
- **Webhooks**: `donation_create`, `donation_update`

Interactive demo on the page. The same flow as a build spec: https://www.charitips.com/docs/demos/validation/irl-mission.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": "Mission rewards",
    "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": "Mission rewards",
    "charitiesSelectionId": "<charitiesSelectionId>",
    "type": "PERMANENT",
    "amountType": "FREE_AMOUNT",
    "withDonationsValidation": true,
    "donationsBilledOn": "CLAIM"
  }
  ```
- [`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 report is sent

- Button: Send the report

**Your server calls:**

- [`POST /v1/donations`](https://www.charitips.com/docs/api-reference/create-donation.md) Create a donation: from your server, when it happens; amount in cents

  ```json
  {
    "campaignId": "<campaignId>",
    "amount": 500,
    "uniqueExternalId": "mission_7731_report",
    "externalId": "member_5521"
  }
  ```

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

### 2. When the charity is chosen

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

**Your server calls:**

- [`POST /v1/donations/{donationId}/claim`](https://www.charitips.com/docs/api-reference/claim-donation.md) Claim a donation: donationId from the create-donation response

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

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

### 3. When the mission is validated

- Button: Validate: 5 €

**Your server calls:**

- [`POST /v1/donations/{donationId}/validate`](https://www.charitips.com/docs/api-reference/validate-donation.md) Validate a donation: once your team has checked it; donationId from the create-donation response

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

## Other ways to run it

- [Bug bounty](https://www.charitips.com/docs/use-cases/validated-reward/bug-bounty.md) (Software and apps): 5 € to 5 000 € by severity, set at validation
- [Employee referral bonus](https://www.charitips.com/docs/use-cases/validated-reward/hiring-referral.md) (Professional services): 50 € once the hire passes the trial period
- [Bottles returned by post](https://www.charitips.com/docs/use-cases/validated-reward/bottle-return.md) (Health and sport): 0,50 € per bottle received and checked
- [Health goal validated](https://www.charitips.com/docs/use-cases/validated-reward/health-goal.md) (Banking and insurance): 20 € per goal validated by a doctor
- [Appointment kept](https://www.charitips.com/docs/use-cases/validated-reward/appointment-kept.md) (Software and apps): 0,20 € per confirmed reminder, +50 % if on time
- [Full guide: edge cases, webhooks, receipts](https://www.charitips.com/docs/use-cases/validated-reward.md)
- [All use cases](https://www.charitips.com/docs/use-cases.md)
