API Reference
Contributions

Contributions

The Daffy API let's you get information about the contributions you've made to your fund.

⚠️

Contributions are private. You can only get those associated to the API key provided.

Get Contributions

Resource

GET    /v1/contributions

Sample Response

{
  "items": [
    {
      "units": 100,
      "type": "crypto_payment",
      "status": "success",
      "valuation": 1,
      "currency": "USDT",
      "frequency": "OneTime",
      "created_at": "2022-01-01T00:00:00Z",
      "received_at": "2022-01-02T00:00:00Z",
      "completed_at": "2022-01-03T00:00:00Z",
      "id": 1
    },
    {
      "units": 200,
      "type": "crypto_payment",
      "status": "success",
      "valuation": 1,
      "currency": "USDT",
      "frequency": "OneTime",
      "created_at": "2022-02-01T00:00:00Z",
      "received_at": "2022-02-02T00:00:00Z",
      "completed_at": "2022-02-03T00:00:00Z",
      "id": 2
    }
  ],
  "meta": {
    "count": 2,
    "page": 1,
    "last": 1
  }
}

Response Reference

Domain objects live under the items key, see pagination for more details.

NameTypeDescription
unitsnumberNumber of units contributed
typestringPayment type (see below)
statusstringThe status of the payment (see below)
valuationnumberThe unit price in US dollars
currencystringThe currency contributed, may be USD, stock symbol, crypto token symbol, etc
created_atiso dateWhen the payment was created
received_atiso dateWhen the payment was received (may be null)
completed_atiso dateWhen the payment was completed (may be null)

The type field can have the following values:

  • bank_account_scheduled_deposit
  • credit_card_scheduled_deposit
  • crypto_payment
  • stock_payment
  • check_payment
  • wire_payment
  • check_daf_transfer
  • wire_daf_transfer
  • company_payment
  • third_party_payment

The status field can have the following values:

  • pending
  • success
  • waiting_for_funds
  • failed

Sample Request

curl "https://public.daffy.org/v1/contributions" -H 'X-Api-Key: <YOUR KEY HERE>'