Points are rewarded once the order status is "Paid", therefore canceling or refunding an order will deduct the points you had earned on the order.