Error when creating ticket for certain requester email addresses | Community
Skip to main content

Error when creating ticket for certain requester email addresses

  • July 26, 2022
  • 0 replies
  • 0 views

Barry13

I am using the Zendesk API to create tickets. However, the API randomly fails for me for certain email addresses. Are there some restrictions in relation to verified domains?

This is the error response I get:

Exception: 422 Unprocessable Entity

This is the structure of my JSON:

This is the structure of my ticket JSON:
{
  ticket:
    {
      title,
      subject,
      comment: {
        body,
      },
      requester: { name, email },
    },
}

For example: if the requester email is my Gmail account, it always works. Same for my yahoo email account. However, my hotmail account gets the error. Also, email addresses from test domains seem to generate errors, but it's not that clear cut. test_user@test.com is an example of an email address that I get an error for. Is there some kind of email whitelist that this API uses before creating tickets?