Skip to content

Webhook Integration

Configure TaprNext to push approved invoices to your endpoint via webhooks.

The system follows a flow where invoice approval in TaprNext triggers the webhook service, which then sends a POST request to your configured endpoint for further processing in your ERP.

  1. Navigate to Tapr Settings > Integrations > Webhooks
  2. Click Add Webhook
  3. Fill in these fields:
    • Name: Descriptive identifier (e.g., “ERP Invoice Sync”)
    • URL: Your receiving endpoint (e.g., https://api.yourcompany.com/invoices)
    • Events: Select triggers like invoice.approved
    • Secret: Auto-generated HMAC signing key
    • Active: Enable the webhook
EventTriggerPurpose
invoice.approvedInvoice approvalSend to ERP
invoice.rejectedInvoice rejectionVendor notification
invoice.postedERP posting completeReceipt confirmation
invoice.createdNew invoice arrivalAlerts
vendor.createdNew vendor creationERP synchronization

Webhooks deliver JSON containing invoice details: vendor information, amounts, line items, dates, PO references, approval metadata, and a cryptographic signature for verification.

HMAC signature (recommended): TaprNext signs requests with X-Tapr-Signature: sha256=<hash> header for verification.

API key header: Include X-API-Key in requests.

Basic auth: Embed credentials in the URL.

Failed deliveries retry at escalating intervals: immediate, 1 minute, 5 minutes, 30 minutes, and 2 hours. The system retries on 5xx errors, timeouts, and connection failures—but not on 4xx errors or invalid responses.

Use the Test button to send sample payloads. Monitor delivery history in Settings > Integrations > Webhook Logs with filtering options.

Python (Flask) and Node.js (Express) examples demonstrate signature verification and invoice processing workflows.