Skip to content

Examples and testing

Testing

You can configure your webhook against a test webhook URL (which in turn you can get from e.g. webhook.site). This URL will display the data that has been sent from Lime and in what format allowing you to more easily debug your webhook.

Warning

Make sure to never send personal data to untrusted third parties! Thus, only configure your webhook to this test url with test data.

Example

If the event is for example [lead.new], the data sent will be all the limeobject data in the following format:

{
  "event": "lead.new",
  "body": {
    "id": 1004,
    "limetype": "lead",
    "values": {
      "lastname": "Testsson",
      "whentoinstall": "withinsixmonths",
      "builtyear": "",
      "email": "[email protected]",
      "reseller": null,
      "nooffloors": "",
      "city": "",
      "lead_type": "empty",
      "phone": "",
      "casesenttoendcustomer": null,
      "casestart": "2023-10-27T13:34:56.420000+02:00",
      "firstname": "",
      "convertdate": null,
      "rejectiondate": null,
      "id": 1004,
      "createduser": 1,
      "createdtime": "2023-10-27T13:35:02.807000+02:00",
      "updateduser": 1,
      "timestamp": "2023-10-27T13:35:02.847000+02:00"
    }
  }
}

If the event is [lead.update], all data from the limeobject is sent, but the fields that have changed are specified in "original_values", with the old values.

{
  "event": "lead.update",
  "body": {
    "id": 1002,
    "limetype": "lead",
    "original_values": {
      "phone": "0704445556"
    },
    "values": {
      "lastname": "Testsson",
      "whentoinstall": "withinsixmonths",
      "builtyear": "",
      "email": "[email protected]",
      "reseller": null,
      "nooffloors": "",
      "city": "",
      "lead_type": "empty",
      "phone": "",
      "casesenttoendcustomer": null,
      "casestart": "2023-10-27T13:34:56.420000+02:00",
      "firstname": "",
      "convertdate": null,
      "rejectiondate": null,
      "id": 1004,
      "createduser": 1,
      "createdtime": "2023-10-27T13:35:02.807000+02:00",
      "updateduser": 1,
      "timestamp": "2023-10-27T13:35:02.847000+02:00"
    }
  }
}
Back to top