/
Webhook examples

Webhook examples

 

Get updates for nominated and operational voyages in Master scenario:

{ "eventType":"U", "user": "your user code", "objectType":"Voyage", "expression": "dlpObject.getVoyageHeader() != null && (dlpObject.getVoyageHeader().getVoyageStatus().getStatusTypeCode().equals(\"NOM\") || dlpObject.getVoyageHeader().getVoyageStatus().getStatusTypeCode().equals(\"OPR\")) && dlpObject.getVoyageHeader().getIsBudget().equals(false) && dlpObject.getVoyageHeader().getIsTemplate().equals(false) &&dlpObject.getVoyageHeader().getIsEstimate().equals(false) && dlpObject.getVoyageHeader().getIsUnallocated().equals(false) && dlpObject.getScenarios() != null && dlpObject.getScenarios().size() > 0 && dlpObject.getScenarios().get(0).getScenarioCode().equals(\"MASTER\")", "onlyMainObject": true, "url": "", "webhookUsername": "", "webhookPassword": "" }

 

Get notification when an invoice is posted and ready to be transferred to accounting. Set the status to Posted when it's transferred to accounting. For more information about accounting integration see: Accounting Integration API

{ "eventType":"U", "user": the user code to be used in the subscription, "objectType":"Document", "expression": "dlpObject.getInvoicingStatus() != null && dlpObject.getInvoicingStatus().getStatusTypeCode().equals(\"RFP\") && (dlpObject.getDocumentType().getDocumentType().equals(\"INO\") || dlpObject.getDocumentType().getDocumentType().equals(\"INI\") || dlpObject.getDocumentType().getDocumentType().equals(\"CRI\") || dlpObject.getDocumentType().getDocumentType().equals(\"CRO\"))", "onlyMainObject": true, "url": "your webhook url" }

 

Get notified when accruals are posted and and ready to be transferred to accounting. Set the status to Posted when it's transferred to accounting. For more information about accounting integration see: Accounting Integration API

{ "eventType":"U", "user": the user code to be used in the subscription, "objectType":"Document", "expression": "dlpObject.getInvoicingStatus() != null && dlpObject.getInvoicingStatus().getStatusTypeCode().equals(\"RFP\") && (dlpObject.getDocumentType().getDocumentType().equals(\"ACR\") || dlpObject.getDocumentType().getDocumentType().equals(\"ACP\"))", "onlyMainObject": true, "url":"your webhook url" }

Related content

Webhooks - New functionalities from v6.10
Webhooks - New functionalities from v6.10
More like this
Expressions Made Easy
Expressions Made Easy
Read with this
Webhooks
Webhooks
More like this
Getting Started with Dataloy REST API
Getting Started with Dataloy REST API
Read with this
Service Order Integration
Service Order Integration
More like this
Websockets
Websockets
Read with this