Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
DECLARE @iTmp0 int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
DECLARE @queryParams int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @queryParams OUT
EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'type', 'all'
-- Adds the "Authorization: Bearer <access_token>" header.
EXEC sp_OASetProperty @http, 'AuthToken', '<access_token>'
DECLARE @resp int
EXEC sp_OAMethod @http, 'QuickRequestParams', @resp OUT, 'GET', 'https://domain.com/crm/v2/Leads/deleted', @queryParams
EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
IF @iTmp0 = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
RETURN
END
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody
DECLARE @jResp int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
EXEC sp_OASetProperty @jResp, 'EmitCompact', 0
PRINT 'Response Body:'
EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
PRINT @sTmp0
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @resp
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
EXEC @hr = sp_OADestroy @resp
-- 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
DECLARE @Name nvarchar(4000)
DECLARE @Id nvarchar(4000)
DECLARE @id nvarchar(4000)
DECLARE @display_name nvarchar(4000)
DECLARE @v_type nvarchar(4000)
DECLARE @created_byName nvarchar(4000)
DECLARE @created_byId nvarchar(4000)
DECLARE @deleted_time nvarchar(4000)
DECLARE @deleted_by nvarchar(4000)
DECLARE @created_by nvarchar(4000)
DECLARE @Per_page int
EXEC sp_OAMethod @jResp, 'IntOf', @Per_page OUT, 'info.per_page'
DECLARE @Count int
EXEC sp_OAMethod @jResp, 'IntOf', @Count OUT, 'info.count'
DECLARE @Page int
EXEC sp_OAMethod @jResp, 'IntOf', @Page OUT, 'info.page'
DECLARE @More_records int
EXEC sp_OAMethod @jResp, 'BoolOf', @More_records OUT, 'info.more_records'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'data'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'data[i].deleted_by.name'
EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'data[i].deleted_by.id'
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'data[i].id'
EXEC sp_OAMethod @jResp, 'StringOf', @display_name OUT, 'data[i].display_name'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'data[i].type'
EXEC sp_OAMethod @jResp, 'StringOf', @created_byName OUT, 'data[i].created_by.name'
EXEC sp_OAMethod @jResp, 'StringOf', @created_byId OUT, 'data[i].created_by.id'
EXEC sp_OAMethod @jResp, 'StringOf', @deleted_time OUT, 'data[i].deleted_time'
EXEC sp_OAMethod @jResp, 'StringOf', @deleted_by OUT, 'data[i].deleted_by'
EXEC sp_OAMethod @jResp, 'StringOf', @created_by OUT, 'data[i].created_by'
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
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}"
}
]
}