If you find any instructions in this article do not function as intended, it's possible it may be out of date. When in doubt, please contact support for further assistance.
It's no longer possible to add promo codes as an affiliate. View the Refer and Earn rewards program article for further details.
The rewards API module contains commands for managing promo codes and tracking referrals.
Commands
rewards-remove_promo_code
Removes a promo code (only allowed if the code was never used).
Command | rewards-remove_promo_code |
Values |
code |
Result |
success |
Possible errors |
invalid_code |
rewards-enable_promo_code
Enables a promo code so it can be used again (must have been disabled).
Command | rewards-enable_promo_code |
Values |
code |
Result |
success |
Possible errors |
invalid_code |
rewards-disable_promo_code
Disables a promo code so it can no longer be used (must be enabled).
Command | rewards-disable_promo_code |
Values |
code |
Result |
success |
Possible errors |
invalid_code |
rewards-list_promo_codes
Lists all the promo codes you have created.
Command | rewards-list_promo_codes |
Values |
(none) |
Result |
success |
Possible errors |
(none) |
rewards-promo_details
Gets the detailed information for a promo code (you must have created the code).
Command | rewards-promo_details |
Values |
code |
Result |
success |
Possible errors |
no_code |
rewards-referral_summary
Gives a summary of all referrals for the given time period.
Command | rewards-referral_summary |
Values |
period : a period of time such as "1 day" or "3 months" |
Result |
success |
Possible errors |
no_period |
rewards-referral_log
Returns a raw log of of referrals for the given time period. If the person signed up, then it also shows their webid and signup time.
Command | rewards-referral_log |
Values |
period : a period of time such as "1 day" or "3 months" |
Result |
success |
Possible errors |
no_period |