Initial prototype of merchant api