Chilkat Online Tools

autoit / Zoho CRM REST APIs / Leads

Back to Collection Items

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

$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess

$oQueryParams = ObjCreate("Chilkat.JsonObject")
$oQueryParams.UpdateString("type","all")

; Adds the "Authorization: Bearer <access_token>" header.
$oHttp.AuthToken = "<access_token>"

Local $oResp = $oHttp.QuickRequestParams("GET","https://domain.com/crm/v2.1/Leads/deleted",$oQueryParams)
If ($oHttp.LastMethodSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf

$oSbResponseBody = ObjCreate("Chilkat.StringBuilder")
$oResp.GetBodySb($oSbResponseBody)

$oJResp = ObjCreate("Chilkat.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
$oJResp.EmitCompact = False

ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oJResp.Emit() & @CRLF)

Local $iRespStatusCode = $oResp.StatusCode
ConsoleWrite("Response Status Code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode >= 400) Then
    ConsoleWrite("Response Header:" & @CRLF)
    ConsoleWrite($oResp.Header & @CRLF)
    ConsoleWrite("Failed." & @CRLF)

    Exit
EndIf

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

; {
;   "data": [
;     {
;       "deleted_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "id": "738964000002118035",
;       "display_name": "Paul Daly",
;       "type": "recycle",
;       "created_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "deleted_time": "2021-05-07T06:02:02+00:00"
;     },
;     {
;       "deleted_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "id": "738964000002118055",
;       "display_name": "First_Name Patricia Boyle",
;       "type": "recycle",
;       "created_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "deleted_time": "2021-05-07T05:53:30+00:00"
;     },
;     {
;       "deleted_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "id": "738964000002118044",
;       "display_name": "Paul Daly",
;       "type": "recycle",
;       "created_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "deleted_time": "2021-05-07T05:53:30+00:00"
;     },
;     {
;       "deleted_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "id": "738964000002118182",
;       "display_name": "Patricia Boyle",
;       "type": "recycle",
;       "created_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "deleted_time": "2021-05-07T05:45:12+00:00"
;     },
;     {
;       "deleted_by": {
;         "name": "Patricia Patricia",
;         "id": "738964000000291009"
;       },
;       "id": "738964000001661038",
;       "display_name": "testing",
;       "type": "recycle",
;       "created_by": {
;         "name": "Patricia Patricia",
;         "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": 22,
;     "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

Local $sName
Local $sId
Local $sId
Local $sDisplay_name
Local $sV_type
Local $sCreated_byName
Local $sCreated_byId
Local $sDeleted_time
Local $sDeleted_by
Local $sCreated_by

Local $iPer_page = $oJResp.IntOf("info.per_page")
Local $iCount = $oJResp.IntOf("info.count")
Local $iPage = $oJResp.IntOf("info.page")
Local $bMore_records = $oJResp.BoolOf("info.more_records")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("data")
While $i < $iCount_i
    $oJResp.I = $i
    $sName = $oJResp.StringOf("data[i].deleted_by.name")
    $sId = $oJResp.StringOf("data[i].deleted_by.id")
    $sId = $oJResp.StringOf("data[i].id")
    $sDisplay_name = $oJResp.StringOf("data[i].display_name")
    $sV_type = $oJResp.StringOf("data[i].type")
    $sCreated_byName = $oJResp.StringOf("data[i].created_by.name")
    $sCreated_byId = $oJResp.StringOf("data[i].created_by.id")
    $sDeleted_time = $oJResp.StringOf("data[i].deleted_time")
    $sDeleted_by = $oJResp.StringOf("data[i].deleted_by")
    $sCreated_by = $oJResp.StringOf("data[i].created_by")
    $i = $i + 1
Wend

Curl Command

curl -G -d "type=all"
	-H "Authorization: Bearer <access_token>"
https://domain.com/crm/v2.1/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.1/Leads/deleted?type=all",
      "host": [
        "{{api-domain}}"
      ],
      "path": [
        "crm",
        "v2.1",
        "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.1/Leads/deleted?type=all",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "all"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:03:08 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-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-07T06:44:53+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4016256"
        },
        {
          "key": "clientsubVersion",
          "value": "8ef7aa3133ce0e105307c407d89b23d9"
        },
        {
          "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 Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118035\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T06:02:02+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118055\",\n            \"display_name\": \"First_Name Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118044\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118182\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:45:12+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000001661038\",\n            \"display_name\": \"testing\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\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\": 22,\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "P2: type=recycle",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/Leads/deleted?type=recycle",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "recycle"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:03:33 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-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-07T06:44:53+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4016256"
        },
        {
          "key": "clientsubVersion",
          "value": "8ef7aa3133ce0e105307c407d89b23d9"
        },
        {
          "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 Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118035\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T06:02:02+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118055\",\n            \"display_name\": \"First_Name Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118044\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118182\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:45:12+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000001661038\",\n            \"display_name\": \"testing\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-03-17T11:44:09+00:00\"\n        }\n    ],\n    \"info\": {\n        \"per_page\": 200,\n        \"count\": 5,\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "P3: type=permanent",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/Leads/deleted?type=permanent",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "permanent"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:04:05 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-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-07T06:44:53+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4016256"
        },
        {
          "key": "clientsubVersion",
          "value": "8ef7aa3133ce0e105307c407d89b23d9"
        },
        {
          "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.1/Leads/deleted?type=permanent&page=2&per_page=1",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "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": "Fri, 07 May 2021 06:04:48 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-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-07T06:44:53+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4016256"
        },
        {
          "key": "clientsubVersion",
          "value": "8ef7aa3133ce0e105307c407d89b23d9"
        },
        {
          "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.1/Leads/deleted",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Leads",
            "deleted"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:02:49 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-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-07T06:44:53+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4016256"
        },
        {
          "key": "clientsubVersion",
          "value": "8ef7aa3133ce0e105307c407d89b23d9"
        },
        {
          "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 Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118035\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T06:02:02+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118055\",\n            \"display_name\": \"First_Name Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118044\",\n            \"display_name\": \"Paul Daly\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:53:30+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000002118182\",\n            \"display_name\": \"Patricia Boyle\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"deleted_time\": \"2021-05-07T05:45:12+00:00\"\n        },\n        {\n            \"deleted_by\": {\n                \"name\": \"Patricia Patricia\",\n                \"id\": \"738964000000291009\"\n            },\n            \"id\": \"738964000001661038\",\n            \"display_name\": \"testing\",\n            \"type\": \"recycle\",\n            \"created_by\": {\n                \"name\": \"Patricia Patricia\",\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\": 22,\n        \"page\": 1,\n        \"more_records\": false\n    }\n}"
    },
    {
      "name": "INVALID_MODULE",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/Lead/deleted?type=all",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Lead",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "all"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:05:15 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "133"
        },
        {
          "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-ACCESSTOKEN-RESET",
          "value": "2021-05-07T06:44:53+00:00"
        },
        {
          "key": "clientVersion",
          "value": "4016256"
        },
        {
          "key": "clientsubVersion",
          "value": "8ef7aa3133ce0e105307c407d89b23d9"
        },
        {
          "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        \"resource_path_index\": 0\n    },\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.1/Lead/delete",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Lead",
            "delete"
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:05:31 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-cache"
        },
        {
          "key": "Expires",
          "value": "Thu, 01 Jan 1970 00:00:00 GMT"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-ACCESSTOKEN-RESET",
          "value": "2021-05-07T06:44:53+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": "PATCH",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/Lead/deleted",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Lead",
            "deleted"
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:05:55 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.1/Lead/deleted",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Lead",
            "deleted"
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:06:14 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.1/Lead/deleted?type=All",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Lead",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "All"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Fri, 07 May 2021 06:06:35 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": "INVALID_REQUEST",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "{{api-domain}}/crm/v2.1/Leads/deleted?type=all",
          "host": [
            "{{api-domain}}"
          ],
          "path": [
            "crm",
            "v2.1",
            "Leads",
            "deleted"
          ],
          "query": [
            {
              "key": "type",
              "value": "all"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "ZGS"
        },
        {
          "key": "Date",
          "value": "Thu, 13 May 2021 06:50:36 GMT"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=utf-8"
        },
        {
          "key": "Content-Length",
          "value": "192"
        },
        {
          "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\": \"INVALID_REQUEST\",\n    \"details\": {},\n    \"message\": \"unable to process your request. please verify whether you have entered proper method name, parameter and parameter values.\",\n    \"status\": \"error\"\n}"
    }
  ]
}