---
title: "Employee referral bonus: donations with the Charitips API"
description: "A company adds 50 € for a charity on top of each employee referral bonus."
canonical: https://www.charitips.com/docs/use-cases/validated-reward/hiring-referral
---

# Employee referral bonus: donations with the Charitips API

> A company adds 50 € for a charity on top of each employee referral bonus. The employee picks the charity when the hire is made; HR validates after the probation period.

- **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**: 50 € once the hire passes the trial period
- **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/hiring-referral.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": "Your HR portal",
    "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": "Your HR portal",
    "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. On hiring

- Button: Confirm the hire

**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": 5000,
    "uniqueExternalId": "hire_2026_0087",
    "externalId": "employee_318"
  }
  ```

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. At the end of the probation period

- Button: Validate the referral

**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
- [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
- [Real-world mission validated](https://www.charitips.com/docs/use-cases/validated-reward/irl-mission.md) (Professional services): 5 € per mission validated by the ops team
- [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)
