I am trying to migrate/sync a bunch of contacts from another system to Hubspot. The contact is copied fine, but I can’t for my life get how to set the “Opt_in” state on the subscription. I can see in the Email registation history that the call comes in, but it says “Not opted” despite me sending optState = OPT_IN.
Is there a restriction somewhere? I have not enabled DOI.
Endpoint: /email/public/v1/subscriptions/x.y@z.com
JSON:
{“subscribed”:false,“markedAsSpam”:false,“bounced”:false,“subscriptionStatuses”:[{“id”:1234567,“subscribed”:true,“optInState”:“OPT_IN”}],“isNameValue”:false,“routeBasePath”:“/email/public/v1”}