update merchant api and sample