n8n

How to install the Retiva node in your n8n, add your API key as a credential and run workflows on Retiva events.

For n8n, Retiva has the community node n8n-nodes-retiva. You install it in your n8n and use two nodes. Retiva Trigger starts a workflow on Retiva events. Retiva reads and changes data in Retiva.

Installing and connecting

  1. In the Retiva dashboard, open Integrations and click Create an API key on the n8n card. The form already has the name “n8n” and the permissions the node uses. Click Create key and copy the key. You can read more about keys in API keys.
  2. In n8n, open Settings, choose Community nodes, click Install and enter the package name n8n-nodes-retiva.
  3. Add a Retiva API credential and paste the key. Leave Base URL as it is. The default address is https://app.retiva.io/api/v1. n8n checks the key straight away.

Retiva Trigger

In the node, you pick the events that start the workflow:

When you activate the workflow, the node subscribes to each chosen event in Retiva. When you deactivate the workflow, the node removes the subscriptions. The node checks the signature of every notification, so nobody else can start your workflow.

Each item has event, delivery_id and data. When Retiva retries a notification, delivery_id stays the same. A workflow can therefore skip a notification it has already handled.

Retiva

Resource Operations
Voucher or Ticket Find by Code, Get, Get Many, Get Redemptions, Issue, Redeem or Check In, Cancel Redemption
Order Get, Get Many
Coupon Offer Get, Get Many, Claim for Customer
Customer Get, Get Many
Loyalty Member Get, Get Many
Loyalty Card Get, Get Many
Product Get, Get Many
Store Get, Get Many

The Redeem or Check In and Cancel Redemption operations take the code the customer holds. The node checks the voucher’s type itself. On a monetary voucher it asks for an amount, and on an experience voucher it asks for uses. The node redeems a ticket, a single-use voucher or a coupon in full.

Things to watch

See also