prototype for transfers endpoint