I wrote a small script to work with the e commerce api, but for some reason, it doesn't work.
Moreover, it produces a very strange error.
Please check.
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<button onClick="test()">Test</button>
<script>
function test(){
req =...