Bug report: API v3 vs addresses with plusses

This is a valid email address: user+cm@example.com

When I make the following API call:

I unexpectedly get the following result:
{"Code":1,"Message":"Invalid Email Address"}

I haven't tested thoroughly, but I believe that plussed addresses are handled as expected in CM web interfaces, just not in the API.

tobyb tobyb, 6 years ago

Hey phripley,

As described in the documentation, query string parameters such as the email address must be encoded with percent encoding. The decoded email address, as received by CM, would be 'user cm@example.com' which is not valid.

To correctly specify this email address you would use 'user%2Bcm%40example.com', so the call would be http://api.createsend.com/api/v3/subscribers/%7Blist%7D.json?email=user%2Bcm%40example.com

phripley phripley, 6 years ago

Many thanks Toby!

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free