<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Subscription with id '5754963' is either undefined or inactive in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Subscription-with-id-5754963-is-either-undefined-or-inactive/m-p/304946#M28816</link>
    <description>&lt;P&gt;Ah, ok. So this is just functional behavior? I'll need to have a serious chat then with the guy that set this subscription without telling me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks for your reply&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2019 08:02:51 GMT</pubDate>
    <dc:creator>franknesse</dc:creator>
    <dc:date>2019-12-02T08:02:51Z</dc:date>
    <item>
      <title>Subscription with id '5754963' is either undefined or inactive</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Subscription-with-id-5754963-is-either-undefined-or-inactive/m-p/304822#M28786</link>
      <description>&lt;P&gt;I amble to GET the email subscription status for an e-mail address:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;{
    "subscribed": true,
    "markedAsSpam": false,
    "unsubscribeFromPortal": false,
    "portalId": 5339105,
    "bounced": false,
    "email": "email@someemail.com",
    "subscriptionStatuses": [
        {
            "id": 5754963,
            "updatedAt": 1550222130487,
            "subscribed": true,
            "optState": "OPT_IN",
            "legalBasis": "LEGITIMATE_INTEREST_PQL",
            "legalBasisExplanation": "&amp;lt;p&amp;gt; Gostaria de receber informações sobre os produtos e serviços da Rijk Zwaan e consentir com o uso de meus dados pessoais e meu endereço de e-mail para essa finalidade. Ao clicar no botão \"Enviar solicitação\", declaro que li e aceito a política de cookies e privacidade &amp;lt;/p&amp;gt;"
        }
    ],
    "status": "subscribed"
}&lt;/PRE&gt;&lt;P&gt;But when I want to post (PUT) back&amp;nbsp; modified content (changed LegalBasis and explanation,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "subscribed": true,
    "markedAsSpam": false,
    "unsubscribeFromPortal": false,
    "portalId": 5339105,
    "bounced": false,
    "email": "email@someemail.com",
    "subscriptionStatuses": [{
            "id": 5754963,
            "updatedAt": 1550222130487,
            "subscribed": true,
            "optState": "OPT_IN",
            "legalBasis": "PERFORMANCE_OF_CONTRACT",
            "legalBasisExplanation": "We need to send them these emails as part of our agreement with them."
        }
    ],
    "status": "subscribed"
}&lt;/PRE&gt;&lt;P&gt;the response I get =&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{
    "status": "error",
    "message": "Subscription with id '5754963' is either undefined or inactive.",
    "correlationId": "9cd4cdc0-dc2a-4fc1-8d6f-20a3c3f5f0a0",
    "requestId": "24dbe7d1-2006-404a-8f63-3f1442619fea"
}&lt;/PRE&gt;&lt;DIV&gt;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://community.hubspot.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/DIV&gt;Can anybody explain to me what I am doing wrong here?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Nov 2019 13:40:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Subscription-with-id-5754963-is-either-undefined-or-inactive/m-p/304822#M28786</guid>
      <dc:creator>franknesse</dc:creator>
      <dc:date>2019-11-29T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Subscription with id '5754963' is either undefined or inactive</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Subscription-with-id-5754963-is-either-undefined-or-inactive/m-p/304912#M28801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/112210"&gt;@franknesse&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're seeing the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    "message": "Subscription with id '5754963' is either undefined or inactive.",
&lt;/PRE&gt;
&lt;P&gt;because susbcription&amp;nbsp;&lt;EM&gt;5754963&amp;nbsp;&lt;/EM&gt;is currently set as Inactive.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be seen from either:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. This endpoint-&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/email/get_subscriptions" target="_blank" rel="noopener"&gt;Get email subscription types for a portal | Email API&lt;/A&gt; where the active key is returning false for subscription &lt;EM&gt;5754963&lt;/EM&gt;:&lt;/P&gt;
&lt;PRE&gt;{
id:5754963,
portalId:5339105,
name:"One to One",
description:"One to One emails",
active:false,
internal:true,
category:"Sales",
channel:"Email",
order:2,
internalName:"ONE_TO_ONE"}&lt;/PRE&gt;
&lt;P&gt;2. In your HubSpot portal. (At the top right hand corner &amp;gt; Click on the '&lt;EM&gt;Settings&lt;/EM&gt;' icon &amp;gt; At the left side panel &amp;gt; Expand '&lt;EM&gt;Marketing&lt;/EM&gt;' &amp;gt; Click on '&lt;EM&gt;Email&lt;/EM&gt;' &amp;gt; Select the '&lt;EM&gt;Subscription Types&lt;/EM&gt;' tab).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see that the subscription&amp;nbsp;&lt;EM&gt;One to One&lt;/EM&gt;'s&amp;nbsp;status is &lt;EM&gt;Inactive&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you'd like to set the subscription status back to active: Hover over the subscription &amp;gt; Click 'Edit' &amp;gt; Check the 'Active' checkbox &amp;gt; Click the 'Finish' button.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 03:09:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Subscription-with-id-5754963-is-either-undefined-or-inactive/m-p/304912#M28801</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-12-02T03:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Subscription with id '5754963' is either undefined or inactive</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Subscription-with-id-5754963-is-either-undefined-or-inactive/m-p/304946#M28816</link>
      <description>&lt;P&gt;Ah, ok. So this is just functional behavior? I'll need to have a serious chat then with the guy that set this subscription without telling me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks for your reply&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 08:02:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Subscription-with-id-5754963-is-either-undefined-or-inactive/m-p/304946#M28816</guid>
      <dc:creator>franknesse</dc:creator>
      <dc:date>2019-12-02T08:02:51Z</dc:date>
    </item>
  </channel>
</rss>

