Payments and integrations

Webhooks: let your other systems hear about Daftiq events

The Webhooks module sends the data of a Daftiq event to an address you choose. When, say, a sales invoice is created, Daftiq calls your https URL with a JSON message holding the event name, module, time and the invoice details. You pick the event and URL in Settings. Each call is signed with a secret so your system can check it came from Daftiq.

Plans
Standard and Premium · See pricing
Area
Payments and integrations
Languages
English and Urdu (right to left)

Start free · Plans and pricing · See all 42 Daftiq modules

Who it is for

For businesses in Pakistan with a developer or IT partner who want Daftiq to feed another system: a website, a delivery app, a reporting database, or a no-code tool that accepts webhooks.

What is in Webhooks

Add a webhook in Settings

Open Settings, then Webhook Settings, and click Add Webhook. Choose GET or POST, pick an event from the list, and enter the URL. You can add as many webhooks as you need.

  • Only https addresses on the public internet are accepted
  • Switch each webhook on or off without deleting it
  • Edit or delete a webhook at any time

The events you can send

The event list is grouped by module. An event only fires when the module behind it is in use.

  • General: new user, sales invoice created or posted, proposal created or accepted, new purchase bill, new warehouse
  • Accounting: new customer, vendor or revenue
  • CRM: new lead or deal, lead or deal moved, lead converted to deal
  • Projects: new project, milestone, task, bug, comment and task stage change
  • HRM: award, announcement, holiday, event. Recruitment, Training, Contracts and Zoom Meetings events too

What your system receives

With POST, the body is JSON: event, module, timestamp and data. With GET, the same four values come as query parameters, with data as a JSON string.

  • Data holds the record's main fields, for example invoice number, dates, customer, warehouse, tax and totals
  • X-Webhook-Delivery header with a unique ID for each delivery
  • X-Signature header: an HMAC-SHA256 of the payload, made with the webhook's secret

Signing secret, retries and status

Every webhook gets its own signing secret, shown in Settings with a copy button. Calls go out from a queue after the record is saved.

  • Network errors, timeouts, 429 and 5xx answers are tried again, up to four attempts within about 40 minutes
  • A 400, 401 or 404 answer is not retried
  • Settings shows the last delivery: success with its HTTP code, or the error and how many failed in a row

How it works with other modules

  • Daftiq's sales invoices, proposals, purchase bills and warehouses send events without any other module.
  • New leads, deals, stage moves and conversions in CRM can each call a different URL.
  • New customers, vendors and revenue from Accounting can keep an outside system up to date.
  • Projects, tasks and bugs from Projects, and HR records from HRM and Recruitment, have their own events.

Everything in Webhooks

All Webhooks features

Good to know

  • Webhooks only go out from Daftiq. This module does not receive data from other apps.
  • Events are about new records and stage or status changes; edits and deletions are not sent.
  • There is no resend button or full delivery history; Settings shows only the latest result for each webhook.
  • You need something on the other side that can receive and read the call, such as your own server or an automation tool.

Frequently asked questions

How do I check that a call really came from Daftiq?

Work out the HMAC-SHA256 of the raw body (or of the query string for GET) with the webhook's signing secret, and compare it with the X-Signature header.

What happens if my server is down?

Daftiq tries again after about 1, 5 and 30 minutes. Your work in Daftiq is never held up, and Settings shows the error and the number of failures in a row.

Can one event go to more than one address?

Yes. Add a separate webhook for each URL and pick the same event.

Can I send to a local or office server?

Only if it has a public https address. Private and local addresses are refused for safety.

I only want a message in a chat, not data. What should I use?

Use Slack or Telegram. They post a short readable line instead of JSON data.

Other modules in this area

  • JazzCash, Easypaisa & Raast: Customers pay invoices by JazzCash or Easypaisa; a Raast QR code prints on invoices and POS orders.
  • Slack: Short messages in one Slack channel when invoices, leads, deals, tasks and other records are created or move.
  • Telegram: A Telegram bot sends a short message to one chat or group when sales, CRM, HR and project records change.
  • Twilio SMS: SMS through your own Twilio account to the people a record concerns: task assignees, employees, salespeople and more.
  • Zoom Meetings: Schedule, start and cancel Zoom meetings from Daftiq, with host, participants and a list or calendar view.

Start with one module. It’s free.

No card needed. Add more modules, people and AI when the business is ready for them.

Create your account · Contact Sales