Every B2B API error code by endpoint: what causes it and whether to retry, plus the error response format and HTTP status meanings.
When a B2B API request fails, the response has an HTTP status code and, in most cases, a body that tells you what went wrong. This page lists the error codes the B2B API returns, what causes each one, and whether to retry.
Error response format
Error bodies use the same format as the rest of the API: JSON by default, or XML if you send Accept: application/xml.
{
"errorCode": "400-103",
"errorMessage": "companyId must be an integer.",
"diagnosticCode": "ccb84f25-236e-4bcf-be01-88b7dd673fb4"
}
Field
Description
errorCode
The HTTP status followed by a number, for example 400-103. Use it in your code to decide how to handle the error.
errorMessage
A human-readable explanation. Don't parse it: the wording can change. Some messages include the value that caused the error.
diagnosticCode
An ID for this failure. Include it when you contact support.
Some responses have no errorCode, for example when a token is rejected before the request reaches the B2B API. Always check the HTTP status code first.
HTTP status codes
Status
Meaning
Retry?
400
The request is invalid: a parameter is missing, has the wrong type, or is out of range. Also returned when a job limit is reached.
No. Fix the request first. For 400-184 and 400-211, wait for running jobs to finish.
Sorting is allowed only on employeeCount, businessType, companyRevenue and location
400-136
Invalid Ethnicity Ids. Ethnicity Ids should be between 1 and 7
400-214
Invalid country. Please enter valid country ID in country.
Company and contact details
Code
Message
Endpoint
400-103
companyId must be an integer.
GET /company/{companyId} and its /news, /newsFeed, and /logos routes
400-217
sortBy parameter is only allowed with value: popularity
GET /company/{companyId} (family tree sorting)
400-105
contactId must be an integer.
GET /contact/{contactId}
400-183
Invalid include parameter. Allowed value is other_employments.
GET /contact/{contactId}
400-112
Invalid news category. The message lists the valid values.
GET /company/{companyId}/news
400-115
Invalid value for size. Should be among {100,200,400}
GET /company/{companyId}/logos/{logoSize}
404-103
Company logo for the given company ID is not present.
GET /company/{companyId}/logos/{logoSize}
Match: POST /match
Code
Message
400-123
minContactQualityScore must be one of: [A+, A, B, C]
400-164
At least one of the following parameters: name, website, email, executiveLinkedInHandle or ticker must be provided for a match.
400-165
The match request should have non empty requests list.
400-167
Each request should have a unique ID.
400-168
The match request size should be less than or equal to 30.
400-169
The match limitResults should be between 1 and 20.
Bulk jobs: POST /job, POST /match/job, GET /job/{jobId}
Code
Message
400-184
Job limit exceeded: A maximum of 2 jobs can run at the same time.
400-190
jobName is required and cannot be empty.
400-196
jobName must be at most 50 characters
400-199
jobType is required and cannot be empty.
400-195
jobType must be one of: companyFetch, contactFetch, companySearch, contactSearch
400-202
At least one filter must be provided.
400-201
Maximum 1 filter can be applied at a time.
400-197
Filter field is required
400-198
Filter values must not be empty
400-200
Filter can only be applied on field 'companyId' for given jobType.
400-212
Filter can only be applied on field 'contactId' for given jobType.
400-213
Invalid field in filter: followed by the field name
400-203
The number of values in the filter exceeds the limit of 10000.
400-204
fields list must not be empty in job request
400-139
Job Id should not be empty.
400-210
JobId should be a valid UUID.
404-101
Invalid job ID, job not found.
Match job CSV file: POST /match/job
These errors describe a problem in the uploaded CSV file. Most messages include the line number or header name.
Code
Cause
400-185
The file is larger than 10 MB.
400-186
The file has more than 10,000 lines.
400-191
The id header is missing.
400-192
The file has a header the API doesn't recognize.
400-204
None of the headers needed for matching is present. The message lists them.
400-187
A row has an empty id.
400-188
A row has the wrong number of fields.
400-205
A true/false column has a value other than True, False, or empty.
400-206
contactMatching has a value other than active, all, or empty.
400-209
A row has no value in any of the columns needed for matching. The message lists them.
📘
In a match job CSV, 400-204, 400-205, 400-206, and 400-209 have the meanings in this table, not the meanings they have on other endpoints. Check the endpoint and the message along with the code.
Subscriptions
Creating and updating subscriptions: POST /subscriptions/job, PUT /subscriptions/job
Code
Message
400-211
Only one subscription job can be created at a time. Please wait for the current job to finish before creating a new one.
400-205
Maximum number of subscriptions for the tenant has been reached. Please delete some subscriptions before creating a new one.
400-194
Subscription job name is invalid. It should not be empty.
400-209
Subscription job name is too long. Maximum length is 100 characters.
400-162
Subscription type is invalid. Valid values are: company, dbPerson, companynews, companyfamilytree
400-142
Subscription belongs to a different subscription type. Also returned for: Invalid Webhook. Url is too long.
400-157
One or more fields is invalid for provided subscription type.
400-158
One or more company ID should be present
400-159
One or more dbPerson ID should be present
400-160
Company ids exceeds the permissible limit for subscription job
400-161
dbPerson ids exceeds the permissible limit for subscription job
400-163
One or more newsCategories is invalid for provided subscription type.
400-206
One or more news category IDs should be present for subscription type companynews.
400-156
Start date is invalid. It should be in YYYY-MM-DD format and should be a future date.
400-148
Cron expression is invalid.
400-149
Frequency has invalid pattern.
400-150
Frequency is not valid for the provided subscription type
400-151
Frequency type is invalid.
400-152
Frequency must be present.
400-153
Frequency value must be an integer and greater than 0.
400-154
Frequency value for minutes is more than the max allowed.
400-155
Frequency value is more than the max allowed.
400-144
Invalid Webhook. Url syntax is invalid.
400-145
Invalid Webhook. Url is not absolute.
400-146
Invalid Webhook. Url is incorrect.
400-147
Invalid Signing secret. Length should be less than 500
404-104
Subscription ID does not exist.
Reading and deleting subscriptions
Code
Message
Endpoints
400-162
Subscription type is invalid. Valid values are: company, dbPerson, companynews, companyfamilytree
GET /subscriptions
400-171
Subscription ID cannot be empty.
Routes with {subscriptionId}
400-181
perPage must be between 1 and 5000.
GET /subscriptions/{subscriptionId}/alerts/{alertId}, GET /subscriptions/{subscriptionId}/entityIds
400-182
Alert ID does not belong to subscription.
GET /subscriptions/{subscriptionId}/alerts/{alertId}
404-104
Subscription ID does not exist.
Routes with {subscriptionId}
404-105
Alert ID does not exist.
GET /subscriptions/{subscriptionId}/alerts/{alertId}
Subscription jobs: GET /subscriptions/jobs, GET /subscriptions/job/{jobId}
Code
Message
400-172
Invalid set of period params, either send period, start and end or none of them.
400-173
Invalid period type. Valid values are: day, month and year.
400-174
Invalid date format. The message lists the valid formats for each period.
400-175
Difference between start date and end date should be less than 90 days.
400-176
Difference between start date and end date should be less than 18 months.
Invalid job type. Valid values are: notificationSubscriptionCreate and notificationSubscriptionUpdate
400-179
Invalid start date. It should not be some future date and should be less than end date
400-139
Job Id should not be empty.
404-101
Invalid job ID, job not found.
Server errors
Code
Message
What to do
500-100
Error while communicating with internal service
Retry with exponential backoff.
500
Internal server exception occurred.
Retry with exponential backoff. If it keeps failing, contact support with the diagnosticCode.
Getting help
If an error doesn't make sense, or a 500 error persists, contact [email protected]. Include the endpoint, the request you sent (without your token), the time of the request, and the diagnosticCode.