Find duplicate contacts
const url = 'https://digize.com/api/v1/contacts/duplicates';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/contacts/duplicates \ --header 'x-api-key: <x-api-key>'Contacts that look like the same person: the same email, the same phone, or the same name at the same company. Each pair has the one added first and the other, with why they match, up to 200 pairs. Merge one with crm.contacts.merge.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
object
object
object
In E.164, such as +15125550142.
The member who looks after them, by user id.
Lead: hasn’t ordered; customer: one or two orders; repeat: three or more.
What they’ve paid, less refunds, in minor units.
Lead score, from the scoring rules in CRM settings.
Custom field values by field key.
object
object
In E.164, such as +15125550142.
The member who looks after them, by user id.
Lead: hasn’t ordered; customer: one or two orders; repeat: three or more.
What they’ve paid, less refunds, in minor units.
Lead score, from the scoring rules in CRM settings.
Custom field values by field key.
object
How many pairs there are in all.
Example
{ "pairs": [ { "contact": { "source": "checkout", "stage": "lead" }, "duplicate": { "source": "checkout", "stage": "lead" }, "reasons": [ "email" ] } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}