<?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: Form Submission returns 200 but no submissions showing in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/925995#M71225</link>
    <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/712698"&gt;@RSaunders7&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to our community! I hope you got this resolved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, have you tried stringifying the JSON payload in the body of your fetch request? Also, you may need to adjust your timestamp field to be&amp;nbsp;&lt;BR /&gt;submittedAt: currentDate.getTime()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun testing! — Jaycee&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 22:30:36 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2024-02-20T22:30:36Z</dc:date>
    <item>
      <title>Form Submission returns 200 but no submissions showing</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/925016#M71167</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to integrate a form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the custom form and set up the below code, sending the raw JSON via postman returns 200 with an empty object and nothing more, no submissions are showing in hubspot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code (TypeScript) with some details replaced with placeholders (keys etc). Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const res = await fetch(
    `https://api.hsforms.com/submissions/v3/integration/secure/submit/${portalId}/${formGuid}`,
    {
      method: "POST",
      headers: {
        authorization: `${HUBSPOT_API_PAT}`,
        "Content-Type": "application/json",
      },
      body: {
        timestamp: currentDate.getTime(),
        fields: [
          {
            objectTypeId: "0-1",
            name: "firstname",
            value: "John",
          },
          {
            objectTypeId: "0-1",
            name: "lastname",
            value: "Doe",
          },
          {
            objectTypeId: "0-1",
            name: "email",
            value: "example@test.com",
          },
          {
            objectTypeId: "0-1",
            name: "zip",
            value: "QW11ER,
          },
          {
            objectTypeId: "0-1",
            name: "taster_session",
            value: "session picked",
          },
        ],
        legalConsentOptions: {
          consent: {
            // Include this object when GDPR options are enabled
            consentToProcess: true,
            text: "I agree to allow Example Company to store and process my personal data.",
            communications: [
              {
                value: true,
                subscriptionTypeId: 999,
                text: "I agree to receive marketing communications from Example Company.",
              },
            ],
          },
        },
      },
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 15:43:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/925016#M71167</guid>
      <dc:creator>RSaunders7</dc:creator>
      <dc:date>2024-02-19T15:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Form Submission returns 200 but no submissions showing</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/925995#M71225</link>
      <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/712698"&gt;@RSaunders7&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to our community! I hope you got this resolved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, have you tried stringifying the JSON payload in the body of your fetch request? Also, you may need to adjust your timestamp field to be&amp;nbsp;&lt;BR /&gt;submittedAt: currentDate.getTime()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun testing! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 22:30:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/925995#M71225</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-02-20T22:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Form Submission returns 200 but no submissions showing</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/926199#M71236</link>
      <description>&lt;P&gt;Sadly those solutions didn't work out, I appreciate the warm welcome and response though!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 10:03:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/926199#M71236</guid>
      <dc:creator>RSaunders7</dc:creator>
      <dc:date>2024-02-21T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Form Submission returns 200 but no submissions showing</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/926263#M71240</link>
      <description>&lt;P&gt;Having made those changes we are now getting a 400 response instead of a 200.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 13:07:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Form-Submission-returns-200-but-no-submissions-showing/m-p/926263#M71240</guid>
      <dc:creator>RSaunders7</dc:creator>
      <dc:date>2024-02-21T13:07:11Z</dc:date>
    </item>
  </channel>
</rss>

