Chilkat Online Tools

Foxpro / Zoho CRM REST APIs / Leads

Back to Collection Items

LOCAL loHttp
LOCAL lnSuccess
LOCAL loQueryParams
LOCAL loResp
LOCAL loSbResponseBody
LOCAL loJResp
LOCAL lnRespStatusCode
LOCAL lcName
LOCAL lcId
LOCAL lcId
LOCAL lcDisplay_name
LOCAL lcV_type
LOCAL lcCreated_byName
LOCAL lcCreated_byId
LOCAL lcDeleted_time
LOCAL lcDeleted_by
LOCAL lcCreated_by
LOCAL lnPer_page
LOCAL lnCount
LOCAL lnPage
LOCAL lnMore_records
LOCAL i
LOCAL lnCount_i

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

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http')
loHttp = CreateObject('Chilkat.Http')

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loQueryParams = CreateObject('Chilkat.JsonObject')
loQueryParams.UpdateString("type","all")

* Adds the "Authorization: Bearer <access_token>" header.
loHttp.AuthToken = "<access_token>"

loResp = loHttp.QuickRequestParams("GET","https://domain.com/crm/v2/Leads/deleted",loQueryParams)
IF (loHttp.LastMethodSuccess = 0) THEN
    ? loHttp.LastErrorText
    RELEASE loHttp
    RELEASE loQueryParams
    CANCEL
ENDIF

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbResponseBody = CreateObject('Chilkat.StringBuilder')
loResp.GetBodySb(loSbResponseBody)

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loJResp = CreateObject('Chilkat.JsonObject')
loJResp.LoadSb(loSbResponseBody)
loJResp.EmitCompact = 0

? "Response Body:"
? loJResp.Emit()

lnRespStatusCode = loResp.StatusCode
? "Response Status Code = " + STR(lnRespStatusCode)
IF (lnRespStatusCode >= 400) THEN
    ? "Response Header:"
    ? loResp.Header
    ? "Failed."
    RELEASE loResp
    RELEASE loHttp
    RELEASE loQueryParams
    RELEASE loSbResponseBody
    RELEASE loJResp
    CANCEL
ENDIF

RELEASE loResp

* 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

lnPer_page = loJResp.IntOf("info.per_page")
lnCount = loJResp.IntOf("info.count")
lnPage = loJResp.IntOf("info.page")
lnMore_records = loJResp.BoolOf("info.more_records")
i = 0
lnCount_i = loJResp.SizeOfArray("data")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcName = loJResp.StringOf("data[i].deleted_by.name")
    lcId = loJResp.StringOf("data[i].deleted_by.id")
    lcId = loJResp.StringOf("data[i].id")
    lcDisplay_name = loJResp.StringOf("data[i].display_name")
    lcV_type = loJResp.StringOf("data[i].type")
    lcCreated_byName = loJResp.StringOf("data[i].created_by.name")
    lcCreated_byId = loJResp.StringOf("data[i].created_by.id")
    lcDeleted_time = loJResp.StringOf("data[i].deleted_time")
    lcDeleted_by = loJResp.StringOf("data[i].deleted_by")
    lcCreated_by = loJResp.StringOf("data[i].created_by")
    i = i + 1
ENDDO

RELEASE loHttp
RELEASE loQueryParams
RELEASE loSbResponseBody
RELEASE loJResp

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}"
    }
  ]
}