I found a situation thought of letting you know to document in your database. I got 2014 Toyota Camry.
I did everything to ensure connection are great and it is not valet key. I used black key which has original remote named under Denso with alll buttons. Bypass is not programmed, after 5 days of search, i finally figured out even though key looks black and looks exactly like master key, .. it is not master key it is coded as valet key.
If you want to really find it is master key, ask the customer to look at security light in panel, if that light goes as soon as key is inserted then it is master key else if it goes after second or so, it is valet key, i callled locksmith programmed new master key all went fine.. please store this in ur database.