Scope
error_msg": "wrong format" in List Customer API for email abc+123@xyz.com format
Summary
The List Customer API does not support emails of the format- abc+123@xyz.com. When a list customer request is made with the email id= this format, it returns an error error_msg": "wrong format"
Reason
The error is happening due to the email address not being encoded in the URL.
Solution
Taking Bhaskar-test as an example Chargebee domain name- Instead of making a request to
https://bhaskar-test.chargebee.com/api/v2/customers?email[is]=t+234@yopmail.com
it needs to be made to
https://bhaskar-test.chargebee.com/api/v2/customers?email[is]=t%2B234@yopmail.com
This implies the + sign shall be replaced by a % sign to encode this.
HTML URL Encoding Reference for more information.
Related Documentation
How to list more than 10 items when listing information via API?