I have registered a webhook. I get reply that it is registered and when i run GET /litium/api/webhooks/registrations i get it back:
[
{
“description”: “Erp Connector Order Confirmed”,
“filters”: [
“Litium.Connect.Erp.Events.OrderConfirmed”
],
“headers”: {},
“id”: “orderConfirmed”,
“properties”: {
“RemoteIpAddress”: “127.0.0.1”,
“Device”: “”
},
“secret”: “12345678901234567890123456789012”,
“webHookUri”: “https://blablablabla.ngrok.io/api/Webhook/OrderComplete”
}
]
(i removed the real ngrok url from my example above…)
I have verified that when I visit the webhookUri myself it is up and running and working properly.
But… when i place an order… no callback to my webHookUri ever happens… any ideas? Is there any setup missing?
Also: the documenation here: https://docs.litium.com/documentation/architecture/events-handling/webhooks/webhook-registration for webhooks has a faulty example, the event for OrderComplete is not Litium.Accelerator.Events.OrderConfirmed as that page says, its Litium.Connect.Erp.Events.OrderConfirmed the one in documentation results in error.
Local project running Litium 7.4.2 The same code that runs this worked fine on the test erp connect website you had set up for us before.
/Martin

