Hi all! Is there any way to check if the discount in order is from automatic discount or other source?
After more research I found answer for that. In order object there is field "discount_applications" and there is array with discount data. Automatic discount is listed there with "type: 'automatic'".