In Share-A-Sale, we had a custom commission set to reward 30% if a new customer was referred from an affiliate marketer. We saw a substantial difference in new customers from affiliate marketers, compared to other DTC channels, so I began to investigate.
Findings showed that a referral would be flagged as no cookie value was initially present, even if a customer checked out using their account. This additional check alone, found savings of $42,000/year.
Since then, the bonus commission program has now been deprecated, but we have implemented additional checks that have found otherwise overlooked savings. We now run checks on commisson percentage errors, remove ineligible items from the subtotal that calculates a commision's percentage, and void orders that have been canceled for various reasons.
-
Python 3.9.6
-
Create a file named config.py file based on config_example.py
- Get an API Key from Share A Sale in the Merchant API center. https://shareasale.com
- Clone the repo
git clone https://github.com/MDeanLindsay/Share-A-Sale.git
- Create virtual enviornment.
python -m venv .venv
- Initiate venv.
.\.venv\Scripts\activate
- Install requirements.
pip install -r requirements.txt