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"
}