{"code":14,"message":"Invalid value passed for authtoken."}

I am trying to access zoho subscriptions through a wordpress api but I am getting the error above.

I have generated the Zoho-authtoken token but it seems like it wrong.

I am not sure what I am doing wrong.

$zoho_url = 'https://subscriptions.zoho.com/api/v1/subscriptions';

$organizationid = '644******';
$zohoauthtoken = 'c7e24e4efb1ffa******************';

$headers = array('Content-Type' => 'application/json;charset=UTF-8', 'X-com-zoho-subscriptions-organizationid' => $organizationid , 'Authorization' => 'Zoho-authtoken '.$zohoauthtoken);

$response = wp_remote_post($zoho_url, array('headers' => $headers) );


Your help would be highly appreciated.

Read more here: {"code":14,"message":"Invalid value passed for authtoken."}

Leave a Reply

Your email address will not be published. Required fields are marked *