Duplicates

Duplicates Documentation

Duplicate [LIST]

Duplicate [LIST]

Request

Endpoint

GET /api/v2/contacts/duplicates
Content-Type: application/vnd.api+json

Body

Parameters

Filters

account_list_id

Type ID string

Description Filter by Account List; accepts an Account List id

Required No

ignore

Type Boolean

Description Filter by ignored duplicate pairs

Required No

record_ids

Type string (comma delimited IDs)

Description Filter by a comma delimited list of Contact IDs

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": [
    {
      "id": "6b14a7e0-8e9f-4700-b96f-9968e734ebe6",
      "type": "duplicate_record_pairs",
      "attributes": {
        "created_at": "2022-01-12T17:18:59Z",
        "ignore": false,
        "reason": "Similar names",
        "updated_at": "2022-01-12T17:18:59Z",
        "updated_in_db_at": "2022-01-12T17:18:59Z"
      },
      "relationships": {
        "account_list": {
          "data": {
            "id": "72958cca-674c-4d8a-ba27-1b08597a3ded",
            "type": "account_lists"
          }
        },
        "records": {
          "data": [
            {
              "id": "0444f821-92bf-4166-8a79-80d672969992",
              "type": "contacts"
            },
            {
              "id": "edb092ec-682e-4865-99e1-6b4ca5732043",
              "type": "contacts"
            }
          ]
        }
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total_count": 1,
      "total_pages": 1
    },
    "sort": null,
    "filter": {
    }
  }
}

Fields

data

Type [Duplicate Record Pair]

Description An array of Duplicate Record Pairs

Duplicate [GET]

Duplicate [GET]

Request

Endpoint

GET /api/v2/contacts/duplicates/c78e7054-5ed2-415b-9f3a-2a95a9efdca7
Content-Type: application/vnd.api+json

Body

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "c78e7054-5ed2-415b-9f3a-2a95a9efdca7",
    "type": "duplicate_record_pairs",
    "attributes": {
      "created_at": "2022-01-12T17:18:59Z",
      "ignore": false,
      "reason": "Similar names",
      "updated_at": "2022-01-12T17:18:59Z",
      "updated_in_db_at": "2022-01-12T17:18:59Z"
    },
    "relationships": {
      "account_list": {
        "data": {
          "id": "d8844521-de21-4e4f-a265-448854d0ab85",
          "type": "account_lists"
        }
      },
      "records": {
        "data": [
          {
            "id": "de0eea16-f196-4595-89d4-3e106fb2ad82",
            "type": "contacts"
          },
          {
            "id": "4e03b4b8-80e3-4875-9b14-cd354a35c69a",
            "type": "contacts"
          }
        ]
      }
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

ignore

Type boolean

Description Whether or not this duplicate pair should be ignored

reason

Type string

Description The reason this duplicate pair was found

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

account_list.data

Type Account List

Description The account list that this Duplicate Record Pair belongs to

records.data

Type [Contact]

Description An array of two Contact references

Duplicate [PUT]

Duplicate [PUT]

Request

Endpoint

PUT /api/v2/contacts/duplicates/5d570743-b79e-489b-8fe9-160c0a53cb3e
Content-Type: application/vnd.api+json

Body

{
  "data": {
    "type": "duplicate_record_pairs",
    "attributes": {
      "ignore": true,
      "updated_in_db_at": "2022-01-12 17:18:59 UTC"
    },
    "relationships": {
      "account_list": {
        "data": {
          "type": "account_lists",
          "id": "1fb22a17-a1f8-486b-bc93-5ab792763871"
        }
      }
    }
  }
}

Parameters

Attributes

created_at

Type date

Description The timestamp of when this resource was created

Required No

ignore

Type boolean

Description Whether or not this duplicate pair should be ignored

Required No

overwrite

Type boolean

Description Only used for updating a record where you want to ignore the server's ' 'updated_in_db_at value and force overwrite the values for the record. ' 'Must be true to work.

Required No

reason

Type string

Description The reason this duplicate pair was found

Required No

updated_at

Type date

Description The timestamp of when this resource was last updated

Required No

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Required No

Relationships

account_list.data

Type Account List

Description The account list that this Duplicate Record Pair belongs to

Required No

records.data

Type [Contact]

Description An array of two Contact references

Required No

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
200 OK

Body

{
  "data": {
    "id": "5d570743-b79e-489b-8fe9-160c0a53cb3e",
    "type": "duplicate_record_pairs",
    "attributes": {
      "created_at": "2022-01-12T17:18:59Z",
      "ignore": true,
      "reason": "Similar names",
      "updated_at": "2022-01-12T17:18:59Z",
      "updated_in_db_at": "2022-01-12T17:18:59Z"
    },
    "relationships": {
      "account_list": {
        "data": {
          "id": "1fb22a17-a1f8-486b-bc93-5ab792763871",
          "type": "account_lists"
        }
      },
      "records": {
        "data": [
          {
            "id": "337763de-7a21-4228-ae32-2d1a0d584af1",
            "type": "contacts"
          },
          {
            "id": "f94b03f5-bb45-4f78-bdd6-f40716edbba5",
            "type": "contacts"
          }
        ]
      }
    }
  }
}

Fields

Attributes

created_at

Type date

Description The timestamp of when this resource was created

ignore

Type boolean

Description Whether or not this duplicate pair should be ignored

reason

Type string

Description The reason this duplicate pair was found

updated_at

Type date

Description The timestamp of when this resource was last updated

updated_in_db_at

Type date

Description This is to be used as a reference for the last time the resource was updated in the remote database - specifically for when data is updated while the client is offline.

Relationships

account_list.data

Type Account List

Description The account list that this Duplicate Record Pair belongs to

records.data

Type [Contact]

Description An array of two Contact references

Last updated