Checks for duplicates

POST /v1/deduplicate

Check for the potential of duplication. Up to 40 items can be submitted in one request

application/json

Body Required

  • user object Required
    Hide user attributes Show user attributes object
    • user_id string Required

      Unique identifier of the user. Unique per channel & sub_channel.

    • channel string

      Optional channel the user is coming from.

    • Optional sub-channel the user is coming from. Unique per channel.

    • ip string Required

      The ip of the user

  • items array[object] Required

    At least 1 but not more than 40 elements.

    Hide items attributes Show items attributes object
    • project_type string Required

      The kind of project the user is joining.

      Values are survey, offer, or custom.

    • Optional source of the project.

    • Optional sub-source of the project. Unique per project_source.

    • project_id string Required

      Unique identifier of the project. Unique per project_type, project_source & project_sub_source.

    • Optional survey source. Cannot be empty when ext_survey_id is not empty. if ext_survey_id and ext_survey_source are set, the partner opts in to deduplicate the transaction against all other partners' transactions that have these set Only available when type is survey

      Values are lucid, purespectrum, cint, or prodege.

    • Optional survey_id. Cannot be empty when ext_survey_source is not empty. if ext_survey_id and ext_survey_source are set, the partner opts in to deduplicate the transaction against all other partners' transactions that have these set Only available when type is survey

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • user object Required
        Hide user attributes Show user attributes object
        • user_id string Required

          Unique identifier of the user. Unique per channel & sub_channel.

        • channel string

          Optional channel the user is coming from.

        • Optional sub-channel the user is coming from. Unique per channel.

        • ip string Required

          The ip of the user

      • items array[object] Required
        Hide items attributes Show items attributes object
        • project_type string Required

          The kind of project the user is joining.

          Values are survey, offer, or custom.

        • Optional source of the project.

        • Optional sub-source of the project. Unique per project_source.

        • project_id string Required

          Unique identifier of the project. Unique per project_type, project_source & project_sub_source.

        • Optional survey source. Cannot be empty when ext_survey_id is not empty. if ext_survey_id and ext_survey_source are set, the partner opts in to deduplicate the transaction against all other partners' transactions that have these set Only available when type is survey

          Values are lucid, purespectrum, cint, or prodege.

        • Optional survey_id. Cannot be empty when ext_survey_source is not empty. if ext_survey_id and ext_survey_source are set, the partner opts in to deduplicate the transaction against all other partners' transactions that have these set Only available when type is survey

        • duplication_potential number(float) Required

          The potential of duplication, ranging from 0 to 1

POST /v1/deduplicate
curl \
 -X POST https://api.fraud.ink/v1/deduplicate \
 -H "Content-Type: application/json" \
 -d '{"user":{"user_id":"string","channel":"string","sub_channel":"string","ip":"string"},"items":[{"project_type":"survey","project_source":"string","project_sub_source":"string","project_id":"string","ext_survey_source":"lucid","ext_survey_id":"string"}]}'
Request examples
{
  "user": {
    "user_id": "string",
    "channel": "string",
    "sub_channel": "string",
    "ip": "string"
  },
  "items": [
    {
      "project_type": "survey",
      "project_source": "string",
      "project_sub_source": "string",
      "project_id": "string",
      "ext_survey_source": "lucid",
      "ext_survey_id": "string"
    }
  ]
}
Response examples (200)
{
  "data": {
    "user": {
      "user_id": "string",
      "channel": "string",
      "sub_channel": "string",
      "ip": "string"
    },
    "items": [
      {
        "project_type": "survey",
        "project_source": "string",
        "project_sub_source": "string",
        "project_id": "string",
        "ext_survey_source": "lucid",
        "ext_survey_id": "string",
        "duplication_potential": 0.85
      }
    ]
  }
}