POST
/
v1
/
donation-pledges
/
{id}
/
complete
curl --request POST \
  --url https://api.endaoment.org/v1/donation-pledges/{id}/complete \
  --header 'x-api-key: <x-api-key>'
[
  {
    "id": "9bc260c9-2724-48ac-802e-fcad3cf3fb88",
    "destinationEntity": "4cc1500a-8dd0-4543-acf0-3b5433ef7a9a",
    "entityType": "org",
    "transactionHash": "0xffa8b0ef694866c23ae004b51661215d6654068cb3e0d3afca8d077047718673",
    "destinationContractAddress": "0xa68bb66c56e99d3a8799907c02a77275a60bf4fe",
    "donorUserId": "86a15444-e720-468d-a50d-e013ead44261",
    "donorAddress": "0x18682b92bfa61e6c2c200c449fb0041124f05427",
    "inputAmount": "250000",
    "inputToken": {
      "id": 1032,
      "symbol": "FIAT.USD",
      "name": "US Dollar",
      "decimals": 6,
      "logoUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
      "type": "Token",
      "featured": false,
      "popularity": 0
    },
    "inputStock": null,
    "netOutputBaseToken": "1",
    "fee": "0",
    "outputBaseToken": {
      "id": 18,
      "symbol": "USDC",
      "name": "USD//C",
      "decimals": 6,
      "logoUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
      "type": "EvmToken",
      "featured": false,
      "popularity": 0,
      "chainId": 31337,
      "contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
    },
    "createdAtUtc": "2025-03-26T18:20:48.493Z",
    "chainId": 31337
  }
]

Headers

x-api-key
string
required

API key used for authentication and authorization

Path Parameters

id
any
required

The unique identifier of the fund

Response

201
application/json
Pledge successfully completed
id
string
required

ID of the Donation

Example:

"9bc260c9-2724-48ac-802e-fcad3cf3fb88"

destinationEntity
string
required

ID of the destination that received the donation. If this is set, all other destinations are null

Example:

"4cc1500a-8dd0-4543-acf0-3b5433ef7a9a"

entityType
object
required

Type of the entity that received the donation

Example:

"org"

transactionHash
string
required

Transaction hash of the donation made to the target entity.

Example:

"0xffa8b0ef694866c23ae004b51661215d6654068cb3e0d3afca8d077047718673"

destinationContractAddress
string
required

Endaoment contract that received the donation

Example:

"0xa68bb66c56e99d3a8799907c02a77275a60bf4fe"

donorUserId
object
required

Id of the user that made the donation. Can be null in case of anonymous donations.

Example:

"86a15444-e720-468d-a50d-e013ead44261"

donorAddress
string
required

On-chain address that made the donation.

Example:

"0x18682b92bfa61e6c2c200c449fb0041124f05427"

inputAmount
string
required

Input token of the donation. Denominated in the smallest currency unit of the input token. For stock donations, this will be the amount of shares donated.

Example:

"250000"

inputToken
object
required

Input token of the donation. Will be null if donation is a stock donation.

Example:
{
  "id": 1032,
  "symbol": "FIAT.USD",
  "name": "US Dollar",
  "decimals": 6,
  "logoUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
  "type": "Token",
  "featured": false,
  "popularity": 0
}
inputStock
object
required

Input stock of the donation. Will be null if donation is a crypto donation.

Example:

null

netOutputBaseToken
string
required

Net Output Amount for the Donation, liquid of fees. Stored in USDC Units. 2'000'000 USDC units = 2.00 USD

Example:

"1"

fee
string
required

Fees charged for the donation. Stored in the smallest unit of the base token (currently USDC). 2'000'000 USDC units = 2.00 USD

Example:

"0"

outputBaseToken
object
required

Output token of the donation

Example:
{
  "id": 18,
  "symbol": "USDC",
  "name": "USD//C",
  "decimals": 6,
  "logoUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389",
  "type": "EvmToken",
  "featured": false,
  "popularity": 0,
  "chainId": 31337,
  "contractAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}
createdAtUtc
string
required

ISO-8601 string describing the UTC Date that this donation was registered in the database

Example:

"2025-03-26T18:20:48.493Z"

chainId
object
required

Chain ID of the Donation.

Example:

31337