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.
Name | Type | Description |
---|---|---|
units | number | Number of units contributed |
type | string | Payment type (see below) |
status | string | The status of the payment (see below) |
valuation | number | The unit price in US dollars |
currency | string | The currency contributed, may be USD, stock symbol, crypto token symbol, etc |
created_at | iso date | When the payment was created |
received_at | iso date | When the payment was received (may be null) |
completed_at | iso date | When 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>'