I was just trying to add a subscription for an email address using this api https://developers.hubspot.com/docs/methods/email/update_status link. I am getting success response from the api and it is stdClass Object ( [success] => 1, [code] => 200). Unfortunately which is not working properly. On the email address activity timeline I got "Test Test (firstname.lastname@example.org) communication subscriptions changed,
ago 7 at 14:31 GMT+2, Subscribed to the examplesubscription subscription". But the communication subscriptions sidebar not changed. Also when I use the api call to https://developers.hubspot.com/docs/methods/email/get_status , I am getting subscribed false. What would be the possible reason for strange behavior? Below the image illustrates the issue broadly.
When I am calling the endpoint https://developers.hubspot.com/docs/methods/email/get_status I am getting
stdClass Object ( [subscribed] => 1 [markedAsSpam] => [unsubscribeFromPortal] => [portalId] => portalIdHere [bounced] => [email] => email@example.com [subscriptionStatuses] => Array (  => stdClass Object ( [id] => subscriptionIdHere [updatedAt] => 1533889177929 [subscribed] => [optState] => NOT_OPTED [legalBasis] => PERFORMANCE_OF_CONTRACT [legalBasisExplanation] => We need to send them these emails as part of our agreement with them. ) ) [status] => subscribed )
Many many thanks.