Trigger double opt-in for newsletter subscriptions via API

lock
push_pin
done
Besvarat
2

 

How can a double opt-in email be triggered via the SuperOffice API to confirm the newsletter registration?

The background is that customers can register for the newsletter via an external form and subscribe to the newsletter there.

When a customer registers for the newsletter, a new person is created via the SuperOffice API.

How can I now also send a confirmation email to this person via the API to confirm their newsletter subscription?

What options are there for this?

 

 

12. feb. 2025 | 08:57 fm

Allt Svar (2)

Hi Ralf,

You can use the PersonAgent.SendConsentConfirmationEmail method.

Hope this helps!

20. feb. 2025 | 03:23 em

Hello Tony

I guess this will work. The person will exist already. 

Since we also make a query of the person vs. a database and want to archive the result already in superoffice (see request), the person is created immediately in SO when registering online (after checking the e-mail to see if it already exists).

At this stage set the person Consent Info will be already set being mandatory to sign on for the webinar

https://community.superoffice.com/en/technical/forums/api-forums/online-web-services/document-creation-via-the-api/

Best regards

Ralf

 

Hi Ralf,

Unfortunately there is no API to send a form submittion via the API. There was a wish for it, but that was not prioritized and closed.

You can use the PersonAgent.SendConsentConfirmationEmail to method. The person must already exists, and the person must already have the Consent Info already set. If not, you can use the PersonAgent.CreateDefaultConsentPerson API to create one, and then save it using the PersonAgent.SaveConsentPerson API.

Hope this helps!

15 h, 8 m ago | 03:34 PM
21. feb. 2025 | 06:50 fm

Lägg till svar