Problem Calling SetPKeyDetails

Hi,I want to update a licence's activations and I'm getting an error regarding the product key:

(1) Invalid pkey_id - product key not found.

This is the code:

$xml = new SimpleXMLElement(LimeLM::SetPKeyDetails($product_key,$quantity, $email));

This is the post data variable that the function is setting:

Array( [method] => limelm.pkey.setDetails [pkey_id] => 8SSX-5NFS-JSKA-G9MW-3KPU-6WNA-E6TA [num_acts] => 6 => {email address here - removed from paste}) I can't see why there would be any problems with this? I have searched for that product key using the LimeLM account overview options and it finds it just fine. I've also had no problems contacting the site to add new licence's, so I'm a bit stumped. Liam

Hey Liam,

You're passing in the product key to the function. You need to pass in the product key id (see: limelm.pkey.getID.

Tell me if that helps.

Oh! I didn't realise there was a product key id! Thanks for your help Sam.

Liam

No problem. I know this can be confusing.