Problem with Web-to-Lead API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnweissberg
    Junior Member
    • Dec 2024
    • 3

    Problem with Web-to-Lead API

    I am just beginning testing of a web-to-lead form. Here is the configuration of the form: https://tinyurl.com/266ytbg7

    I am using Postman to submit test data. Here is the test data:

    {
    "firstName": "Johnnie",
    "lastName": "Weissmuller",
    "emailAddress": "weissm@printscience.com",
    "phoneNumber": "123456789"
    }

    Here is the response from ESPO:

    {
    "messageTranslation": {
    "label": "validationFailure",
    "scope": null,
    "data": {
    "field": "phoneNumber",
    "type": "valid"
    }
    }
    }

    It is not at all clear to me which piece of data is failing validation.​​
  • yuri
    Member
    • Mar 2014
    • 8483

    #2
    The phone number you pass is not a valid phone number. You have 3 options:
    • Disable international phone numbers in the system (not recommended).
    • Pass valid phone numbers. You can specify the country code for the Lead Capture.
    • Use a custom Varchar field that will allow users to enter arbitrary invalid phone numbers.

    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...