Turns out transaction function for REST doesn't work