Get a Checkout Session
Your secret API key: dfl_live_… in production, dfl_test_… in the Sandbox.
In: header
Path Parameters
^cs_[0-9A-Za-z]{22}$Response Body
curl -X GET "https://sandbox.api.getdaffodil.com/v1/checkout_sessions/cs_5vl0KYPG4EdFiuWW0Ypu0Z"{
"id": "cs_5vl0KYPG4EdFiuWW0Ypu0Z",
"url": "https://mission.mydaffodil.app/checkout/cs_5vl0KYPG4EdFiuWW0Ypu0Z",
"status": "open",
"fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
"campaign_id": null,
"donor_id": "donor_0uwRQyfMSvamIzgNByaoYN",
"amount": 25000,
"currency": "USD",
"fee_coverage": "optional",
"impact_tip": false,
"success_url": "https://app.example.com/give/thanks",
"cancel_url": "https://app.example.com/give",
"client_reference_id": "ac_ref_7731",
"metadata": {
"member_tier": "gold"
},
"contribution_id": null,
"expires_at": "2026-11-12T21:42:00Z",
"created_at": "2026-11-11T21:42:00Z"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"param": "string",
"request_id": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"param": "string",
"request_id": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"param": "string",
"request_id": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"param": "string",
"request_id": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"param": "string",
"request_id": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"param": "string",
"request_id": "string"
}Create a Checkout Session POST
Creates a single-use Daffodil Checkout page for a Fund or a Campaign and returns its `url`. Redirect the payer there, or frame it from an origin your Account registered. The session expires after 24 hours if unpaid. With a `donor_id`, the Donor pays into a Fund they advise; any other `donor_id` is refused with 409 `donor_not_advisor`. Without one, the payer is a Public contributor: the page asks for their legal name, email, and billing address, lets them stay anonymous and leave a message, and takes card, ACH, or a wallet such as Apple Pay or Google Pay. A Campaign session pays into the Campaign’s Fund and needs a `live` Campaign that has not ended. A Public contributor can pay into a Personal fund, directly or through its Campaign, only when your Account has Personal fund campaigns (403 `personal_fund_campaigns_not_enabled` otherwise). The sponsor emails a Public contributor their receipt once the Contribution succeeds.
Give from a Fund to a Campaign POST
An Advisor gives from their Fund to a live Campaign. The source Fund gets a `transfer_out` Ledger entry and the Campaign’s Fund a `contribution` entry, and `contribution.created` and `contribution.succeeded` follow. No tax receipt is issued, and the Contribution is left out of the Donor’s annual tax report, since the money was already receipted when it entered the Fund. A retry with the same `Idempotency-Key` returns the same Contribution and never moves the money twice. Refused with 409 `donor_not_advisor` when the Donor does not advise the source Fund, `campaign_own_fund` when the Campaign raises into the source Fund, `insufficient_funds` when the source Fund’s `available_balance` is short of `amount`, and `fund_negative` while the source Fund’s `balance` is below zero. A Campaign that is not live, or an amount under the sponsor’s minimum grant, is 400 `invalid_request`.