Step 1: Go to Loyalty Rewards > Set up program > Earn Points.
Step 2: Now, click on the Make a Purchase tab.

Step 4: Add the approval period in days. This is also the place where you can choose to exclude shipping costs or sale-based products from point allocation. You can also revert the points on order cancellation. Click save/update when done.

Note:
1.) Revert point on order cancellation will only work if you have marked as Refunded/Partially refunded the payment
2.) If you enable Exclude sales product, the points will not be assigned to the customer on the Sales order, or the 0 points will be assigned to the customer.