API v1 Reference

Retrieve Duplicate Merge History

This API method does not exist; this document is for specification purposes only.

This request retrieves the duplicate merge history for an account. If an account ID no longer exists, it will return the current, correct account ID.

REST

Request

http://api.neoncrm.com/neonws/services/api/account/retrieveDuplicateMergeHistory?userSessionId=[session id]&accountId=12345

Response

An example where the account has been merged, but returns the current, correct account ID.

{
  "retrieveDuplicateMergeHistory": {
    "operationResult": "SUCCESS",
    "responseDateTime": "2018-04-10T15:54:38.506+08:00",
    "mergeHistory": {
      "searchedAccountId": 12345,
      "currentAccountId": 101177,
      "previousAccountIds": [
        12345,
        10930,
        12423
      ]
    }
  }
}

An example where the account ID searched is correct, but has a merge history.

{
  "retrieveDuplicateMergeHistory": {
    "operationResult": "SUCCESS",
    "responseDateTime": "2018-04-10T15:54:38.506+08:00",
    "mergeHistory": {
      "searchedAccountId": 101177,
      "currentAccountId": 101177,
      "previousAccountIds": [
        12345,
        10930,
        12423
      ]
    }
  }
}

An example where the account ID searched is correct and has no merge history.

{
  "retrieveDuplicateMergeHistory": {
    "operationResult": "SUCCESS",
    "responseDateTime": "2018-04-10T15:54:38.506+08:00",
    "mergeHistory": {
      "searchedAccountId": 18948,
      "currentAccountId": 18948,
      "previousAccountIds": []
    }
  }
}

Request Parameters

Name Required Description
accountId Yes Specific Account ID to query.

Response Parameters

Name Required Description
mergeHistory.searchedAccountId Yes The account ID provided in your request.
mergeHistory.currentAccountId Yes The current, correct Account ID.
mergeHistory.previousAccountIds Yes An array of Account IDs that have been previously merged to this account.

Error Codes

Code Text Description
10131 Account ID is required
10132 Account ID is invalid