Title: Invalid Amazon Affiliates Code
Last modified: November 17, 2017

---

# Invalid Amazon Affiliates Code

 *  Resolved [James Byrd](https://wordpress.org/support/users/james-byrd/)
 * (@james-byrd)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/invalid-amazon-affiliates-code/)
 * Initially, I had problems using an old affiliate code that we’ve had for ages
   because it didn’t end with -20. I found the existing thread here in this forum
   where you addressed that, and I can certainly say it is still a problem in the
   developer version of MyBookTable that I downloaded just today.
 * In any case, I went to Amazon and created a brand new code, but MyBookTable still
   claims it is invalid. It does have the -20 at the end. I suspect the problem 
   is that the code includes dashes, like this:
 * xxx-xxxx-xxxx-20
 * I’m guessing the validation logic you are using does not allow for dashes within
   the affiliate code.
 * Which makes me wonder: why validate the code at all? It doesn’t really do much
   good. Someone can still put in a code that appears to be valid but has a typo.
   Either way, it’s up to me, the user, to put in a code that will get me paid. 
   The way it is now, you are raising errors on perfectly good codes.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [zookatron](https://wordpress.org/support/users/zookatron/)
 * (@zookatron)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-amazon-affiliates-code/#post-9700395)
 * Hi [@james-byrd](https://wordpress.org/support/users/james-byrd/),
 * Thanks for notifying us of this. This issue will be fixed in the next update 
   to MyBookTable.
 * We added the code validation system as a courtesy to users to help notify them
   if they have accidentally improperly typed or copy/pasted their affiliate code
   into MyBookTable, as they would lose out on affiliate rewards if they did so.
   But it seems that Amazon do not want to stick to a consistent format for their
   affiliate codes so it has been more of a hassle than a benefit unfortunately.
   We will be changing the validation to be much more lenient in the next version.
 * ~Tim
 *  Thread Starter [James Byrd](https://wordpress.org/support/users/james-byrd/)
 * (@james-byrd)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-amazon-affiliates-code/#post-9701642)
 * Thanks, Tim. Overall, I really like how MyBookTable works. I’m planning to use
   it for a couple of multi-author book cross-promotion sites.
 * I’m not sure how often you check your FreshDesk tickets, but I submitted an issue
   about the Amazon import over there. I look forward to hearing your take on what’s
   going on.
 * Cheers,
    James

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Invalid Amazon Affiliates Code’ is closed to new replies.

 * ![](https://ps.w.org/mybooktable/assets/icon-256x256.jpg?rev=1083550)
 * [MyBookTable Bookstore by Stormhill Media](https://wordpress.org/plugins/mybooktable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mybooktable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mybooktable/)
 * [Active Topics](https://wordpress.org/support/plugin/mybooktable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mybooktable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mybooktable/reviews/)

## Tags

 * [amazon](https://wordpress.org/support/topic-tag/amazon/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 2 replies
 * 2 participants
 * Last reply from: [James Byrd](https://wordpress.org/support/users/james-byrd/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-amazon-affiliates-code/#post-9701642)
 * Status: resolved