Inside of your account you can turn on webhooks so that you can easily and programmatically send donation data to other platforms as it arrives into your Anedot account.

Go to the Settings Page, under the Integrations tab to turn on WebHooks and add the appropriate endpoint that will accept POST requests.

Webhooks on the Anedot platform deliver payloads like the below example:

Example

{
"uid": "xxxxxxxxxxxx",
"name": "John Smith",
"amount_in_dollars": 110.75,
"source": "cash",
"source_code": null,
"origin": "api",
"date": "2016-03-26T03:29:27.234Z",
"processed_date": "2017-03-01T03:29:27.234Z",
"status": "completed",
"donor_type": "individual",
"organization_name": null,
"recurring": false,
"frequency": "Once",
"email": null,
"title": null,
"first_name": "John",
"middle_initial": null,
"last_name": "Smith",
"suffix": null,
"address": {
  "street": "1 Broadway",
  "street_2": null,
  "city": "New York",
  "state": "NY",
  "zip": "70119",
  "country": "US"
},
"street": 1 Broadway,
"street_2": null,
"city": New York,
"state": NY,
"zip": 70119,
"country": "US",
"phone": null,
"employer": null,
"occupation": null,
"comments": null,
"check_number": null,
"custom_fields": null,
"items": [
  {
    "amount": 10.25,
    "campaign_item_uuid": "18640c5a-516e-46a2-91c4-05f5633a1773",
    "description": null,
    "name": "Victory Fund",
    "quantity": 1,
    "total": 10.25,
    "type": "amount",
    "uuid": "3edf6a00-49ab-4ef3-baaa-0c0a673c3861"
  },
  {
    "amount": 50.25,
    "campaign_item_uuid": "f2387aca-41a6-4ee3-aaed-769c0381fba6",
    "description": null,
    "name": "Seats",
    "quantity": 2,
    "total": 100.5,
    "type": "quantity",
    "uuid": "5ac5fe0a-5522-4339-bc63-6b7d3fe9ce08"
  }
]
}


We provide signatures for each webhook request so you can verify the authenticity of the request. You can verify the signature by producing a SHA-256 HMAC hexdigest using the webhook's secret token as the private key and the webhook body represented as a JSON string. The hexdigest you calculate should match the value in our "X-Request-Signature" header for that webhook request.

If you have questions, feel free to message us. 😄

Did this answer your question?