> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endaoment.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Fund a DAF

> Submit a wire donation pledge to fund a donor-advised fund.

## Outcome

A wire donation pledge is created for the selected fund. The user receives wire instructions and a pledge ID to track the inbound transfer.

## When

After [Open a Fund](./create-daf). Trigger when the user chooses to contribute by bank wire.

This guide covers the **wire** flow end to end. Other donation types are listed below with API links only.

## Auth

| Call | Auth |
| - | - |
| `GET /v1/funds/mine` | Bearer |
| `GET /v1/donation-pledges/wire/details/domestic` | Public |
| `POST /v1/donation-pledges/wire` | Bearer |

## Endpoints (wire flow)

| Step | Method | Path | API reference |
| - | - | - | - |
| 1. List user's funds | GET | `/v1/funds/mine` | [List my funds](/developers/api/funds/list-my-funds) |
| 2. Get wire instructions | GET | `/v1/donation-pledges/wire/details/domestic` | [Get domestic wire details](/developers/api/donations/get-domestic-wire-details) |
| 3. Create wire pledge | POST | `/v1/donation-pledges/wire` | [Create wire donation pledge](/developers/api/donations/create-wire-donation-pledge) |

International wire instructions: [Get international wire details](/developers/api/donations/get-international-wire-details).

See also: [Donations](/developers/api/donations/create-wire-donation-pledge) in API reference.

## Required inputs (wire pledge)

| Field | Description |
| - | - |
| `receivingFundId` | Target fund from `/v1/funds/mine` |
| `pledgedAmountMicroDollars` | Donation amount in **microdollars** |
| `idempotencyKey` | New UUID per submission |
| `donorIdentity` | Optional override of donor identity — omit to use the authenticated user's stored identity. If provided, must include `firstName`, `lastName`, `email`, and `address` |

See the API reference for the full request schema.

## Example: create wire pledge

Omit `donorIdentity` to use the authenticated user's identity (typical quickstart path):

```bash theme={null}
curl -X POST "https://api.dev.endaoment.org/v1/donation-pledges/wire" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "receivingFundId": "FUND_UUID",
    "pledgedAmountMicroDollars": "100000000",
    "idempotencyKey": "550e8400-e29b-41d4-a716-446655440000"
  }'
```

To override donor identity, include a complete `donorIdentity` object with `address`:

```bash theme={null}
curl -X POST "https://api.dev.endaoment.org/v1/donation-pledges/wire" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "receivingFundId": "FUND_UUID",
    "pledgedAmountMicroDollars": "100000000",
    "idempotencyKey": "550e8400-e29b-41d4-a716-446655440000",
    "donorIdentity": {
      "firstName": "Alex",
      "lastName": "Donor",
      "email": "alex@example.com",
      "address": {
        "line1": "123 Main St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94105"
      }
    }
  }'
```

## Response you need

| Field | Use |
| - | - |
| Pledge `id` | Track donation status |
| Wire details (step 2) | Show user where to send funds |

## Other donation types

| Type | Endpoint | API reference |
| - | - | - |
| Crypto | `POST /v1/donation-pledges/crypto` | [Create crypto donation pledge](/developers/api/donations/create-crypto-donation-pledge) |
| Stock | `POST /v2/donation-pledges/stock` | [Create stock donation pledge](/developers/api/donations/create-stock-donation-pledge) |
| DAF migration | `POST /v1/donation-pledges/daf-migration` | [Create DAF migration pledge](/developers/api/donations/create-daf-migration-pledge) |

## Common mistakes

* Using `fundId` / `amount` field names (API expects `receivingFundId` / `pledgedAmountMicroDollars`)
* Providing partial `donorIdentity` without `address` (omit the object entirely or include all required fields)
* Using dollar amounts instead of microdollars
* Reusing `idempotencyKey` for different pledge attempts

**Next:** [Find a Nonprofit](./search-for-org)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.