Newsletter2Go endpoint /forms/submit{{form_id}}

119 Views Asked by At

I created a wrapper for using the newsletter2go endpoint

When I post the request to that ep w/ an form_id I get the following response:

  • http status: 400
  • code: 10020
  • error message: Bad Request (invalid code xxxx)

Im using the id from the n2go backend:

id from n2go be

Can anyone tell me whats about the error code 10020? The api docs containing nothing about that.

2

There are 2 best solutions below

0
Black On

This is probably because you used big letters in your form_id. I had the same problem. The support told me, that only small letters are allowed.

0
Paul On

I found finally out what the form_id have to be. It's the value you see in the Opt-In Email for the n2g argument, for example:

https://subscribe.newsletter2go.com?n2g=dummy-code-here

Otherweise check the sourcecode of the Embedded Form, there is a script in it which contains the form id.

Maybe this helps someone one day.