From airmilesmart terms and conditions:
Accrual of Points
You will be credited miles based on the amount of net purchases made at participating merchants. The net purchase is defined as the total amount paid to the merchant minus tax, gift-wrapping, shipping, promotional credits, returns, cancellations, discounts, and transaction fees. Certain types of merchandise are excluded from earning miles, including but not limited to gift certificates and cash or cash equivalents.