Error Handling

Overview

Tracking uses the same error handling as the Enrich APIs. When you start tracking with trackPerson or trackCompany, the Person Enrich and Company Enrich APIs return the same HTTP status codes, error codes and messages as any other Enrich request. See Enrich Error Handling.

A tracking failure does not affect the enrichment response. If tracking cannot start, the request still returns 200 with the full enrichment result, and the reason is given in the tracking status field:

  • personTrackedStatus for the Person Enrich API
  • companyTrackedStatus for the Company Enrich API

The Webhook Registration API and the Tracking APIs use standard HTTP status codes. Each error response includes statusCode, errorCode, message and smarteTransactionId. Some errors also include data with more detail, such as the IDs that failed. Share the smarteTransactionId with SMARTe Support when you report an issue.

Tracking Status Values

Tracking StatusWhen It OccursDeveloper Action
Person tracked successfullyThe person is now tracked. Tracking credits were charged.No action needed.
Person already trackedYour account already tracks this person. No tracking credits were charged.No action needed.
Person tracking failed: Webhook not configured.Your API key has no tracking webhook. The person is not tracked.Register an enrich_live webhook with the Webhook Registration API using the same API key, then send the request again.
Person tracking failed: insufficient credits for tracking.Not enough credits to track. The person is not tracked.Add credits or contact your SMARTe administrator, then send the request again.
Company tracked successfullyThe company is now tracked. Tracking credits were charged.No action needed.
Company already trackedYour account already tracks this company. No tracking credits were charged.No action needed.
Company tracking failed: Webhook not configured.Your API key has no tracking webhook. The company is not tracked.Register an enrich_live webhook with the Webhook Registration API using the same API key, then send the request again.
Company tracking failed: insufficient credits for tracking.Not enough credits to track. The company is not tracked.Add credits or contact your SMARTe administrator, then send the request again.

The tracking status is returned only when a record is matched and the full profile is requested. It is not returned for no match and junk or ineligible results.

Common Errors

These errors apply to the List Tracked Records, Get a Tracked Record and Untrack Records APIs.

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
401AUTH_INVALIDAuthentication failed: Invalid API key.The API key is missing, invalid or deactivated, or your organization is inactive.Check that the apikey header is present and the API key is active.
500INTERNAL_SERVER_ERRORSomething went wrong. Please try again.An error occurred on the SMARTe server.Retry the request. If it continues, contact SMARTe Support.

Webhook Registration API Errors

These errors apply to POST /v2/registration.

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
400INVALID_REQUESTRequired Fields Missingservice or webhookUrl is missing.Send both service and webhookUrl.
400FIELD_INVALIDInvalid Destination URL. Please check and try again.webhookUrl is not a valid HTTPS URL.Send a valid HTTPS URL of up to 500 characters.
400FIELD_INVALIDInvalid service. Please check and try again.The service is not supported.Set service to enrich_live for Tracking.
400FIELD_INVALIDDestination URL is unreachable. Please verify the endpoint.SMARTe cannot reach webhookUrl.Check that the endpoint is public and returns a 2xx response, then register again.
400FIELD_INVALIDWebhook already registered for this service.The URL is already registered for the service.Use the existing webhook. To change it, contact SMARTe Support.
401AUTH_INVALIDapikey header is required.The request is sent without the apikey header.Add the apikey header with the Enrich API key.
403WEBHOOK_LIMIT_REACHEDWebhook limit reached. Contact [email protected] to increase the limit.The webhook limit for the service is reached.Contact [email protected] to increase the limit.
500INTERNAL_SERVER_ERRORSomething went wrong. Please try again.An error occurred on the SMARTe server.Retry the request. If it continues, contact SMARTe Support.

List Tracked Records API Errors

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
400INVALID_VALUEpageNumber must be an integer greater than or equal to 1.pageNumber is less than 1.Set pageNumber to 1 or more.
400INVALID_VALUEpageSize must be an integer between 1 and 100.pageSize is less than 1.Set pageSize between 1 and 100.
400EXCEEDS_MAX_LIMITpageSize cannot exceed the maximum allowed limit of 100.pageSize is greater than 100.Set pageSize to 100 or less.
400INVALID_PAGINATIONThe requested page exceeds the available results. Please provide valid pagination.The requested page is beyond the first 10,000 records.Request a page within the first 10,000 records.

Get a Tracked Record API Errors

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
404NO_DATAEntity is not tracked under this account.The record is not tracked under your API key, or the ID is not a valid personId or companyId.Check the ID, or use the List Tracked Records API to find tracked records.

Untrack Records API Errors

HTTP StatusError CodeMessageWhen It OccursDeveloper Action
400FIELD_MISSINGAt least one id must be provided.No IDs were sent.Send at least one personId or companyId.
400EXCEEDS_MAX_LIMITMaximum of 50 IDs allowed per request.More than 50 IDs were sent.Split the IDs into requests of 50 or fewer.
400FIELD_INVALIDOne or more provided IDs are invalid in format.One or more IDs have an invalid format. The invalid IDs are returned in invalidIds.Correct the IDs listed in invalidIds and send them again.
404NO_DATANo tracked entities matched the provided IDs.None of the IDs are tracked under your API key. The IDs are returned in notFound.Check the IDs, or use the List Tracked Records API to find tracked records.

When only some IDs are not tracked, the request succeeds with the message "Untrack request processed." and returns those IDs in notFound.

Best Practices

  • Check the tracking status in every Enrich response that starts tracking, because tracking failures return 200.
  • Handle Enrich errors the same way as in your existing Enrich integration.
  • Retry only 500 errors. Fix the request before retrying other errors.
  • Log the smarteTransactionId of every failed request.

What's Next

See the API Reference for request parameters, response fields and sample payloads for each API.


Did this page help you?