POST
/
v1
/
donation-pledges
/
wire
curl --request POST \
  --url https://api.endaoment.org/v1/donation-pledges/wire \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pledgedAmountMicroDollars": "5000000",
  "receivingFundId": "123e4567-e89b-12d3-a456-426614174000",
  "idempotencyKey": "123e4567-e89b-12d3-a456-426614174000",
  "isRebalanceRequested": false,
  "donorIdentity": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "john.doe@example.com",
    "address": {
      "line1": "123 Main Street",
      "line2": "Suite 100",
      "city": "San Francisco",
      "state": "CA",
      "zip": "94105",
      "country": "USA"
    }
  }
}'
{
  "id": "123e4567-e89b-12d3-a456-426614174000"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
pledgedAmountMicroDollars
string
required

The amount to donate in microdollars (1 USD = 1,000,000 microdollars)

Example:

"5000000"

receivingFundId
string
required

The UUID of the fund that will receive the donation

Example:

"123e4567-e89b-12d3-a456-426614174000"

idempotencyKey
string
required

Client-generated UUID to ensure idempotency of the request

Example:

"123e4567-e89b-12d3-a456-426614174000"

isRebalanceRequested
boolean
default:false

Whether the fund should be rebalanced after the donation is fulfilled

Example:

false

donorIdentity
object

Donor identity information to be used in the donation receipt

Response

200
application/json
Wire transfer pledge successfully created
id
string
required

Unique identifier of the created donation pledge

Example:

"123e4567-e89b-12d3-a456-426614174000"