Skip to content
Aller au contenu
Charitips

Giving for business customers: donations with the Charitips API

A SaaS offers giving to its business customers: each gets its own Charitips account, campaign and dashboard, created and billed by the SaaS or by them.

  • Who paysYour business customers
  • Starts withEach business customer's own campaigns
  • Tax receiptIn each business customer's name

Needs API access and the account hierarchy feature on a validated account. Plans

One variant of Donations for your business customers · Software and apps

Each business customer runs its own campaigns

See every variant
Device
Charities shown as
Outline widget
your-platform.example/settings/giving

your-platform.example/settings/giving

Step by step

Click through the site. Each step shows what your customer does, what your server sends and what Charitips answers.

  1. 1Giving set up

    To come

    Your customer does…

    Clicks “Turn on giving”.

    Your server sends…

    Creates an account for your customer “Blue Fern Studio”.

    POSTcreate-child-account

    Saves the charities you offer, as “Team charities”, on your customer's account.

    POSTcreate-charities-selection

    Creates the campaign “Team kudos”, on your customer's account.

    POSTcreate-campaign

    Asks for a link to your customer's billing page.

    POSTcreate-shareable-billing-link

    Charitips answers…

    Charitips creates the account and returns its id.

    Charitips saves the selection and returns its id.

    Charitips creates the campaign and returns its id.

    Charitips returns the link to send.

    Charitips will then tell your server the campaign was created.

  2. 2Campaign live

    To come

    Your customer does…

    Clicks “Card saved”.

    Your server sends…

    Starts the campaign.

    POSTactivate-campaign

    Charitips answers…

    The campaign is live and takes donations.

    Charitips will then tell your server the campaign changed.

  3. 3Colleague thanked

    To come

    Your customer does…

    Clicks “Send kudos with 10 €”.

    Your server sends…

    Creates a 10 € donation for kudos #5120 on your campaign.

    POSTcreate-donation

    Charitips answers…

    Charitips records the donation and returns its id: it waits for your customer to pick a charity.

    Charitips will then tell your server the donation was created.

  4. 4Colleague chose a charity

    To come

    Your customer does…

    Clicks “Give 10 €”.

    Your server sends…

    Assigns that donation to the charity your customer picks.

    POSTclaim-donation

    Charitips answers…

    The donation now goes to the charity your customer picks.

    Charitips will then tell your server the donation was updated.

  5. 5Dashboard opened

    To come

    Your customer does…

    Clicks “Open the giving dashboard”.

    Your server sends…

    Looks up the dashboard user of your customer's account.

    GETlist-users

    Asks for a sign-in link for that user.

    POSTcreate-user-magic-link

    Charitips answers…

    Charitips returns the user created with the account, and its id.

    Charitips returns a one-time sign-in link.

How to read this demo: the site shows what your customer does, and the panel what your server sends and what Charitips answers, step by step.

Build spec

The site is made up and nothing is sent. The endpoints, fields and webhook events are the real ones, and so are the charities.

How it works

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

  1. 01

    Turn on giving for your team

    Your platform creates the customer's own Charitips account, its selection and its campaign from the details it already has, then a link to the Charitips billing page of that account.

    • Company: Blue Fern Studio
    • Billing address: Lyon, France

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

    Your server calls:

    Charitips then sends the campaign_create webhook to your endpoint.

  2. 02

    Send the billing link to whoever pays

    The admin forwards the Charitips billing link to whoever pays, who saves a card or a SEPA mandate. The paymentmethod_create webhook tells your server, which activates the campaign and updates the page; your platform reminds the payer after three days.

    Button: Card saved

    Your server calls:

    Charitips then sends the campaign_update webhook to your endpoint.

  3. 03

    Thank a colleague with 10 €

    The sender writes the kudos and picks the amount, within the monthly budget your platform enforces per person. The donation goes out without a charity: the colleague who is thanked chooses it.

    Button: Send kudos with 10 €

    Your server calls:

    • POST /v1/donationsCreate a donation: on the customer's campaign, without charityId: the colleague chooses; amount in cents

    Charitips then sends the donation_create webhook to your endpoint.

  4. 04

    Nora chooses where the 10 € go

    The thanked colleague opens the kudos and picks the charity: two people engaged by one kudos. Without a choice, the donation still goes to one of the team's charities.

    The customer picks a charity from your selection. Button: Give 10 €

    Your server calls:

    Charitips then sends the donation_update webhook to your endpoint.

  5. 05

    Your giving dashboard

    The admin lands in the Charitips dashboard of their own account, signed in by the link. Creating the child account also created a dashboard user for its contact, so your server only reads that user's id.

    Button: Open the giving dashboard

    Your server calls:

Other ways to run it