Is there a way to add loyalty points to customer and fetch total loyalty points for them?

Is there a way to add loyalty points to customer and fetch total loyalty points for them via an api ?