Hightouch is a Data Activation platform that syncs data from sources (database, warehouses, spreadsheet and much more) to business applications and developer tools. This data can be sent to Lago, our usage-based billing platform, to automate your billing process and ensure accurate invoicing for your customers.
Here’s a step-by-step guide to help you get started:
In Lago:
In Hightouch:
To accomplish this, you’ll need first to create a source in Hightouch. This can be done by following these simple steps:
Hightouch Sources
Lago uses Hightouch’s HTTP Request to ingest usage. Here is how to set it up:
Authorization
(secret, used for the API Key) and Content-Type: application/json
headers; andHightouch HTTP Request Destination
In order to send usage from Hightouch to Lago, you will have to create a new Sync. To do so, go in the Syncs tab and create a new sync from a source to this HTTP Request destination.
POST
as the targeted HTTP Method;https://api.getlago.com/api/v1/events
);JSON
and use the JSON editor;You can define manually the JSON payload that will be sent to Lago. Note that Hightouch supports Liquid template language to insert variables from your source to your JSON payload. These variables are created following this syntax: "{{ row.variable }}"
, “variable” being the column name of your source.
Here is a JSON payload example to send usage events to Lago:
The body
structure of the event depends on your use case. Please adapt it if needed (ie: remove or add properties).
Note that you can test your sync with a data sample. As a result of this test, you should see data flowing into Lago, in the events list. Once you are ready to go, you can activate this sync, and define the periodic trigger.
Hightouch Test Sync with Lago
If easier, please find a demo video explaining the full setup to send events from Hightouch to Lago.