How to add points to a user programatically?
If you are integrating points and rewards with an external plugin, or you are creating a custom case to give points to your users, you could use something like this:
args = array(
'description' => sanitize_text_field( 'this is a test' ),
);
$ywpar_customer = ywpar_get_customer( $user_id );
$ywpar_customer->update_points( $points_to_add, 'custom_action', $args );
where $user_id is the id number of the user, and $points_to_add the points you want to add to the user.