Daftra Trigger icon

Daftra Trigger

Handle Daftra webhooks

Daftra Trigger

AI-generated

Summary

Registers a Daftra webhook when the workflow is activated, subscribing to the selected events. Each incoming POST webhook payload is emitted as one item on the main output.

Inputs

  • Events (required) — Select one or more events to subscribe to: customer created, invoice created, invoice paid, product created, or stock changed. The selection defaults to empty.
  • Daftra Enterprise API credentials (required) — Credentials provide the Daftra subdomain and API key, with an optional bearer token, for registering the webhook.

Output shape

A single item per webhook request, with the request body as its JSON data.

On activation, sends the webhook URL and selected events to Daftra’s /webhooks endpoint. Deactivation does not delete the registered webhook in this implementation.

Links

Discussion