add api for object_discount