Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To learn more about webhooks, please visit our standard API documentation.  If you are unable to view, please reach out to support@sighten.io and they will provide access.

The Contract Webhook Statuses + DAL

The contract webhook is sent to the configured endpoint whenever a document is generated, sent, signed, and voided.  Most commonly, integrated partners only consume the webhook when the status is SIGN, and then parse out the desired information.  This ensure the homeowner has fully agreed to the proposal and is ready to move forward.  With the automatic update from the webhook, you can now pull down all the homeowner, usage, project, and quote details that you need without any additional user interaction: simply fire off another request to pull down the data.  You can learn more about the DAL here.

Fields in the Contract Webhook

Upon receiving the contract webhook, most integrated partners store down the following:
  • site (uuid) - this is the site UUID - this ID is 1:1 with a job in Sighten.  You may want to use this to create a new record in your portal and maintain the job sync, or use the identifier to find a job that already existing in your portal.
  • quote (uuid) - this is the quote UUID is similar to the site ID, except that it is not 1:1; there can be any number of quotes on a given job (or site).  The quote ID is also important here because it signifies and helps access all the contracted details.
  • sub_tasks > document_status - this will be SIGN when the contract is full executed
  •  sub_tasks > data > documents > uuid - you will need to store this information and make a GET request to: /api/v1/document/{uuid}/download/ to download the signed contract
  • sub_tasks > data > envelopes > date_signed - this will populate with date of the signed contract.  You can also pull this via the DAL or just use current day's date when you receive a signed webhook.
    • Please note, depending on the configuration of your contract tasks, there may be multiple subtasks.  To ensure you are pulling from the right subtask, you will want to identify the sub_task with category: DOCUMENT (there can only be one DOCUMENT subtask per task, so if you do the right logic, you will have the right subtask).
There is A LOT more data in the contract webhook.  If you have any questions, please reach out to support@sighten.io.  
  • No labels