Description

SoftLedger can create Webhooks to bring data into SoftLedger from external systems. Manage the available Webhooks to be used within SoftLedger from Settings>Webhooks.

 

Add Webhook

Enter the required fields and click Submit.

Fields:

  • Object Type - Object which will trigger the Webhook.
  • Object Action - Action performed on the object that will trigger the Webhook.
  • Webhook URL- URL to send the request to.

 

Currently Supported Webhooks

  • Items - CREATE/UPDATE/DELETE
  • Purchase Orders - CREATE/RECEIVE/UPDATE/DELETE

If there is an object or action you would like to receive Webhooks for that is currently unsupported, please contact our support team. We prioritize these requests and make them available rapidly.

 

Receiving webhooks.

Webhooks are sent as a HTTP POST to the URL provided. The body of the request will contain the following information:

  • "objectType" - Type of object.
  • "tenantId" - SoftLedger unique tenantId. This is provided when API credentials are requested.
  • "objectId" - "_id" value of the object.
  • "action" - The action performed on the object.

Example:

{
"objectType": "PurchaseOrder",
"tenantId": "xxxx-xxxxx-xxxxx-xxxxx",
"objectId: 1234,
"action": "CREATE"
}