limelm.pkey.delete method always returns Product key not found

Hi,

I am using the web api (PHP) to create/find/delete product keys.Creating and finding keys using this API is working fine but when I try to delete the key it always returns me "1: Product key not found."

I have added a new function to LimeLM.php and it looks like this

public static function DeletePKey() { $post_data = array( 'method' => 'limelm.pkey.delete', 'pkey_id' => "MCIA-XPRA-QW7S-E397-83W3-RAGQ-J2TA" ); return self::PostRequest($post_data); }

Can you spot the issue in this? I am trying at it for a couple of hours without luck. Any help would be invaluable. Thanks!

The pkey_id must be the ID of the product key, not the product key itself. You can get this using the following function: https://wyday.com/limelm/help/api/limelm.pkey.getID/

Thanks that resolves it.