DaffodilAPI
Grants

Cancel a Grant

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).

POST
/v1/grants/{id}/cancel
AuthorizationBearer <token>

Your secret API key: dfl_live_… in production, dfl_test_… in the Sandbox.

In: header

Path Parameters

idstring
Match^grant_[0-9A-Za-z]{22}$

Header Parameters

idempotency-keystring

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.

Length1 <= length <= 255

Response Body

curl -X POST "https://sandbox.api.getdaffodil.com/v1/grants/grant_4L7rLlNbH1QV3X9LRqjcrB/cancel" \  -H "idempotency-key: 8e03978e-40d5-43e8-bc93-6894a57f9324"
{
  "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"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}