Skip to main content
The FreshBooks plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see Overview for setup context and the exact URL shape).
New to Corsair? See webhooks and hooks.

Webhook map

  • bill
    • create (bill.create)
    • delete (bill.delete)
    • update (bill.update)
  • billVendor
    • create (billVendor.create)
    • delete (billVendor.delete)
    • update (billVendor.update)
  • callback
    • verify (callback.verify)
  • category
    • create (category.create)
    • delete (category.delete)
    • update (category.update)
  • client
    • create (client.create)
    • delete (client.delete)
    • update (client.update)
  • creditNote
    • create (creditNote.create)
    • delete (creditNote.delete)
    • update (creditNote.update)
  • estimate
    • create (estimate.create)
    • delete (estimate.delete)
    • sendByEmail (estimate.sendByEmail)
    • update (estimate.update)
  • expense
    • create (expense.create)
    • delete (expense.delete)
    • update (expense.update)
  • invoice
    • create (invoice.create)
    • delete (invoice.delete)
    • sendByEmail (invoice.sendByEmail)
    • update (invoice.update)
  • item
    • create (item.create)
    • delete (item.delete)
    • update (item.update)
  • payment
    • create (payment.create)
    • delete (payment.delete)
    • update (payment.update)
  • project
    • create (project.create)
    • delete (project.delete)
    • update (project.update)
  • recurring
    • create (recurring.create)
    • delete (recurring.delete)
    • update (recurring.update)
  • service
    • create (service.create)
    • delete (service.delete)
    • update (service.update)
  • tax
    • create (tax.create)
    • delete (tax.delete)
    • update (tax.update)
  • timeEntry
    • create (timeEntry.create)
    • delete (timeEntry.delete)
    • update (timeEntry.update)

HTTP handler setup

app/api/webhook/route.ts

Events

Bill

Create

bill.create A bill was created (bill.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

bill.delete A bill was deleted (bill.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

bill.update A bill was updated (bill.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Bill Vendor

Create

billVendor.create A bill vendor was created (bill_vendor.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

billVendor.delete A bill vendor was deleted (bill_vendor.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

billVendor.update A bill vendor was updated (bill_vendor.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Callback

Verify

callback.verify FreshBooks sent the verification code of a new webhook callback (callback.verify, unsigned). Send verifier back with callbacks.verify and keep it as the webhook secret. Payload
webhookHooks example

Category

Create

category.create A category was created (category.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

category.delete A category was deleted (category.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

category.update A category was updated (category.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Client

Create

client.create A client was created (client.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

client.delete A client was deleted (client.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

client.update A client was updated (client.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Credit Note

Create

creditNote.create A credit note was created (credit_note.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

creditNote.delete A credit note was deleted (credit_note.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

creditNote.update A credit note was updated (credit_note.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Estimate

Create

estimate.create A estimate was created (estimate.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

estimate.delete A estimate was deleted (estimate.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Send By Email

estimate.sendByEmail A estimate was sent by email (estimate.sendByEmail). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

estimate.update A estimate was updated (estimate.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Expense

Create

expense.create A expense was created (expense.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

expense.delete A expense was deleted (expense.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

expense.update A expense was updated (expense.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Invoice

Create

invoice.create A invoice was created (invoice.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

invoice.delete A invoice was deleted (invoice.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Send By Email

invoice.sendByEmail A invoice was sent by email (invoice.sendByEmail). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

invoice.update A invoice was updated (invoice.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Item

Create

item.create A item was created (item.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

item.delete A item was deleted (item.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

item.update A item was updated (item.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Payment

Create

payment.create A payment was created (payment.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

payment.delete A payment was deleted (payment.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

payment.update A payment was updated (payment.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Project

Create

project.create A project was created (project.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

project.delete A project was deleted (project.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

project.update A project was updated (project.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Recurring

Create

recurring.create A recurring invoice profile was created (recurring.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

recurring.delete A recurring invoice profile was deleted (recurring.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

recurring.update A recurring invoice profile was updated (recurring.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Service

Create

service.create A service was created (service.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

service.delete A service was deleted (service.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

service.update A service was updated (service.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Tax

Create

tax.create A tax was created (tax.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

tax.delete A tax was deleted (tax.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

tax.update A tax was updated (tax.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Time Entry

Create

timeEntry.create A time entry was created (time_entry.create). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Delete

timeEntry.delete A time entry was deleted (time_entry.delete). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example

Update

timeEntry.update A time entry was updated (time_entry.update). The body names the object by object_id; read it with the matching get operation. Payload
webhookHooks example