Skip to Content
N3O Docs

Receiving data by webhook

How to set up a JSON feed whose own address another system, such as your website or Amanahfy, sends each new record to as it happens, and where to see what's arrived.

Where: Engage, Imports, Queues and Feeds
If you can't see it
Your role doesn't include importing data, or setting up import queues, feeds and transforms, and the reasons for setting import records aside. Your administrator can add them to your role: they're called Import Data and Manage Import Setup.

Pas encore traduite

Cette page n'a pas encore été traduite : elle est affichée en anglais.

Your website, or a platform such as Amanahfy, can send each new donation to Engage as soon as it's made, instead of waiting for someone to download a report and upload it. It sends them to a JSON feed, to the feed's own address, and Engage imports each one as it arrives, the way the Imports overview describes. Webhooks, in Integrations, explains how one system sends another a message like this the moment something happens.

Setting it up is shared work. You create the feed in Engage and give its address to whoever runs the other system. They set that system to send to it.

Create the feed

  1. On Queues and Feeds, select Create New Feed on the queue's card, then JSON.
  2. On Choose Template, choose the template for what's being sent. For Amanahfy, that's Amanahfy Donations Webhook or Amanahfy Fundraisers Export. For another system, it's the JSON Webhook template for the queue's kind of data, such as JSON Webhook (Donation). Ready-made templates says what each brings in.
  3. Check Record Settings, as for a file feed. Answering No to "Should Engage suppress communication actions for imported data?" lets each new donation send its receipt as usual.
  4. Under Webhook Settings, on Source Settings, you can list the internet addresses the other system sends from, in Webhooks IP Whitelist. Engage then turns away anything sent from elsewhere. Ask whoever runs the other system whether it sends from fixed addresses. Leave the list empty to accept deliveries from anywhere.
  5. On Mapping, check where each field is read from. A JSON delivery gives each value a name instead of a column. So each field is read from a path to that name, such as $.firstName. A template's mapping is done for you.
  6. Select Create Feed.

Creating a CSV feed and importing a file explains Record Settings and Mapping in more detail.

Find the feed's address

Open the queue from Queues and Feeds and go to Info & Imports History. The Feeds card shows the feed's address under Post to. Copy the whole address and give it to whoever runs the other system. Anyone who has the address can send to it, so share it only with them.

See what's arrived

Once the other system has sent something, look at the queue. Each delivery shows in Import Runs on Info & Imports History, and its import record in Queue Records, as Checking a queue and its records shows.

If nothing arrives, check the address the other system is sending to. If you made a list of allowed addresses, check that the address the other system sends from is on it. A delivery Engage turns away doesn't show in the queue at all.

Sur cette page