Developer forum

Forum » Development » Completeing order in Dwapi doesnt trigger cartbeforesave

Completeing order in Dwapi doesnt trigger cartbeforesave

Theodor Perrier
Reply

Calling 

​/dwapi​/ecommerce​/carts​/{secret}​/createorder

through the DWAPI doesn't trigger her Ecommerse.Order.BeforeSave NotificationSubscriber.

 


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

From what I can see the notification should be triggered.
Make sure that you make a POST request and not a GET request.
What response status code do you get when calling ​createorder?
Check for errors in the event viewer and the logs on cart and order.

/Morten 

Votes for this answer: 1
 
Theodor Perrier
Reply

Hey Morten.

Thanks for the quick response! I've found the issue, the notificationsubscriber is hit on completion from the api

 

You must be logged in to post in the forum