@url variable was being created at the wrong place
Accessing statements endpoint