{
  "openapi": "3.1.0",
  "info": {
    "title": "Daffodil Platform API",
    "version": "v1",
    "description": "Grant to US nonprofits from your platform. Amounts are integer cents with a `currency`, timestamps are ISO 8601 UTC, and errors are `application/problem+json` with a stable `code`."
  },
  "servers": [
    {
      "url": "https://api.getdaffodil.com",
      "description": "Production"
    },
    {
      "url": "https://sandbox.api.getdaffodil.com",
      "description": "Sandbox"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your secret API key: `dfl_live_…` in production, `dfl_test_…` in the Sandbox."
      }
    },
    "schemas": {
      "EventType": {
        "type": "string",
        "enum": [
          "checkout_session.completed",
          "checkout_session.expired",
          "contribution.created",
          "contribution.succeeded",
          "contribution.failed",
          "contribution.reversed",
          "grant.created",
          "grant.awaiting_account",
          "grant.approved",
          "grant.sent",
          "grant.paid",
          "grant.denied",
          "grant.canceled",
          "grant.returned",
          "ledger_entry.posted",
          "campaign.created",
          "campaign.updated",
          "campaign.ended"
        ],
        "description": "The v1 Event catalog. New Event types may be added within v1; ignore types you do not handle."
      },
      "Currency": {
        "type": "string",
        "enum": [
          "USD"
        ],
        "description": "Three-letter ISO 4217 code, uppercase. Always `USD` in v1."
      },
      "FeeCoverage": {
        "type": "string",
        "enum": [
          "optional",
          "required",
          "none"
        ],
        "description": "Whether the payer covers processing fees: `optional` lets them choose, `required` adds the fees, `none` never asks."
      },
      "Metadata": {
        "type": "object",
        "description": "Up to 50 key-value pairs of your own. Keys up to 40 characters, values up to 500. Returned unchanged on the Contribution and its Events.",
        "maxProperties": 50,
        "additionalProperties": {
          "type": "string",
          "maxLength": 500
        },
        "example": {
          "member_tier": "gold"
        }
      },
      "CheckoutSession": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^cs_[0-9A-Za-z]{22}$",
            "example": "cs_5vl0KYPG4EdFiuWW0Ypu0Z"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The Daffodil Checkout page. Redirect the payer to it, or frame it from an origin your Account registered. Use it exactly as given.",
            "example": "https://mission.mydaffodil.app/checkout/cs_5vl0KYPG4EdFiuWW0Ypu0Z"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "complete",
              "expired"
            ],
            "description": "`open` until paid or expired. `complete` once paid; a session is paid at most once. `expired` 24 hours after creation if unpaid."
          },
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The Fund the money goes into. For a Campaign session, the Campaign’s Fund.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "campaign_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^camp_[0-9A-Za-z]{22}$",
            "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
          },
          "donor_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "description": "The paying Donor. Null when the payer is a Public contributor.",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "amount": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The fixed amount. Null when the payer chooses. Integer cents.",
            "example": 25000
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "fee_coverage": {
            "$ref": "#/components/schemas/FeeCoverage"
          },
          "impact_tip": {
            "type": "boolean",
            "description": "Whether the page offers Daffodil’s impact tip."
          },
          "success_url": {
            "type": "string",
            "format": "uri"
          },
          "cancel_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "client_reference_id": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 200,
            "description": "Your own reference for the intent behind this payment. Returned on the Contribution and its Events.",
            "example": "ac_ref_7731"
          },
          "metadata": {
            "$ref": "#/components/schemas/Metadata"
          },
          "contribution_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^contrib_[0-9A-Za-z]{22}$",
            "description": "The Contribution the payment created. Null until paid.",
            "example": "contrib_4jV68U95QzmwbX04gqFKu5"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When an unpaid session expires: 24 hours after creation. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the session was created. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          }
        },
        "required": [
          "id",
          "url",
          "status",
          "fund_id",
          "campaign_id",
          "donor_id",
          "amount",
          "currency",
          "fee_coverage",
          "impact_tip",
          "success_url",
          "cancel_url",
          "client_reference_id",
          "metadata",
          "contribution_id",
          "expires_at",
          "created_at"
        ],
        "description": "One payer’s single-use visit to Daffodil Checkout, the page that takes money into a Fund or a Campaign. Card data only ever touches Stripe; Daffodil Charitable is merchant of record.",
        "example": {
          "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"
        }
      },
      "CheckoutSessionEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^evt_[0-9A-Za-z]{22}$",
            "description": "Unique per Event. Also sent as the `webhook-id` header; use it to drop redeliveries.",
            "example": "evt_2qImcJpR8479lCVSUosM0S"
          },
          "type": {
            "type": "string",
            "enum": [
              "checkout_session.completed",
              "checkout_session.expired"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Event happened. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "data": {
            "type": "object",
            "properties": {
              "object": {
                "$ref": "#/components/schemas/CheckoutSession"
              }
            },
            "required": [
              "object"
            ],
            "description": "`object` is the API object exactly as the API returned it at the moment of the Event."
          }
        },
        "required": [
          "id",
          "type",
          "created_at",
          "data"
        ],
        "description": "An Event about a CheckoutSession."
      },
      "Address": {
        "type": "object",
        "properties": {
          "line1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "line2": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 200,
            "description": "Null or omitted when unused."
          },
          "city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "state": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "State, province, or region. Two-letter code in the US."
          },
          "postal_code": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20
          },
          "country": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "pattern": "^[A-Z]{2}$",
            "default": "US",
            "description": "ISO 3166-1 alpha-2 country code. Defaults to `US`."
          }
        },
        "required": [
          "line1",
          "city",
          "state",
          "postal_code"
        ],
        "example": {
          "line1": "500 Market St",
          "line2": "Apt 4",
          "city": "San Francisco",
          "state": "CA",
          "postal_code": "94105",
          "country": "US"
        }
      },
      "Contributor": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "donor",
              "public"
            ],
            "description": "`donor`: one of your Donors. `public`: a Public contributor."
          },
          "donor_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "name": {
            "type": "string",
            "description": "Legal name.",
            "example": "Jane Doe"
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email",
            "example": "jane@example.com"
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "type",
          "donor_id",
          "name",
          "email",
          "address"
        ],
        "description": "Who gave. `address` is the billing address a Public contributor gave, null for a Donor. Your Account always sees the contributor, even one who asked to stay anonymous; never show an anonymous contributor publicly."
      },
      "Contribution": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^contrib_[0-9A-Za-z]{22}$",
            "example": "contrib_4jV68U95QzmwbX04gqFKu5"
          },
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The Fund the money went into.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "campaign_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^camp_[0-9A-Za-z]{22}$",
            "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
          },
          "checkout_session_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^cs_[0-9A-Za-z]{22}$",
            "description": "The Checkout Session that took the payment, if any.",
            "example": "cs_5vl0KYPG4EdFiuWW0Ypu0Z"
          },
          "source": {
            "type": "string",
            "enum": [
              "card",
              "ach",
              "wire",
              "check",
              "stock",
              "daf_transfer",
              "fund"
            ],
            "description": "How the money came in. `fund`: given from another Fund on your Account to a Campaign."
          },
          "source_fund_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The Fund the money came from, when `source` is `fund`.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "succeeded",
              "failed",
              "reversed"
            ],
            "description": "`pending` until the money reaches the Fund. `succeeded` once its Ledger entry posts. `failed` if the payment never arrives. `reversed` if a succeeded Contribution is refunded, disputed, or returned."
          },
          "amount": {
            "type": "integer",
            "description": "What reached the Fund. Integer cents.",
            "example": 25000
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "contributor": {
            "$ref": "#/components/schemas/Contributor"
          },
          "is_anonymous": {
            "type": "boolean",
            "description": "The contributor asked to stay anonymous to the Fund’s Advisors and public displays."
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "description": "A message the contributor left."
          },
          "client_reference_id": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 200,
            "description": "Your own reference for the intent behind this payment. Returned on the Contribution and its Events.",
            "example": "ac_ref_7731"
          },
          "metadata": {
            "$ref": "#/components/schemas/Metadata"
          },
          "receipt_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "The sponsor’s tax receipt. Null until the Contribution succeeds, and always null for `source: fund`, which is not new money."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Contribution was recorded. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "succeeded_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When its Ledger entry posted. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          }
        },
        "required": [
          "id",
          "fund_id",
          "campaign_id",
          "checkout_session_id",
          "source",
          "source_fund_id",
          "status",
          "amount",
          "currency",
          "contributor",
          "is_anonymous",
          "message",
          "client_reference_id",
          "metadata",
          "receipt_url",
          "created_at",
          "succeeded_at"
        ],
        "description": "Money into a Fund, whatever its source or Campaign. Each payment is exactly one Contribution, so a Campaign Contribution is never counted twice.",
        "example": {
          "id": "contrib_4jV68U95QzmwbX04gqFKu5",
          "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "campaign_id": null,
          "checkout_session_id": "cs_5vl0KYPG4EdFiuWW0Ypu0Z",
          "source": "card",
          "source_fund_id": null,
          "status": "succeeded",
          "amount": 25000,
          "currency": "USD",
          "contributor": {
            "type": "donor",
            "donor_id": "donor_0uwRQyfMSvamIzgNByaoYN",
            "name": "Jane Doe",
            "email": "jane@example.com",
            "address": null
          },
          "is_anonymous": false,
          "message": null,
          "client_reference_id": "ac_ref_7731",
          "metadata": {
            "member_tier": "gold"
          },
          "receipt_url": "https://mission.mydaffodil.app/pub/receipts/eyJvIjoi.Hq3xY9",
          "created_at": "2026-11-11T21:42:00Z",
          "succeeded_at": "2026-11-13T15:05:00Z"
        }
      },
      "ContributionEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^evt_[0-9A-Za-z]{22}$",
            "description": "Unique per Event. Also sent as the `webhook-id` header; use it to drop redeliveries.",
            "example": "evt_2qImcJpR8479lCVSUosM0S"
          },
          "type": {
            "type": "string",
            "enum": [
              "contribution.created",
              "contribution.succeeded",
              "contribution.failed",
              "contribution.reversed"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Event happened. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "data": {
            "type": "object",
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Contribution"
              }
            },
            "required": [
              "object"
            ],
            "description": "`object` is the API object exactly as the API returned it at the moment of the Event."
          }
        },
        "required": [
          "id",
          "type",
          "created_at",
          "data"
        ],
        "description": "An Event about a Contribution."
      },
      "Nonprofit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^np_[0-9A-Za-z]{22}$",
            "description": "Daffodil nonprofit ID.",
            "example": "np_3O9F93l8HsuBKoBLX52FGS"
          },
          "ein": {
            "type": [
              "string",
              "null"
            ],
            "description": "The EIN, or null for an organization without its own.",
            "example": "12-3456789"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "Two-letter state code."
          },
          "grantable": {
            "type": "boolean",
            "description": "Whether the nonprofit can receive a Grant. False only for nonprofits Daffodil records with no US tax exemption."
          }
        },
        "required": [
          "id",
          "ein",
          "name",
          "city",
          "state",
          "grantable"
        ],
        "example": {
          "id": "np_3O9F93l8HsuBKoBLX52FGS",
          "ein": "12-3456789",
          "name": "Bay Area Food Bank",
          "city": "San Francisco",
          "state": "CA",
          "grantable": true
        }
      },
      "Grant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^grant_[0-9A-Za-z]{22}$",
            "example": "grant_4L7rLlNbH1QV3X9LRqjcrB"
          },
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "donor_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "description": "The Advisor who recommended the Grant. Null when your staff made it in Mission Control.",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "nonprofit": {
            "$ref": "#/components/schemas/Nonprofit"
          },
          "amount": {
            "type": "integer",
            "description": "What the nonprofit receives. Integer cents.",
            "example": 25000
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "status": {
            "type": "string",
            "enum": [
              "in_review",
              "approved",
              "sent",
              "paid",
              "denied",
              "canceled",
              "returned"
            ],
            "description": "`in_review` while your Account or the sponsor reviews it (see `awaiting`). `approved` once both approved, until payment goes out. `sent` when payment is on its way. `paid` when the nonprofit has it. Terminal: `denied`, `canceled`, and `returned` (the payment came back and the money is in the Fund again)."
          },
          "awaiting": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "account",
              "sponsor",
              null
            ],
            "description": "Whose turn it is while `in_review`: `account` means your staff, in Mission Control; `sponsor` means Daffodil Charitable, which confirms the nonprofit, reviews the Grant as sponsor, and sells investments when the Fund’s cash falls short. Null in every other status."
          },
          "is_anonymous": {
            "type": "boolean",
            "description": "The nonprofit is not told which Fund gave. It is never told the Donor."
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Advisor’s note to the nonprofit."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the recommendation was submitted. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Grant last changed. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          }
        },
        "required": [
          "id",
          "fund_id",
          "donor_id",
          "nonprofit",
          "amount",
          "currency",
          "status",
          "awaiting",
          "is_anonymous",
          "note",
          "created_at",
          "updated_at"
        ],
        "description": "A grant recommendation from a Fund to a nonprofit, by an Advisor or your staff, followed through review and payment. Your staff approve it in Mission Control; Daffodil Charitable reviews it as sponsor.",
        "example": {
          "id": "grant_4L7rLlNbH1QV3X9LRqjcrB",
          "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "donor_id": "donor_0uwRQyfMSvamIzgNByaoYN",
          "nonprofit": {
            "id": "np_3O9F93l8HsuBKoBLX52FGS",
            "ein": "12-3456789",
            "name": "Bay Area Food Bank",
            "city": "San Francisco",
            "state": "CA",
            "grantable": true
          },
          "amount": 50000,
          "currency": "USD",
          "status": "in_review",
          "awaiting": "account",
          "is_anonymous": false,
          "note": "For the winter meals program.",
          "created_at": "2026-11-11T21:42:00Z",
          "updated_at": "2026-11-11T21:42:00Z"
        }
      },
      "GrantEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^evt_[0-9A-Za-z]{22}$",
            "description": "Unique per Event. Also sent as the `webhook-id` header; use it to drop redeliveries.",
            "example": "evt_2qImcJpR8479lCVSUosM0S"
          },
          "type": {
            "type": "string",
            "enum": [
              "grant.created",
              "grant.awaiting_account",
              "grant.approved",
              "grant.sent",
              "grant.paid",
              "grant.denied",
              "grant.canceled",
              "grant.returned"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Event happened. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "data": {
            "type": "object",
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Grant"
              }
            },
            "required": [
              "object"
            ],
            "description": "`object` is the API object exactly as the API returned it at the moment of the Event."
          }
        },
        "required": [
          "id",
          "type",
          "created_at",
          "data"
        ],
        "description": "An Event about a Grant."
      },
      "LedgerEntrySource": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "contribution",
              "grant"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^(contrib|grant)_[0-9A-Za-z]{22}$",
            "description": "The Contribution’s or Grant’s ID.",
            "example": "contrib_4jV68U95QzmwbX04gqFKu5"
          }
        },
        "required": [
          "type",
          "id"
        ],
        "description": "The object that caused a Ledger entry."
      },
      "LedgerEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^le_[0-9A-Za-z]{22}$",
            "example": "le_1Ji3bmQbexJ4j64cam7eFp"
          },
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "type": {
            "type": "string",
            "enum": [
              "contribution",
              "contribution_reversal",
              "grant",
              "grant_reversal",
              "transfer_out",
              "interest",
              "fee",
              "adjustment"
            ],
            "description": "`contribution`: money in. `contribution_reversal`: a refund, dispute, or bank return of a Contribution. `grant`: a Grant paid out. `grant_reversal`: a Grant payment that came back. `transfer_out`: the paying side of a Contribution from this Fund to a Campaign. `interest` and `fee`: earned and charged on the Fund’s balance. `adjustment`: a correction by Daffodil."
          },
          "amount": {
            "type": "integer",
            "description": "Signed: positive credits the Fund, negative debits it. Integer cents.",
            "example": 25000
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "balance_after": {
            "type": "integer",
            "description": "The Fund’s `balance` right after this entry posted. Integer cents.",
            "example": 25000
          },
          "posted_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the entry posted. Lists filter and sort on this. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "effective_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the money economically moved; can be earlier than `posted_at`. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "source": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LedgerEntrySource"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "fund_id",
          "type",
          "amount",
          "currency",
          "balance_after",
          "posted_at",
          "effective_at",
          "source"
        ],
        "description": "One posted movement of money on a Fund. `source` is the Contribution or Grant behind it, null for interest, fees, and adjustments. Posted entries never change; a correction is a new entry. Pending Holds are not entries: they show only as the gap between a Fund’s `balance` and `available_balance`.",
        "example": {
          "id": "le_1Ji3bmQbexJ4j64cam7eFp",
          "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "type": "contribution",
          "amount": 25000,
          "currency": "USD",
          "balance_after": 1250000,
          "posted_at": "2026-11-11T21:42:00Z",
          "effective_at": "2026-11-11T21:40:00Z",
          "source": {
            "type": "contribution",
            "id": "contrib_4jV68U95QzmwbX04gqFKu5"
          }
        }
      },
      "LedgerEntryEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^evt_[0-9A-Za-z]{22}$",
            "description": "Unique per Event. Also sent as the `webhook-id` header; use it to drop redeliveries.",
            "example": "evt_2qImcJpR8479lCVSUosM0S"
          },
          "type": {
            "type": "string",
            "enum": [
              "ledger_entry.posted"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Event happened. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "data": {
            "type": "object",
            "properties": {
              "object": {
                "$ref": "#/components/schemas/LedgerEntry"
              }
            },
            "required": [
              "object"
            ],
            "description": "`object` is the API object exactly as the API returned it at the moment of the Event."
          }
        },
        "required": [
          "id",
          "type",
          "created_at",
          "data"
        ],
        "description": "An Event about a LedgerEntry."
      },
      "CampaignStatus": {
        "type": "string",
        "enum": [
          "draft",
          "live",
          "paused",
          "ended"
        ],
        "description": "Only a `live` Campaign takes Contributions."
      },
      "Campaign": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^camp_[0-9A-Za-z]{22}$",
            "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
          },
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The one Fund the Campaign raises into.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "donor_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "description": "The Advisor the Campaign was created for, on a Personal fund. Null for a Campaign your Account runs.",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "title": {
            "type": "string",
            "example": "Winter Meals Drive"
          },
          "slug": {
            "type": "string",
            "description": "Unique within your Account.",
            "example": "winter-meals-2026"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Markdown."
          },
          "banner_image_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "goal_amount": {
            "type": "integer",
            "description": "The goal. Integer cents.",
            "example": 25000
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the Campaign starts. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the Campaign ends. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "status": {
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "public_page": {
            "type": "boolean",
            "description": "Whether Daffodil publishes its own public page for the Campaign."
          },
          "beneficiaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Nonprofit"
            },
            "description": "The nonprofits the money is promised to, by name. Empty on a Personal fund, which raises for its own giving."
          },
          "raised_amount": {
            "type": "integer",
            "description": "Succeeded Contributions to this Campaign, net of reversals. Integer cents.",
            "example": 25000
          },
          "contribution_count": {
            "type": "integer",
            "description": "How many succeeded Contributions it has, net of reversals."
          },
          "contributor_count": {
            "type": "integer",
            "description": "How many distinct contributors gave."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Campaign was created. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Campaign or its totals last changed. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          }
        },
        "required": [
          "id",
          "fund_id",
          "donor_id",
          "title",
          "slug",
          "description",
          "banner_image_url",
          "goal_amount",
          "currency",
          "starts_at",
          "ends_at",
          "status",
          "public_page",
          "beneficiaries",
          "raised_amount",
          "contribution_count",
          "contributor_count",
          "created_at",
          "updated_at"
        ],
        "description": "A drive that raises money into one Fund. It is the source of truth for your Campaign pages: render from it and keep no copy.",
        "example": {
          "id": "camp_3iQ8pN19o0ZBATqJs3QVlE",
          "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "donor_id": null,
          "title": "Winter Meals Drive",
          "slug": "winter-meals-2026",
          "description": "Every **$25** feeds a family for a week.",
          "banner_image_url": "https://cdn.example.com/winter-meals.jpg",
          "goal_amount": 5000000,
          "currency": "USD",
          "starts_at": "2026-12-01T08:00:00Z",
          "ends_at": "2027-01-31T08:00:00Z",
          "status": "live",
          "public_page": false,
          "beneficiaries": [
            {
              "id": "np_3O9F93l8HsuBKoBLX52FGS",
              "ein": "12-3456789",
              "name": "Bay Area Food Bank",
              "city": "San Francisco",
              "state": "CA",
              "grantable": true
            }
          ],
          "raised_amount": 1287500,
          "contribution_count": 214,
          "contributor_count": 198,
          "created_at": "2026-11-11T21:42:00Z",
          "updated_at": "2026-12-14T17:03:00Z"
        }
      },
      "CampaignEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^evt_[0-9A-Za-z]{22}$",
            "description": "Unique per Event. Also sent as the `webhook-id` header; use it to drop redeliveries.",
            "example": "evt_2qImcJpR8479lCVSUosM0S"
          },
          "type": {
            "type": "string",
            "enum": [
              "campaign.created",
              "campaign.updated",
              "campaign.ended"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Event happened. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "data": {
            "type": "object",
            "properties": {
              "object": {
                "$ref": "#/components/schemas/Campaign"
              }
            },
            "required": [
              "object"
            ],
            "description": "`object` is the API object exactly as the API returned it at the moment of the Event."
          }
        },
        "required": [
          "id",
          "type",
          "created_at",
          "data"
        ],
        "description": "An Event about a Campaign."
      },
      "Event": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/CheckoutSessionEvent"
          },
          {
            "$ref": "#/components/schemas/ContributionEvent"
          },
          {
            "$ref": "#/components/schemas/GrantEvent"
          },
          {
            "$ref": "#/components/schemas/LedgerEntryEvent"
          },
          {
            "$ref": "#/components/schemas/CampaignEvent"
          }
        ],
        "description": "What a webhook Destination receives: `id`, `type`, `created_at`, and `data.object`, the API object the Event is about."
      },
      "Donor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "external_id": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 200,
            "description": "Your own ID for this object, unique within your Account.",
            "example": "member_48213"
          },
          "first_name": {
            "type": "string",
            "description": "Legal first name.",
            "example": "Jane"
          },
          "last_name": {
            "type": "string",
            "description": "Legal last name.",
            "example": "Doe"
          },
          "email": {
            "type": "string",
            "format": "email",
            "example": "jane@example.com"
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "imported",
              "invited",
              "active",
              "suspended",
              "revoked"
            ],
            "description": "Donor Hub access. API-created Donors start `imported`: they get no Daffodil invite and cannot sign in to the Donor Hub."
          },
          "personal_fund_id": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The Donor’s Personal fund. Null for a Donor with none.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Donor was created. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Donor last changed. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          }
        },
        "required": [
          "id",
          "external_id",
          "first_name",
          "last_name",
          "email",
          "address",
          "status",
          "personal_fund_id",
          "created_at",
          "updated_at"
        ],
        "description": "A person who gives through a Fund your Account holds. A Donor opens at most one Personal fund. `address` is the mailing address, null only for a Donor added outside the API.",
        "example": {
          "id": "donor_0uwRQyfMSvamIzgNByaoYN",
          "external_id": "member_48213",
          "first_name": "Jane",
          "last_name": "Doe",
          "email": "jane@example.com",
          "address": {
            "line1": "500 Market St",
            "line2": null,
            "city": "San Francisco",
            "state": "CA",
            "postal_code": "94105",
            "country": "US"
          },
          "status": "imported",
          "personal_fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "created_at": "2026-11-11T21:42:00Z",
          "updated_at": "2026-11-11T21:42:00Z"
        }
      },
      "Fund": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "external_id": {
            "type": [
              "string",
              "null"
            ],
            "minLength": 1,
            "maxLength": 200,
            "description": "Your own ID for this object, unique within your Account.",
            "example": "member_48213"
          },
          "name": {
            "type": "string",
            "example": "Jane Doe Fund"
          },
          "type": {
            "type": "string",
            "enum": [
              "personal",
              "shared"
            ],
            "description": "`personal`: one Donor’s Fund, advised by its Advisors. `shared`: a Fund your Account pools, such as a Campaign’s."
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "closed"
            ]
          },
          "advisor_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^donor_[0-9A-Za-z]{22}$",
              "example": "donor_0uwRQyfMSvamIzgNByaoYN"
            },
            "description": "The Donors who advise this Fund. Empty for a Shared fund."
          },
          "balance": {
            "type": "integer",
            "description": "Sum of the Fund’s posted Ledger entries. Negative only after a reversal of money already granted out. Integer cents.",
            "example": 25000
          },
          "available_balance": {
            "type": "integer",
            "description": "What the Fund can grant or give now: `balance` less pending Holds. Integer cents.",
            "example": 25000
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Fund was opened. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the Fund was closed. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          }
        },
        "required": [
          "id",
          "external_id",
          "name",
          "type",
          "status",
          "advisor_ids",
          "balance",
          "available_balance",
          "currency",
          "created_at",
          "closed_at"
        ],
        "description": "A donor-advised fund your Account holds. Daffodil Charitable, as sponsor, owns the money; the Fund’s Advisors recommend where it goes.",
        "example": {
          "id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "external_id": "fund_48213",
          "name": "Jane Doe Fund",
          "type": "personal",
          "status": "open",
          "advisor_ids": [
            "donor_0uwRQyfMSvamIzgNByaoYN"
          ],
          "balance": 1250000,
          "available_balance": 1000000,
          "currency": "USD",
          "created_at": "2026-11-11T21:42:00Z",
          "closed_at": null
        }
      },
      "DonorWithFund": {
        "type": "object",
        "properties": {
          "donor": {
            "$ref": "#/components/schemas/Donor"
          },
          "fund": {
            "$ref": "#/components/schemas/Fund"
          }
        },
        "required": [
          "donor",
          "fund"
        ],
        "description": "A new Donor and the Personal fund opened with them."
      },
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "Stable, machine-readable error code."
          },
          "param": {
            "type": "string",
            "description": "The request parameter at fault, when one is."
          },
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "request_id"
        ]
      },
      "CreateDonorRequest": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Legal first name."
          },
          "last_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Legal last name."
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "format": "email"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "external_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Your own ID for this object, unique within your Account.",
            "example": "member_48213"
          },
          "fund": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Defaults to \"{first_name} {last_name} Fund\".",
                "example": "The Doe Family Fund"
              },
              "external_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Your own ID for this object, unique within your Account.",
                "example": "member_48213"
              }
            },
            "description": "The Personal fund opened with the Donor."
          }
        },
        "required": [
          "first_name",
          "last_name",
          "email",
          "address"
        ],
        "example": {
          "first_name": "Jane",
          "last_name": "Doe",
          "email": "jane@example.com",
          "address": {
            "line1": "500 Market St",
            "city": "San Francisco",
            "state": "CA",
            "postal_code": "94105",
            "country": "US"
          },
          "external_id": "member_48213",
          "fund": {
            "name": "The Doe Family Fund",
            "external_id": "fund_48213"
          }
        }
      },
      "DonorList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Donor"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "UpdateDonorRequest": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "last_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "format": "email"
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          }
        },
        "description": "Only the fields you send change.",
        "example": {
          "email": "jane.doe@example.com"
        }
      },
      "FundList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fund"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "Statement": {
        "type": "object",
        "properties": {
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "period": {
            "type": "string",
            "pattern": "^\\d{4}(-\\d{2}|-Q[1-4])?$",
            "description": "The period’s key: `YYYY-MM`, `YYYY-Qn`, or `YYYY`. Unique per Fund.",
            "example": "2026-Q3"
          },
          "frequency": {
            "type": "string",
            "enum": [
              "monthly",
              "quarterly",
              "annually"
            ]
          },
          "label": {
            "type": "string",
            "example": "Q3 2026"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "description": "Start of the period, inclusive. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "ends_at": {
            "type": "string",
            "format": "date-time",
            "description": "End of the period, exclusive. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          },
          "pdf_url": {
            "type": "string",
            "format": "uri",
            "description": "A link to the statement PDF that needs no API key, so you can hand it to your member. It expires an hour after you list the statements; list them again for a fresh link."
          }
        },
        "required": [
          "fund_id",
          "period",
          "frequency",
          "label",
          "starts_at",
          "ends_at",
          "pdf_url"
        ],
        "description": "One closed statement period of a Fund. Open periods have no statement yet.",
        "example": {
          "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "period": "2026-Q3",
          "frequency": "quarterly",
          "label": "Q3 2026",
          "starts_at": "2026-07-01T00:00:00Z",
          "ends_at": "2026-10-01T00:00:00Z",
          "pdf_url": "https://mission.mydaffodil.app/pub/statements/eyJvIjoiMGI2ZjZhNGUi.k3Jx9QvLq2m8/download"
        }
      },
      "StatementList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Statement"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "LedgerEntryList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LedgerEntry"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "CreateCheckoutSessionRequest": {
        "type": "object",
        "properties": {
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The Fund to pay into. Send this or `campaign_id`.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "campaign_id": {
            "type": "string",
            "pattern": "^camp_[0-9A-Za-z]{22}$",
            "description": "The Campaign to give to; the money goes into its Fund. Send this or `fund_id`.",
            "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
          },
          "donor_id": {
            "type": "string",
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "description": "The paying Donor, who must advise the Fund: an Advisor of the Personal Fund, or a Shared Fund member with the advise permission. The Contribution and its receipt are theirs. Omit when the payer is a Public contributor.",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "amount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "A fixed amount. Omit to let the payer choose. Integer cents, greater than zero.",
            "example": 25000
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Currency"
              },
              {
                "default": "USD"
              }
            ]
          },
          "prefill": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "Legal name."
              },
              "email": {
                "type": "string",
                "maxLength": 254,
                "format": "email"
              },
              "address": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Address"
                  },
                  {
                    "description": "A Public contributor’s billing address. For a Donor, their mailing address: saved when they pay if Daffodil has none on file, never replacing one."
                  }
                ]
              }
            },
            "description": "Details to fill in for the payer. They can change them."
          },
          "success_url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri",
            "description": "Where the payer goes after paying. Must be https. Plain http is accepted only for `localhost` and `127.0.0.1`, and never in the Sandbox or production."
          },
          "cancel_url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri",
            "description": "Where the payer goes if they leave without paying. Must be https. Plain http is accepted only for `localhost` and `127.0.0.1`, and never in the Sandbox or production."
          },
          "client_reference_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Your own reference for the intent behind this payment. Returned on the Contribution and its Events.",
            "example": "ac_ref_7731"
          },
          "metadata": {
            "$ref": "#/components/schemas/Metadata"
          },
          "fee_coverage": {
            "$ref": "#/components/schemas/FeeCoverage"
          },
          "impact_tip": {
            "type": "boolean",
            "description": "Offer Daffodil’s impact tip on this session. Defaults to your Account’s setting."
          }
        },
        "required": [
          "success_url"
        ],
        "description": "Send exactly one of `fund_id` and `campaign_id`. `fee_coverage` overrides your Account’s setting for this session.",
        "example": {
          "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "donor_id": "donor_0uwRQyfMSvamIzgNByaoYN",
          "amount": 25000,
          "currency": "USD",
          "prefill": {
            "name": "Jane Doe",
            "email": "jane@example.com"
          },
          "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"
          }
        }
      },
      "ContributionList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Contribution"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "CreateContributionRequest": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "fund"
            ],
            "description": "Only `fund`: an Advisor gives from their Fund. Every other way money comes in goes through a Checkout Session."
          },
          "source_fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The Fund the money comes from.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "donor_id": {
            "type": "string",
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "description": "An Advisor of the source Fund.",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "campaign_id": {
            "type": "string",
            "pattern": "^camp_[0-9A-Za-z]{22}$",
            "description": "The Campaign to give to; the money goes into its Fund.",
            "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
          },
          "amount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "How much to give. Integer cents, greater than zero.",
            "example": 25000
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Currency"
              },
              {
                "default": "USD"
              }
            ]
          },
          "is_anonymous": {
            "type": "boolean",
            "default": false,
            "description": "Hide the giver from the Campaign Fund’s Advisors and the donor wall."
          },
          "client_reference_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Your own reference for the intent behind this payment. Returned on the Contribution and its Events.",
            "example": "ac_ref_7731"
          },
          "metadata": {
            "$ref": "#/components/schemas/Metadata"
          }
        },
        "required": [
          "source",
          "source_fund_id",
          "donor_id",
          "campaign_id",
          "amount"
        ],
        "example": {
          "source": "fund",
          "source_fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "donor_id": "donor_0uwRQyfMSvamIzgNByaoYN",
          "campaign_id": "camp_3iQ8pN19o0ZBATqJs3QVlE",
          "amount": 10000,
          "currency": "USD",
          "is_anonymous": false,
          "client_reference_id": "ac_ref_7732"
        }
      },
      "CreateGrantRequest": {
        "type": "object",
        "properties": {
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The Fund to grant from.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "donor_id": {
            "type": "string",
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "description": "The recommending Donor, who must advise the Fund.",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "nonprofit_id": {
            "type": "string",
            "pattern": "^np_[0-9A-Za-z]{22}$",
            "description": "The nonprofit, by Daffodil nonprofit ID. Send this or `ein`.",
            "example": "np_3O9F93l8HsuBKoBLX52FGS"
          },
          "ein": {
            "type": "string",
            "pattern": "^\\d{2}-?\\d{7}$",
            "description": "The nonprofit, by EIN. Send this or `nonprofit_id`.",
            "example": "12-3456789"
          },
          "amount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "What the nonprofit receives. Integer cents, greater than zero.",
            "example": 25000
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Currency"
              },
              {
                "default": "USD"
              }
            ]
          },
          "is_anonymous": {
            "type": "boolean",
            "description": "Keep the Fund’s name from the nonprofit. The Donor is never named."
          },
          "note": {
            "type": "string",
            "maxLength": 400,
            "description": "A note to the nonprofit, such as a purpose."
          }
        },
        "required": [
          "fund_id",
          "donor_id",
          "amount",
          "is_anonymous"
        ],
        "description": "Send exactly one of `nonprofit_id` and `ein`.",
        "example": {
          "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "donor_id": "donor_0uwRQyfMSvamIzgNByaoYN",
          "ein": "12-3456789",
          "amount": 50000,
          "currency": "USD",
          "is_anonymous": false,
          "note": "For the winter meals program."
        }
      },
      "GrantList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Grant"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "CreateCampaignRequest": {
        "type": "object",
        "properties": {
          "fund_id": {
            "type": "string",
            "pattern": "^fund_[0-9A-Za-z]{22}$",
            "description": "The Fund to raise into. It cannot change later.",
            "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
          },
          "donor_id": {
            "type": "string",
            "pattern": "^donor_[0-9A-Za-z]{22}$",
            "description": "On a Personal fund, required: the Advisor the Campaign is for. Omit on a Shared fund.",
            "example": "donor_0uwRQyfMSvamIzgNByaoYN"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "slug": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
            "description": "Lowercase letters, digits, and hyphens. Unique within your Account.",
            "example": "winter-meals-2026"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 20000,
            "description": "Markdown."
          },
          "banner_image_url": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2048,
            "format": "uri"
          },
          "goal_amount": {
            "type": "integer",
            "minimum": 0,
            "description": "The goal. Integer cents.",
            "example": 5000000
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Currency"
              },
              {
                "default": "USD"
              }
            ]
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "ISO 8601, UTC."
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "ISO 8601, UTC."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CampaignStatus"
              },
              {
                "default": "draft"
              }
            ]
          },
          "public_page": {
            "type": "boolean",
            "default": false,
            "description": "Publish Daffodil’s own public page for the Campaign."
          },
          "beneficiary_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^np_[0-9A-Za-z]{22}$",
              "example": "np_3O9F93l8HsuBKoBLX52FGS"
            },
            "maxItems": 50,
            "default": [],
            "description": "The nonprofits the money is promised to. Shared fund Campaigns only; a Personal fund Campaign names none."
          }
        },
        "required": [
          "fund_id",
          "title",
          "slug",
          "goal_amount"
        ],
        "example": {
          "fund_id": "fund_2JqSDJkaCfO4pnMMD5na5G",
          "title": "Winter Meals Drive",
          "slug": "winter-meals-2026",
          "description": "Every **$25** feeds a family for a week.",
          "goal_amount": 5000000,
          "currency": "USD",
          "starts_at": "2026-12-01T08:00:00Z",
          "ends_at": "2027-01-31T08:00:00Z",
          "status": "live",
          "beneficiary_ids": [
            "np_3O9F93l8HsuBKoBLX52FGS"
          ]
        }
      },
      "CampaignList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "UpdateCampaignRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "slug": {
            "type": "string",
            "maxLength": 100,
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
            "description": "Lowercase letters, digits, and hyphens. Unique within your Account.",
            "example": "winter-meals-2026"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 20000,
            "description": "Markdown."
          },
          "banner_image_url": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 2048,
            "format": "uri"
          },
          "goal_amount": {
            "type": "integer",
            "minimum": 0,
            "description": "The goal. Integer cents.",
            "example": 5000000
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "ISO 8601, UTC."
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "ISO 8601, UTC."
          },
          "status": {
            "$ref": "#/components/schemas/CampaignStatus"
          },
          "public_page": {
            "type": "boolean",
            "description": "Publish Daffodil’s own public page for the Campaign."
          },
          "beneficiary_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^np_[0-9A-Za-z]{22}$",
              "example": "np_3O9F93l8HsuBKoBLX52FGS"
            },
            "maxItems": 50,
            "description": "The nonprofits the money is promised to. Shared fund Campaigns only; a Personal fund Campaign names none."
          }
        },
        "description": "Only the fields you send change. Send null to clear a nullable field.",
        "example": {
          "goal_amount": 7500000,
          "status": "live"
        }
      },
      "DonorWallEntry": {
        "type": "object",
        "properties": {
          "contribution_id": {
            "type": "string",
            "pattern": "^contrib_[0-9A-Za-z]{22}$",
            "example": "contrib_4jV68U95QzmwbX04gqFKu5"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The contributor’s name. Null when they asked to stay anonymous.",
            "example": "Jane Doe"
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "description": "A message the contributor left."
          },
          "amount": {
            "type": "integer",
            "description": "What reached the Campaign’s Fund. Integer cents.",
            "example": 25000
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Contribution was made. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          }
        },
        "required": [
          "contribution_id",
          "display_name",
          "message",
          "amount",
          "currency",
          "created_at"
        ],
        "description": "One succeeded Contribution to a Campaign, safe to show publicly.",
        "example": {
          "contribution_id": "contrib_4jV68U95QzmwbX04gqFKu5",
          "display_name": "Jane Doe",
          "message": "Go team!",
          "amount": 25000,
          "currency": "USD",
          "created_at": "2026-11-11T21:42:00Z"
        }
      },
      "DonorWallEntryList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DonorWallEntry"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "NonprofitList": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Nonprofit"
            }
          },
          "has_more": {
            "type": "boolean"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page."
          }
        },
        "required": [
          "data",
          "has_more",
          "next_cursor"
        ]
      },
      "CreateSandboxLedgerEntryRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "interest",
              "fee"
            ],
            "description": "`interest` credits the Fund, as month-end interest would. `fee` debits it, as an account fee would."
          },
          "amount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "description": "How much, as a positive number; a `fee` is posted as a debit. Integer cents, greater than zero.",
            "example": 25000
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Currency"
              },
              {
                "default": "USD"
              }
            ]
          }
        },
        "required": [
          "type",
          "amount"
        ],
        "example": {
          "type": "interest",
          "amount": 1234,
          "currency": "USD"
        }
      },
      "SandboxReset": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "sandbox_reset"
            ]
          },
          "deleted": {
            "type": "object",
            "properties": {
              "donors": {
                "type": "integer"
              },
              "funds": {
                "type": "integer"
              },
              "contributions": {
                "type": "integer"
              },
              "grants": {
                "type": "integer"
              },
              "campaigns": {
                "type": "integer"
              },
              "checkout_sessions": {
                "type": "integer"
              },
              "ledger_entries": {
                "type": "integer"
              }
            },
            "required": [
              "donors",
              "funds",
              "contributions",
              "grants",
              "campaigns",
              "checkout_sessions",
              "ledger_entries"
            ],
            "description": "How many of each object the reset removed."
          }
        },
        "required": [
          "object",
          "deleted"
        ],
        "example": {
          "object": "sandbox_reset",
          "deleted": {
            "donors": 3,
            "funds": 4,
            "contributions": 12,
            "grants": 5,
            "campaigns": 1,
            "checkout_sessions": 6,
            "ledger_entries": 30
          }
        }
      },
      "CreateSandboxSharedFundRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "The Fund’s name.",
            "example": "Winter Meals"
          }
        },
        "required": [
          "name"
        ],
        "example": {
          "name": "Winter Meals"
        }
      },
      "SandboxWebhookDestination": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "webhook_destination"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^wh_[0-9A-Za-z]{22}$",
            "example": "wh_56TFFconQbqixIDRorZEa5"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Where Events are posted."
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventType"
            },
            "description": "The Events this Destination receives."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "disabled"
            ]
          },
          "secret": {
            "type": "string",
            "description": "The Standard Webhooks signing secret, `whsec_` then base64. Returned only here, when the Destination is created.",
            "example": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the Destination was added. ISO 8601, UTC. ISO 8601, UTC.",
            "example": "2026-11-11T21:42:00Z"
          }
        },
        "required": [
          "object",
          "id",
          "url",
          "events",
          "status",
          "secret",
          "created_at"
        ]
      },
      "CreateSandboxWebhookDestinationRequest": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "An `https` URL on the public internet.",
            "example": "https://partner.example.com/daffodil/webhooks"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventType"
            },
            "minItems": 1,
            "description": "The Events to subscribe to. Every Event when omitted."
          },
          "label": {
            "type": "string",
            "maxLength": 120,
            "description": "A name for the Destination in Mission Control. Defaults to the URL’s host."
          }
        },
        "required": [
          "url"
        ],
        "example": {
          "url": "https://partner.example.com/daffodil/webhooks"
        }
      },
      "DeletedSandboxWebhookDestination": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "webhook_destination"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^wh_[0-9A-Za-z]{22}$",
            "example": "wh_56TFFconQbqixIDRorZEa5"
          },
          "deleted": {
            "type": "boolean",
            "enum": [
              true
            ]
          }
        },
        "required": [
          "object",
          "id",
          "deleted"
        ]
      }
    },
    "parameters": {},
    "headers": {
      "RateLimit-Policy": {
        "description": "The rate limit policies this request counts against, as in draft-ietf-httpapi-ratelimit-headers: `q` requests per `w` seconds per API key. Every request counts against `\"default\"` (25 a second for `dfl_live_` keys, 10 for `dfl_test_` keys). Nonprofit search also counts against `\"search\"` (10 live, 5 test).",
        "schema": {
          "type": "string"
        },
        "example": "\"default\";q=25;w=1, \"search\";q=10;w=1"
      },
      "RateLimit": {
        "description": "What is left of each policy: `r` requests remain until the window ends in `t` seconds. Absent when Daffodil could not count the request; it was allowed.",
        "schema": {
          "type": "string"
        },
        "example": "\"default\";r=24;t=1, \"search\";r=9;t=1"
      },
      "Retry-After": {
        "description": "Seconds to wait before sending another request with this API key.",
        "schema": {
          "type": "integer",
          "minimum": 1
        },
        "example": 1
      },
      "Request-Id": {
        "description": "Identifies this request, as `req_` and 22 letters and digits. Every response carries one, errors included. Quote it if you contact Daffodil.",
        "schema": {
          "type": "string"
        },
        "example": "req_4fRk2LwQ9xTn7bVcY1pZ8d"
      }
    },
    "responses": {
      "RateLimited": {
        "description": "Too many requests: this API key is over a rate limit. Wait `Retry-After` seconds.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "RateLimit": {
            "$ref": "#/components/headers/RateLimit"
          },
          "Request-Id": {
            "$ref": "#/components/headers/Request-Id"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/v1/donors": {
      "post": {
        "operationId": "createDonor",
        "tags": [
          "Donors"
        ],
        "summary": "Create a Donor",
        "description": "Creates a Donor and opens their Personal fund in one call, returning both. The Donor starts `imported`: Daffodil sends no invite, and every notification other than the sponsor’s tax receipts is yours to send. Each Personal fund uses one of your Account’s Personal fund seats; with none left the call fails with 403 `entitlement_limit`. A Donor opens at most one Personal fund.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDonorRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The Donor and their Personal fund.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DonorWithFund"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`), Entitlement limit reached (`entitlement_limit`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), External ID already in use (`external_id_taken`), Email already in use (`email_taken`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listDonors",
        "tags": [
          "Donors"
        ],
        "summary": "List Donors",
        "description": "Lists your Account’s Donors, newest first.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "Only the Donor with this `external_id`.",
              "example": "member_48213"
            },
            "required": false,
            "name": "external_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of Donors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DonorList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/donors/{id}": {
      "get": {
        "operationId": "getDonor",
        "tags": [
          "Donors"
        ],
        "summary": "Get a Donor",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^donor_[0-9A-Za-z]{22}$",
              "example": "donor_0uwRQyfMSvamIzgNByaoYN"
            },
            "required": true,
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The Donor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Donor"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateDonor",
        "tags": [
          "Donors"
        ],
        "summary": "Update a Donor",
        "description": "Updates a Donor’s legal name, email, or mailing address.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^donor_[0-9A-Za-z]{22}$",
              "example": "donor_0uwRQyfMSvamIzgNByaoYN"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDonorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated Donor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Donor"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Email already in use (`email_taken`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/funds": {
      "get": {
        "operationId": "listFunds",
        "tags": [
          "Funds"
        ],
        "summary": "List Funds",
        "description": "Lists your Account’s Funds, newest first.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^donor_[0-9A-Za-z]{22}$",
              "description": "Only Funds this Donor advises.",
              "example": "donor_0uwRQyfMSvamIzgNByaoYN"
            },
            "required": false,
            "name": "donor_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "Only the Fund with this `external_id`.",
              "example": "member_48213"
            },
            "required": false,
            "name": "external_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "personal",
                "shared"
              ]
            },
            "required": false,
            "name": "type",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of Funds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FundList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/funds/{id}": {
      "get": {
        "operationId": "getFund",
        "tags": [
          "Funds"
        ],
        "summary": "Get a Fund",
        "description": "Returns a Fund with its `balance` and `available_balance`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^fund_[0-9A-Za-z]{22}$",
              "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
            },
            "required": true,
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The Fund.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fund"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/funds/{id}/close": {
      "post": {
        "operationId": "closeFund",
        "tags": [
          "Funds"
        ],
        "summary": "Close a Fund",
        "description": "Closes an empty Fund. Money in a donor-advised fund is granted out, never returned, so a Fund with any balance or Hold, invested money, a pending Grant, a Contribution still processing, or a live Campaign or RFP is refused with 409 `fund_not_empty`. Closing also expires the Fund’s open Checkout Sessions and closes its bank account; if Stripe or Increase cannot confirm that right now, the request fails with 503 `service_unavailable` and can be retried with the same `Idempotency-Key`. A closed Personal fund no longer uses a Personal fund seat. Closing a closed Fund returns it unchanged.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^fund_[0-9A-Za-z]{22}$",
              "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "The closed Fund.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fund"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Fund not empty (`fund_not_empty`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "503": {
            "description": "Service unavailable (`service_unavailable`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/funds/{id}/statements": {
      "get": {
        "operationId": "listFundStatements",
        "tags": [
          "Funds"
        ],
        "summary": "List a Fund’s statements",
        "description": "Lists the Fund’s closed statement periods, newest first, each with a link to its PDF. A period that has not ended has no statement yet.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^fund_[0-9A-Za-z]{22}$",
              "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "monthly",
                "quarterly",
                "annually"
              ],
              "description": "Period length. Defaults to the Fund’s statement frequency."
            },
            "required": false,
            "name": "frequency",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of statements.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatementList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/ledger_entries": {
      "get": {
        "operationId": "listLedgerEntries",
        "tags": [
          "Ledger entries"
        ],
        "summary": "List Ledger entries",
        "description": "Lists posted Ledger entries for one Fund or your whole Account, oldest first by `posted_at`. The cursor is stable: paging through a range returns every entry exactly once, even when entries share a `posted_at`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^fund_[0-9A-Za-z]{22}$",
              "description": "Only this Fund’s entries. Omit for every Fund.",
              "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
            },
            "required": false,
            "name": "fund_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "Only entries posted at or after this time. ISO 8601, UTC.",
              "example": "2026-10-01T00:00:00Z"
            },
            "required": false,
            "name": "posted_at_gte",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "description": "Only entries posted before this time. ISO 8601, UTC.",
              "example": "2026-11-01T00:00:00Z"
            },
            "required": false,
            "name": "posted_at_lt",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of Ledger entries.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerEntryList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/checkout_sessions": {
      "post": {
        "operationId": "createCheckoutSession",
        "tags": [
          "Checkout Sessions"
        ],
        "summary": "Create a Checkout Session",
        "description": "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.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCheckoutSessionRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The Checkout Session.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSession"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`), Personal fund campaigns not enabled (`personal_fund_campaigns_not_enabled`), Entitlement limit reached (`entitlement_limit`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Donor does not advise the Fund (`donor_not_advisor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/checkout_sessions/{id}": {
      "get": {
        "operationId": "getCheckoutSession",
        "tags": [
          "Checkout Sessions"
        ],
        "summary": "Get a Checkout Session",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^cs_[0-9A-Za-z]{22}$",
              "example": "cs_5vl0KYPG4EdFiuWW0Ypu0Z"
            },
            "required": true,
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The Checkout Session.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckoutSession"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/contributions": {
      "get": {
        "operationId": "listContributions",
        "tags": [
          "Contributions"
        ],
        "summary": "List Contributions",
        "description": "Lists your Account’s Contributions, newest first.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^fund_[0-9A-Za-z]{22}$",
              "description": "Only Contributions into this Fund.",
              "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
            },
            "required": false,
            "name": "fund_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^camp_[0-9A-Za-z]{22}$",
              "description": "Only Contributions to this Campaign.",
              "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
            },
            "required": false,
            "name": "campaign_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^donor_[0-9A-Za-z]{22}$",
              "description": "Only this Donor’s Contributions.",
              "example": "donor_0uwRQyfMSvamIzgNByaoYN"
            },
            "required": false,
            "name": "donor_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "succeeded",
                "failed",
                "reversed"
              ]
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of Contributions.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContributionList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createContribution",
        "tags": [
          "Contributions"
        ],
        "summary": "Give from a Fund to a Campaign",
        "description": "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`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContributionRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The Contribution, already `succeeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contribution"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Donor does not advise the Fund (`donor_not_advisor`), Campaign raises into the source Fund (`campaign_own_fund`), Insufficient funds (`insufficient_funds`), Fund balance negative (`fund_negative`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/contributions/{id}": {
      "get": {
        "operationId": "getContribution",
        "tags": [
          "Contributions"
        ],
        "summary": "Get a Contribution",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^contrib_[0-9A-Za-z]{22}$",
              "example": "contrib_4jV68U95QzmwbX04gqFKu5"
            },
            "required": true,
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The Contribution.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contribution"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/grants": {
      "post": {
        "operationId": "createGrant",
        "tags": [
          "Grants"
        ],
        "summary": "Recommend a Grant",
        "description": "Submits a Donor’s grant recommendation. It holds the amount on the Fund and enters the same review as a Donor Hub recommendation: your staff approve it in Mission Control, then Daffodil Charitable reviews it as sponsor. Follow it through `status`, `awaiting`, and the `grant.*` Events. Refused with 409 `donor_not_advisor` when the Donor does not advise the Fund, `nonprofit_not_grantable` when the nonprofit cannot receive a Grant, `insufficient_funds` when the Fund’s `available_balance` is short of `amount`, and `fund_negative` while the Fund’s `balance` is below zero.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGrantRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The Grant, `in_review`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Grant"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Donor does not advise the Fund (`donor_not_advisor`), Nonprofit not grantable (`nonprofit_not_grantable`), Insufficient funds (`insufficient_funds`), Fund balance negative (`fund_negative`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listGrants",
        "tags": [
          "Grants"
        ],
        "summary": "List Grants",
        "description": "Lists your Account’s Grants, newest first.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^fund_[0-9A-Za-z]{22}$",
              "description": "Only Grants from this Fund.",
              "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
            },
            "required": false,
            "name": "fund_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^donor_[0-9A-Za-z]{22}$",
              "description": "Only Grants this Donor recommended.",
              "example": "donor_0uwRQyfMSvamIzgNByaoYN"
            },
            "required": false,
            "name": "donor_id",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "in_review",
                "approved",
                "sent",
                "paid",
                "denied",
                "canceled",
                "returned"
              ]
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of Grants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GrantList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/grants/{id}": {
      "get": {
        "operationId": "getGrant",
        "tags": [
          "Grants"
        ],
        "summary": "Get a Grant",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^grant_[0-9A-Za-z]{22}$",
              "example": "grant_4L7rLlNbH1QV3X9LRqjcrB"
            },
            "required": true,
            "name": "id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "The Grant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Grant"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/grants/{id}/cancel": {
      "post": {
        "operationId": "cancelGrant",
        "tags": [
          "Grants"
        ],
        "summary": "Cancel a Grant",
        "description": "Cancels a Grant for its Donor, releasing its Hold. Allowed until your staff approve it. An approved Grant waiting on the sponsor to sell investments still reads `in_review`, awaiting `sponsor`, but is past this point. After approval only your staff can cancel, in Mission Control, and this returns 409 `grant_not_cancelable`, as it does for a Grant your staff made (`donor_id` null).",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^grant_[0-9A-Za-z]{22}$",
              "example": "grant_4L7rLlNbH1QV3X9LRqjcrB"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "The Grant, `canceled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Grant"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Grant not cancelable (`grant_not_cancelable`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/campaigns": {
      "post": {
        "operationId": "createCampaign",
        "tags": [
          "Campaigns"
        ],
        "summary": "Create a Campaign",
        "description": "Creates a Campaign raising into one Fund. On a Shared fund, `beneficiary_ids` name the nonprofits the money is promised to, and your Account grants from the Fund when it chooses; nothing auto-grants. Live and paused Shared fund Campaigns count against your Account’s Campaign limit, so creating one `live` or `paused` over the limit is refused (403 `entitlement_limit`); a draft counts once it goes live. On a Personal fund, the Campaign is for one of its Advisors (`donor_id`, required; 409 `donor_not_advisor` for a Donor who does not advise the Fund) and raises for the Fund’s own giving, which its Advisors then grant from; it names no beneficiaries, never counts against the limit, and needs the Personal fund campaigns Entitlement (403 `personal_fund_campaigns_not_enabled` without it).",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCampaignRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The Campaign.",
            "headers": {
              "ETag": {
                "description": "The Campaign’s current version, totals included. Send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "\"c7f3a1\""
                }
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`), Entitlement limit reached (`entitlement_limit`), Personal fund campaigns not enabled (`personal_fund_campaigns_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Donor does not advise the Fund (`donor_not_advisor`), Slug already in use (`slug_taken`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listCampaigns",
        "tags": [
          "Campaigns"
        ],
        "summary": "List Campaigns",
        "description": "Lists your Account’s Campaigns, newest first.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^fund_[0-9A-Za-z]{22}$",
              "description": "Only Campaigns raising into this Fund.",
              "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
            },
            "required": false,
            "name": "fund_id",
            "in": "query"
          },
          {
            "schema": {
              "$ref": "#/components/schemas/CampaignStatus"
            },
            "required": false,
            "name": "status",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of Campaigns.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}": {
      "get": {
        "operationId": "getCampaign",
        "tags": [
          "Campaigns"
        ],
        "summary": "Get a Campaign",
        "description": "Returns a Campaign with its content and totals. Send the `ETag` from an earlier response as `If-None-Match` to get 304 with no body while nothing, totals included, has changed. `campaign.updated` fires on every change.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^camp_[0-9A-Za-z]{22}$",
              "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "description": "An `ETag` from an earlier response for this Campaign.",
              "example": "\"c7f3a1\""
            },
            "required": false,
            "name": "if-none-match",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "The Campaign.",
            "headers": {
              "ETag": {
                "description": "The Campaign’s current version, totals included. Send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "\"c7f3a1\""
                }
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: the Campaign still matches `If-None-Match`. No body.",
            "headers": {
              "ETag": {
                "description": "The Campaign’s current version, totals included. Send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "\"c7f3a1\""
                }
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateCampaign",
        "tags": [
          "Campaigns"
        ],
        "summary": "Update a Campaign",
        "description": "Changes the fields you send. A `draft` Campaign can go `live`, `paused`, or `ended`; `live` and `paused` move between each other or to `ended`; nothing returns to `draft`, and an ended Campaign stays ended. Going `live` or `paused` from `draft` counts against your Account’s Campaign limit (403 `entitlement_limit`). A live or paused Campaign ends by itself once `ends_at` passes, with `campaign.ended`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^camp_[0-9A-Za-z]{22}$",
              "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCampaignRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated Campaign.",
            "headers": {
              "ETag": {
                "description": "The Campaign’s current version, totals included. Send it back as `If-None-Match`.",
                "schema": {
                  "type": "string",
                  "example": "\"c7f3a1\""
                }
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`), Entitlement limit reached (`entitlement_limit`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Slug already in use (`slug_taken`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/campaigns/{id}/contributions": {
      "get": {
        "operationId": "listCampaignContributions",
        "tags": [
          "Campaigns"
        ],
        "summary": "List a Campaign’s donor wall",
        "description": "Lists a Campaign’s succeeded Contributions, newest first, in a form safe to show publicly: `display_name` is null for contributors who asked to stay anonymous.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^camp_[0-9A-Za-z]{22}$",
              "example": "camp_3iQ8pN19o0ZBATqJs3QVlE"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the donor wall.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DonorWallEntryList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/nonprofits": {
      "get": {
        "operationId": "searchNonprofits",
        "tags": [
          "Nonprofits"
        ],
        "summary": "Search nonprofits",
        "description": "Searches the nonprofit registry Daffodil grants to, by name or EIN. Check `grantable` before offering a nonprofit to a Donor.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "A name or an EIN.",
              "example": "food bank"
            },
            "required": true,
            "name": "q",
            "in": "query"
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "How many objects to return, 1 to 100."
            },
            "required": false,
            "name": "limit",
            "in": "query"
          },
          {
            "schema": {
              "type": "string",
              "description": "The `next_cursor` from the previous page. Omit for the first page."
            },
            "required": false,
            "name": "cursor",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Matching nonprofits, best match first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NonprofitList"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`), Invalid cursor (`invalid_cursor`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/contributions/{id}/settle": {
      "post": {
        "operationId": "settleSandboxContribution",
        "tags": [
          "Sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.api.getdaffodil.com",
            "description": "Sandbox"
          }
        ],
        "summary": "Settle a pending Contribution",
        "description": "Makes a `pending` Contribution clear, as if its payment settled: after a 2–15 second delay it becomes `succeeded`, its Fund gets a `contribution` Ledger entry, and `contribution.succeeded` and `ledger_entry.posted` are sent. Answers at once with the Contribution, still `pending`. A card or ACH Contribution settles by itself 2–15 seconds after it is created; this request replaces that outcome when it arrives first. Refused with 409 `contribution_not_pending` when it is not `pending`. Sandbox only: exists on `sandbox.api.getdaffodil.com` and answers 404 `not_found` everywhere else.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^contrib_[0-9A-Za-z]{22}$",
              "example": "contrib_4jV68U95QzmwbX04gqFKu5"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "responses": {
          "202": {
            "description": "The Contribution, still `pending`; the outcome follows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contribution"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Contribution not pending (`contribution_not_pending`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/contributions/{id}/fail": {
      "post": {
        "operationId": "failSandboxContribution",
        "tags": [
          "Sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.api.getdaffodil.com",
            "description": "Sandbox"
          }
        ],
        "summary": "Fail a pending Contribution",
        "description": "Makes a `pending` Contribution fail, as if its payment bounced: after a 2–15 second delay it becomes `failed` and `contribution.failed` is sent. Its Fund is never credited. Answers at once with the Contribution, still `pending`. A card or ACH Contribution settles by itself 2–15 seconds after it is created; this request replaces that outcome when it arrives first. Refused with 409 `contribution_not_pending` when it is not `pending`. Sandbox only: exists on `sandbox.api.getdaffodil.com` and answers 404 `not_found` everywhere else.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^contrib_[0-9A-Za-z]{22}$",
              "example": "contrib_4jV68U95QzmwbX04gqFKu5"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "responses": {
          "202": {
            "description": "The Contribution, still `pending`; the outcome follows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contribution"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Contribution not pending (`contribution_not_pending`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/funds/{id}/ledger_entries": {
      "post": {
        "operationId": "createSandboxLedgerEntry",
        "tags": [
          "Sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.api.getdaffodil.com",
            "description": "Sandbox"
          }
        ],
        "summary": "Post interest or a fee to a Fund",
        "description": "Posts an `interest` or `fee` Ledger entry to a Fund at once and sends `ledger_entry.posted`. A fee larger than the Fund’s `balance` is refused with 409 `insufficient_funds`. Sandbox only: exists on `sandbox.api.getdaffodil.com` and answers 404 `not_found` everywhere else.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^fund_[0-9A-Za-z]{22}$",
              "example": "fund_2JqSDJkaCfO4pnMMD5na5G"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSandboxLedgerEntryRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The posted Ledger entry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerEntry"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`), Insufficient funds (`insufficient_funds`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/reset": {
      "post": {
        "operationId": "resetSandboxAccount",
        "tags": [
          "Sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.api.getdaffodil.com",
            "description": "Sandbox"
          }
        ],
        "summary": "Reset your Sandbox Account",
        "description": "Deletes every Donor, Fund, Contribution, Grant, Campaign, Checkout Session, and Ledger entry on your Sandbox Account, so you can run your integration again from nothing. API keys, webhook Destinations, and Events already sent are kept. No Events are sent for what it deletes. Sandbox only: exists on `sandbox.api.getdaffodil.com` and answers 404 `not_found` everywhere else.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "What the reset removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxReset"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/funds": {
      "post": {
        "operationId": "createSandboxSharedFund",
        "tags": [
          "Sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.api.getdaffodil.com",
            "description": "Sandbox"
          }
        ],
        "summary": "Open a Shared fund",
        "description": "Opens a `shared` Fund on your Account, as your staff would in Mission Control, so you can raise into it with a Campaign. A reset deletes every Fund, so open one again after a reset. Sandbox only: exists on `sandbox.api.getdaffodil.com` and answers 404 `not_found` everywhere else.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSandboxSharedFundRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new Shared fund.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fund"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/webhook_destinations": {
      "post": {
        "operationId": "createSandboxWebhookDestination",
        "tags": [
          "Sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.api.getdaffodil.com",
            "description": "Sandbox"
          }
        ],
        "summary": "Add a webhook Destination",
        "description": "Adds a webhook Destination, as an Admin would on the Destinations settings page, so an automated test can receive Events at a URL it controls. The response is the only time its signing secret is shown. A reset keeps Destinations, so delete yours when your test finishes. Sandbox only: exists on `sandbox.api.getdaffodil.com` and answers 404 `not_found` everywhere else.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSandboxWebhookDestinationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new Destination, with its signing secret.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxWebhookDestination"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    },
    "/v1/sandbox/webhook_destinations/{id}": {
      "delete": {
        "operationId": "deleteSandboxWebhookDestination",
        "tags": [
          "Sandbox"
        ],
        "servers": [
          {
            "url": "https://sandbox.api.getdaffodil.com",
            "description": "Sandbox"
          }
        ],
        "summary": "Delete a webhook Destination",
        "description": "Deletes a webhook Destination. Deliveries still waiting to be retried are not sent. Sandbox only: exists on `sandbox.api.getdaffodil.com` and answers 404 `not_found` everywhere else.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^wh_[0-9A-Za-z]{22}$",
              "example": "wh_56TFFconQbqixIDRorZEa5"
            },
            "required": true,
            "name": "id",
            "in": "path"
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "description": "Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 `idempotency_key_reused`. Keys are kept for 24 hours, per Account and environment.",
              "example": "8e03978e-40d5-43e8-bc93-6894a57f9324"
            },
            "required": true,
            "name": "idempotency-key",
            "in": "header"
          }
        ],
        "responses": {
          "200": {
            "description": "The Destination is gone.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeletedSandboxWebhookDestination"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "400": {
            "description": "Invalid request (`invalid_request`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "401": {
            "description": "API key required (`api_key_missing`), Invalid API key (`api_key_invalid`), API key revoked (`api_key_revoked`), API key for another environment (`api_key_environment_mismatch`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "403": {
            "description": "Platform API not enabled (`api_not_enabled`), Insufficient scope (`insufficient_scope`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "404": {
            "description": "Not found (`not_found`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "409": {
            "description": "Idempotency key in use (`idempotency_key_in_use`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "422": {
            "description": "Idempotency key reused (`idempotency_key_reused`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "description": "Internal error (`internal_error`)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "Request-Id": {
                "$ref": "#/components/headers/Request-Id"
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "checkout_session.completed": {
      "post": {
        "operationId": "event.checkout_session.completed",
        "tags": [
          "Events"
        ],
        "summary": "checkout_session.completed",
        "description": "A payer completed a Checkout Session. Its Contribution follows as `contribution.created`. Delivered at least once, to every webhook Destination subscribed to `checkout_session.completed`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutSessionEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "checkout_session.expired": {
      "post": {
        "operationId": "event.checkout_session.expired",
        "tags": [
          "Events"
        ],
        "summary": "checkout_session.expired",
        "description": "A Checkout Session reached its expiry, 24 hours after creation, unpaid. Delivered at least once, to every webhook Destination subscribed to `checkout_session.expired`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutSessionEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "contribution.created": {
      "post": {
        "operationId": "event.contribution.created",
        "tags": [
          "Events"
        ],
        "summary": "contribution.created",
        "description": "A Contribution was recorded. It is `pending` until its money reaches the Fund. Delivered at least once, to every webhook Destination subscribed to `contribution.created`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContributionEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "contribution.succeeded": {
      "post": {
        "operationId": "event.contribution.succeeded",
        "tags": [
          "Events"
        ],
        "summary": "contribution.succeeded",
        "description": "A Contribution’s Ledger entry posted: the money is in the Fund. Delivered at least once, to every webhook Destination subscribed to `contribution.succeeded`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContributionEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "contribution.failed": {
      "post": {
        "operationId": "event.contribution.failed",
        "tags": [
          "Events"
        ],
        "summary": "contribution.failed",
        "description": "A pending Contribution’s payment failed, so no money reached the Fund. Delivered at least once, to every webhook Destination subscribed to `contribution.failed`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContributionEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "contribution.reversed": {
      "post": {
        "operationId": "event.contribution.reversed",
        "tags": [
          "Events"
        ],
        "summary": "contribution.reversed",
        "description": "A succeeded Contribution was refunded, disputed, or returned by the bank. A `contribution_reversal` Ledger entry posts with it. Delivered at least once, to every webhook Destination subscribed to `contribution.reversed`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContributionEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "grant.created": {
      "post": {
        "operationId": "event.grant.created",
        "tags": [
          "Events"
        ],
        "summary": "grant.created",
        "description": "An Advisor’s grant recommendation was submitted. Delivered at least once, to every webhook Destination subscribed to `grant.created`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "grant.awaiting_account": {
      "post": {
        "operationId": "event.grant.awaiting_account",
        "tags": [
          "Events"
        ],
        "summary": "grant.awaiting_account",
        "description": "A Grant in review now waits on your Account’s staff, in Mission Control. Delivered at least once, to every webhook Destination subscribed to `grant.awaiting_account`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "grant.approved": {
      "post": {
        "operationId": "event.grant.approved",
        "tags": [
          "Events"
        ],
        "summary": "grant.approved",
        "description": "A Grant was approved by your Account and the sponsor. Delivered at least once, to every webhook Destination subscribed to `grant.approved`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "grant.sent": {
      "post": {
        "operationId": "event.grant.sent",
        "tags": [
          "Events"
        ],
        "summary": "grant.sent",
        "description": "A Grant’s payment went out to the nonprofit. Delivered at least once, to every webhook Destination subscribed to `grant.sent`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "grant.paid": {
      "post": {
        "operationId": "event.grant.paid",
        "tags": [
          "Events"
        ],
        "summary": "grant.paid",
        "description": "A Grant’s payment reached the nonprofit. Delivered at least once, to every webhook Destination subscribed to `grant.paid`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "grant.denied": {
      "post": {
        "operationId": "event.grant.denied",
        "tags": [
          "Events"
        ],
        "summary": "grant.denied",
        "description": "A Grant was denied in review. Its Hold is released. Delivered at least once, to every webhook Destination subscribed to `grant.denied`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "grant.canceled": {
      "post": {
        "operationId": "event.grant.canceled",
        "tags": [
          "Events"
        ],
        "summary": "grant.canceled",
        "description": "A Grant was canceled, by its Advisor before approval or by your Account. Delivered at least once, to every webhook Destination subscribed to `grant.canceled`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "grant.returned": {
      "post": {
        "operationId": "event.grant.returned",
        "tags": [
          "Events"
        ],
        "summary": "grant.returned",
        "description": "A Grant’s payment came back. The money is in the Fund again. Delivered at least once, to every webhook Destination subscribed to `grant.returned`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "ledger_entry.posted": {
      "post": {
        "operationId": "event.ledger_entry.posted",
        "tags": [
          "Events"
        ],
        "summary": "ledger_entry.posted",
        "description": "A Ledger entry posted to a Fund. Every change to a balance fires this. Delivered at least once, to every webhook Destination subscribed to `ledger_entry.posted`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LedgerEntryEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "campaign.created": {
      "post": {
        "operationId": "event.campaign.created",
        "tags": [
          "Events"
        ],
        "summary": "campaign.created",
        "description": "A Campaign was created. Delivered at least once, to every webhook Destination subscribed to `campaign.created`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "campaign.updated": {
      "post": {
        "operationId": "event.campaign.updated",
        "tags": [
          "Events"
        ],
        "summary": "campaign.updated",
        "description": "A Campaign changed, including any change to its totals. Delivered at least once, to every webhook Destination subscribed to `campaign.updated`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    },
    "campaign.ended": {
      "post": {
        "operationId": "event.campaign.ended",
        "tags": [
          "Events"
        ],
        "summary": "campaign.ended",
        "description": "A Campaign ended. Delivered at least once, to every webhook Destination subscribed to `campaign.ended`.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "description": "The Event’s `id`. Redeliveries repeat it."
            },
            "required": true,
            "name": "webhook-id",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Unix seconds when this delivery was signed."
            },
            "required": true,
            "name": "webhook-timestamp",
            "in": "header"
          },
          {
            "schema": {
              "type": "string",
              "description": "Standard Webhooks signature: `v1,` then the base64 HMAC-SHA256 of `{webhook-id}.{webhook-timestamp}.{body}`, keyed with the Destination’s signing secret. Verify it with any Standard Webhooks library."
            },
            "required": true,
            "name": "webhook-signature",
            "in": "header"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CampaignEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx acknowledges the delivery. Anything else, or no answer, is retried with backoff."
          }
        }
      }
    }
  }
}
