Chilkat Online Tools

Node.js / Zoho CRM REST APIs / Leads

Back to Collection Items

var os = require('os');
if (os.platform() == 'win32') {  
    if (os.arch() == 'ia32') {
        var chilkat = require('@chilkat/ck-node21-win-ia32');
    } else {
        var chilkat = require('@chilkat/ck-node21-win64'); 
    }
} else if (os.platform() == 'linux') {
    if (os.arch() == 'arm') {
        var chilkat = require('@chilkat/ck-node21-arm');
    } else if (os.arch() == 'x86') {
        var chilkat = require('@chilkat/ck-node21-linux32');
    } else {
        var chilkat = require('@chilkat/ck-node21-linux64');
    }
} else if (os.platform() == 'darwin') {
    if (os.arch() == 'arm64') {
        var chilkat = require('@chilkat/ck-node21-mac-m1');
    } else {
        var chilkat = require('@chilkat/ck-node21-macosx');
    }
}


function chilkatExample() {

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    var http = new chilkat.Http();
    var success;

    var queryParams = new chilkat.JsonObject();
    queryParams.UpdateString("type","all");

    // Adds the "Authorization: Bearer <access_token>" header.
    http.AuthToken = "<access_token>";

    // resp: HttpResponse
    var resp = http.QuickRequestParams("GET","https://domain.com/crm/v2/Leads/deleted",queryParams);
    if (http.LastMethodSuccess == false) {
        console.log(http.LastErrorText);
        return;
    }

    var sbResponseBody = new chilkat.StringBuilder();
    resp.GetBodySb(sbResponseBody);

    var jResp = new chilkat.JsonObject();
    jResp.LoadSb(sbResponseBody);
    jResp.EmitCompact = false;

    console.log("Response Body:");
    console.log(jResp.Emit());

    var respStatusCode = resp.StatusCode;
    console.log("Response Status Code = " + respStatusCode);
    if (respStatusCode >= 400) {
        console.log("Response Header:");
        console.log(resp.Header);
        console.log("Failed.");

        return;
    }

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "data": [
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000002148036",
    //       "display_name": "Brian Dolan",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-05-11T13:03:49+00:00"
    //     },
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000002148061",
    //       "display_name": "First_Name Last_Name",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-05-11T13:02:58+00:00"
    //     },
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000002148050",
    //       "display_name": "Brian Dolan",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-05-11T13:02:58+00:00"
    //     },
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000002148126",
    //       "display_name": "Patricia Boyle",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-05-11T13:01:01+00:00"
    //     },
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000002118035",
    //       "display_name": "Paul Daly",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-05-07T06:02:02+00:00"
    //     },
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000002118055",
    //       "display_name": "First_Name Patricia Boyle",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-05-07T05:53:30+00:00"
    //     },
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000002118044",
    //       "display_name": "Paul Daly",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-05-07T05:53:30+00:00"
    //     },
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000002118182",
    //       "display_name": "Patricia Boyle",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-05-07T05:45:12+00:00"
    //     },
    //     {
    //       "deleted_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "id": "738964000001661038",
    //       "display_name": "testing",
    //       "type": "recycle",
    //       "created_by": {
    //         "name": "Patricia Boyle",
    //         "id": "738964000000291009"
    //       },
    //       "deleted_time": "2021-03-17T11:44:09+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001759156",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001517020",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001517009",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001465033",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001324713",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273062",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273048",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273042",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273036",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273030",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273024",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273018",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273012",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001273005",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001265002",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001112015",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-04-15T10:56:30+00:00"
    //     },
    //     {
    //       "deleted_by": null,
    //       "id": "738964000001759155",
    //       "display_name": null,
    //       "type": "permanent",
    //       "created_by": null,
    //       "deleted_time": "2021-03-17T11:44:08+00:00"
    //     }
    //   ],
    //   "info": {
    //     "per_page": 200,
    //     "count": 26,
    //     "page": 1,
    //     "more_records": false
    //   }
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    var Name;
    var Id;
    var id;
    var display_name;
    var v_type;
    var created_byName;
    var created_byId;
    var deleted_time;
    var deleted_by;
    var created_by;

    var Per_page = jResp.IntOf("info.per_page");
    var Count = jResp.IntOf("info.count");
    var Page = jResp.IntOf("info.page");
    var More_records = jResp.BoolOf("info.more_records");
    var i = 0;
    var count_i = jResp.SizeOfArray("data");
    while (i < count_i) {
        jResp.I = i;
        Name = jResp.StringOf("data[i].deleted_by.name");
        Id = jResp.StringOf("data[i].deleted_by.id");
        id = jResp.StringOf("data[i].id");
        display_name = jResp.StringOf("data[i].display_name");
        v_type = jResp.StringOf("data[i].type");
        created_byName = jResp.StringOf("data[i].created_by.name");
        created_byId = jResp.StringOf("data[i].created_by.id");
        deleted_time = jResp.StringOf("data[i].deleted_time");
        deleted_by = jResp.StringOf("data[i].deleted_by");
        created_by = jResp.StringOf("data[i].created_by");
        i = i+1;
    }


}

chilkatExample();

Curl Command

curl -G -d "type=all"
	-H "Authorization: Bearer <access_token>"
https://domain.com/crm/v2/Leads/deleted

Postman Collection Item JSON

{
  "name": "Leads",
  "request": {
    "auth": {
      "type": "bearer",
      "bearer": [
        {
          "key": "token",
          "value": "{{access-token}}",
          "type": "string"
        }
      ]
    },
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{api-domain}}/crm/v2/Leads/deleted?type=all",
      "host": [
        "{{api-domain}}"
      ],
      "path": [
        "crm",
        "v2",
        "Leads",
        "deleted"
      ],
      "query": [
        {
          "key": "type",
          "value": "all"
        }
      ]
    },
    "description": "To get the list of available records in the Leads module."
  },
  "response": [
    {
      "name": "P1: type=all",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/deleted?type=all",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "all"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:06:45 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-11T13:58:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4023320"
        },
        {
          "key": "clientsubVersion",
          "value": "4d8b6ee4f7d1d284c930a4e807480c5c"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "vary",
          "value": "accept-encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=15768000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"data\": [\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148036\",\n            \"display_name\": \"Brian Dolan\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:03:49+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148061\",\n            \"display_name\": \"First_Name Last_Name\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:02:58+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148050\",\n            \"display_name\": \"Brian Dolan\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:02:58+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148126\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:01:01+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118035\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T06:02:02+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118055\",\n            \"display_name\": \"First_Name Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118044\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118182\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:45:12+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000001661038\",\n            \"display_name\": \"testing\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-03-17T11:44:09+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001759156\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001517020\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001517009\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001465033\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001324713\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273062\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273048\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273042\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273036\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273030\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273024\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273018\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273012\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273005\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001265002\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001112015\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001759155\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-03-17T11:44:08+00:00\"\n        }\n    ],\n    \"info\": {\n        \"per_page\": 200,\n        \"count\": 26,\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "P2: type=recycle",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/deleted?type=recycle",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "recycle"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:07:04 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-11T13:58:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4023320"
        },
        {
          "key": "clientsubVersion",
          "value": "4d8b6ee4f7d1d284c930a4e807480c5c"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "vary",
          "value": "accept-encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=15768000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"data\": [\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148036\",\n            \"display_name\": \"Brian Dolan\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:03:49+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148061\",\n            \"display_name\": \"First_Name Last_Name\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:02:58+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148050\",\n            \"display_name\": \"Brian Dolan\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:02:58+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148126\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:01:01+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118035\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T06:02:02+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118055\",\n            \"display_name\": \"First_Name Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118044\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118182\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:45:12+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000001661038\",\n            \"display_name\": \"testing\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-03-17T11:44:09+00:00\"\n        }\n    ],\n    \"info\": {\n        \"per_page\": 200,\n        \"count\": 9,\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "P3: type=permanent",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/deleted?type=permanent",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "permanent"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:07:26 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-11T13:58:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4023320"
        },
        {
          "key": "clientsubVersion",
          "value": "4d8b6ee4f7d1d284c930a4e807480c5c"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "vary",
          "value": "accept-encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=15768000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"data\": [\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001759156\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001517020\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001517009\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001465033\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001324713\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273062\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273048\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273042\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273036\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273030\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273024\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273018\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273012\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273005\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001265002\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001112015\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001759155\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-03-17T11:44:08+00:00\"\n        }\n    ],\n    \"info\": {\n        \"per_page\": 200,\n        \"count\": 17,\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "P4: page & per_page",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/deleted?type=permanent&page=2&per_page=1",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "permanent"
            },
            {
              "key": "page",
              "value": "2"
            },
            {
              "key": "per_page",
              "value": "1"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:07:52 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "217"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-11T13:58:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4023320"
        },
        {
          "key": "clientsubVersion",
          "value": "4d8b6ee4f7d1d284c930a4e807480c5c"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=15768000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"data\": [\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001517020\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        }\n    ],\n    \"info\": {\n        \"per_page\": 1,\n        \"count\": 1,\n        \"page\": 2,\n        \"more_records\": true\n    }\n}"
    },
    {
      "name": "SUCCESS RESPONSE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/deleted",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "deleted"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:08:12 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-11T13:58:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4023320"
        },
        {
          "key": "clientsubVersion",
          "value": "4d8b6ee4f7d1d284c930a4e807480c5c"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "vary",
          "value": "accept-encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=15768000"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"data\": [\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148036\",\n            \"display_name\": \"Brian Dolan\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:03:49+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148061\",\n            \"display_name\": \"First_Name Last_Name\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:02:58+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148050\",\n            \"display_name\": \"Brian Dolan\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:02:58+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002148126\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-11T13:01:01+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118035\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T06:02:02+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118055\",\n            \"display_name\": \"First_Name Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118044\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118182\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:45:12+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000001661038\",\n            \"display_name\": \"testing\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Boyle\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-03-17T11:44:09+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001759156\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001517020\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001517009\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001465033\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001324713\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273062\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273048\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273042\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273036\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273030\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273024\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273018\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273012\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001273005\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001265002\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001112015\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-04-15T10:56:30+00:00\"\n        },\n        {\n            \"deleted_by\": null,\n            \"id\": \"738964000001759155\",\n            \"display_name\": null,\n            \"type\": \"permanent\",\n            \"created_by\": null,\n            \"deleted_time\": \"2021-03-17T11:44:08+00:00\"\n        }\n    ],\n    \"info\": {\n        \"per_page\": 200,\n        \"count\": 26,\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "INVALID_MODULE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Lead/deleted",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Lead",
            "deleted"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:08:27 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "110"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-11T13:58:39+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4023320"
        },
        {
          "key": "clientsubVersion",
          "value": "4d8b6ee4f7d1d284c930a4e807480c5c"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_MODULE\",\n    \"details\": {},\n    \"message\": \"the module name given seems to be invalid\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "INVALID_URL_PATTERN",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/delete",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "delete"
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:08:47 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "131"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-store, no-cache, must-revalidate, private"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-11T13:58:39+00:00"
        },
        {
          "key": "Content-Disposition",
          "value": "attachment; filename=response.json"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "Content-Language",
          "value": "en-US"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_URL_PATTERN\",\n    \"details\": {},\n    \"message\": \"Please check if the URL trying to access is a correct one\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "INVALID_REQUEST_METHOD",
      "originalRequest": {
        "method": "COPY",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/delete",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "delete"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:09:06 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "124"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "X-Frame-Options",
          "value": "deny"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"INVALID_REQUEST_METHOD\",\n    \"details\": {},\n    \"message\": \"The http request method type is not a valid one\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "AUTHENTICATION_FAILURE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/delete",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "delete"
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:09:28 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "98"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"AUTHENTICATION_FAILURE\",\n    \"details\": {},\n    \"message\": \"Authentication failed\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "PATTERN_NOT_MATCHED",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/deleted?type=All",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "All"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Tue, 11 May 2021 13:09:52 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "140"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"PATTERN_NOT_MATCHED\",\n    \"details\": {\n        \"api_name\": \"type\"\n    },\n    \"message\": \"Please check whether the input values are correct\",\n    \"status\": \"error\"\n}"
    },
    {
      "name": "OAUTH_SCOPE_MISMATCH",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2/Leads/deleted?type=all",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "all"
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Thu, 13 May 2021 06:35:02 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "113"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "Pragma",
          "value": "no-cache"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"code\": \"OAUTH_SCOPE_MISMATCH\",\n    \"details\": {},\n    \"message\": \"invalid oauth scope to access this URL\",\n    \"status\": \"error\"\n}"
    }
  ]
}