Back to Collection Items
integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Name
string ls_Id
string ls_V_Email
string ls_Modified_Time
string ls_Sattachments
string ls_Created_Time
string ls_Parent_IdName
string ls_Parent_IdId
integer li_Seditable
string ls_Sse_module
integer li_Sis_shared_to_client
string ls_Modified_ByName
string ls_Modified_ById
string ls_Modified_ByEmail
string ls_Ssize
string ls_Sstate
integer li_Svoice_note
string ls_Id
string ls_Created_ByName
string ls_Created_ById
string ls_Created_ByEmail
string ls_Note_Title
string ls_Note_Content
integer li_Per_page
integer li_Count
integer li_Page
integer li_More_records
integer i
integer li_Count_i
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
destroy loo_Http
MessageBox("Error","Connecting to COM object failed")
return
end if
// Adds the "Authorization: Bearer <access_token>" header.
loo_Http.AuthToken = "<access_token>"
loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")
li_Success = loo_Http.QuickGetSb("https://domain.com/crm/v2/notes",loo_SbResponseBody)
if li_Success = 0 then
Write-Debug loo_Http.LastErrorText
destroy loo_Http
destroy loo_SbResponseBody
return
end if
loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0
Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()
li_RespStatusCode = loo_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
Write-Debug "Response Header:"
Write-Debug loo_Http.LastHeader
Write-Debug "Failed."
destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp
return
end if
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "data": [
// {
// "Owner": {
// "name": "Patricia Boyle",
// "id": "738964000000291009",
// "email": "patricia.ss@zylker.com"
// },
// "Modified_Time": "2021-05-07T11:10:01+00:00",
// "$attachments": null,
// "Created_Time": "2021-05-07T11:08:30+00:00",
// "Parent_Id": {
// "name": null,
// "id": "738964000002131001"
// },
// "$editable": true,
// "$se_module": "Leads",
// "$is_shared_to_client": false,
// "Modified_By": {
// "name": "Patricia Boyle",
// "id": "738964000000291009",
// "email": "patricia.ss@zylker.com"
// },
// "$size": null,
// "$state": "save",
// "$voice_note": false,
// "id": "738964000002130215",
// "Created_By": {
// "name": "Patricia Boyle",
// "id": "738964000000291009",
// "email": "patricia.ss@zylker.com"
// },
// "Note_Title": "Contacted",
// "Note_Content": "Have to assign to a different user"
// }
// ],
// "info": {
// "per_page": 1,
// "count": 1,
// "page": 1,
// "more_records": true
// }
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
li_Per_page = loo_JResp.IntOf("info.per_page")
li_Count = loo_JResp.IntOf("info.count")
li_Page = loo_JResp.IntOf("info.page")
li_More_records = loo_JResp.BoolOf("info.more_records")
i = 0
li_Count_i = loo_JResp.SizeOfArray("data")
do while i < li_Count_i
loo_JResp.I = i
ls_Name = loo_JResp.StringOf("data[i].Owner.name")
ls_Id = loo_JResp.StringOf("data[i].Owner.id")
ls_V_Email = loo_JResp.StringOf("data[i].Owner.email")
ls_Modified_Time = loo_JResp.StringOf("data[i].Modified_Time")
ls_Sattachments = loo_JResp.StringOf("data[i].$attachments")
ls_Created_Time = loo_JResp.StringOf("data[i].Created_Time")
ls_Parent_IdName = loo_JResp.StringOf("data[i].Parent_Id.name")
ls_Parent_IdId = loo_JResp.StringOf("data[i].Parent_Id.id")
li_Seditable = loo_JResp.BoolOf("data[i].$editable")
ls_Sse_module = loo_JResp.StringOf("data[i].$se_module")
li_Sis_shared_to_client = loo_JResp.BoolOf("data[i].$is_shared_to_client")
ls_Modified_ByName = loo_JResp.StringOf("data[i].Modified_By.name")
ls_Modified_ById = loo_JResp.StringOf("data[i].Modified_By.id")
ls_Modified_ByEmail = loo_JResp.StringOf("data[i].Modified_By.email")
ls_Ssize = loo_JResp.StringOf("data[i].$size")
ls_Sstate = loo_JResp.StringOf("data[i].$state")
li_Svoice_note = loo_JResp.BoolOf("data[i].$voice_note")
ls_Id = loo_JResp.StringOf("data[i].id")
ls_Created_ByName = loo_JResp.StringOf("data[i].Created_By.name")
ls_Created_ById = loo_JResp.StringOf("data[i].Created_By.id")
ls_Created_ByEmail = loo_JResp.StringOf("data[i].Created_By.email")
ls_Note_Title = loo_JResp.StringOf("data[i].Note_Title")
ls_Note_Content = loo_JResp.StringOf("data[i].Note_Content")
i = i + 1
loop
destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp
Curl Command
curl -X GET
-H "Authorization: Bearer <access_token>"
https://domain.com/crm/v2/notes
Postman Collection Item JSON
{
"name": "Notes",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access-token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/notes",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"notes"
]
},
"description": "To get the list of notes."
},
"response": [
{
"name": "P1: page & per_page",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/notes?page=1&per_page=1",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"notes"
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "per_page",
"value": "1"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 16:05:08 GMT"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "738"
},
{
"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-11T16:58:15+00:00"
},
{
"key": "clientVersion",
"value": "4027076"
},
{
"key": "clientsubVersion",
"value": "748ecbe82ec7e144b66ee25f264bbd88"
},
{
"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 \"Owner\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Modified_Time\": \"2021-05-07T11:10:01+00:00\",\n \"$attachments\": null,\n \"Created_Time\": \"2021-05-07T11:08:30+00:00\",\n \"Parent_Id\": {\n \"name\": null,\n \"id\": \"738964000002131001\"\n },\n \"$editable\": true,\n \"$se_module\": \"Leads\",\n \"$is_shared_to_client\": false,\n \"Modified_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"$size\": null,\n \"$state\": \"save\",\n \"$voice_note\": false,\n \"id\": \"738964000002130215\",\n \"Created_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Note_Title\": \"Contacted\",\n \"Note_Content\": \"Have to assign to a different user\"\n }\n ],\n \"info\": {\n \"per_page\": 1,\n \"count\": 1,\n \"page\": 1,\n \"more_records\": true\n }\n}"
},
{
"name": "P2: fields",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/notes?fields=Note_Content",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"notes"
],
"query": [
{
"key": "fields",
"value": "Note_Content"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 16:05:26 GMT"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "446"
},
{
"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-11T16:58:15+00:00"
},
{
"key": "clientVersion",
"value": "4027076"
},
{
"key": "clientsubVersion",
"value": "748ecbe82ec7e144b66ee25f264bbd88"
},
{
"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 \"id\": \"738964000002130215\",\n \"Note_Content\": \"Have to assign to a different user\"\n },\n {\n \"id\": \"738964000002130210\",\n \"Note_Content\": \"Need to do further tracking\"\n },\n {\n \"id\": \"738964000002130205\",\n \"Note_Content\": \"Need to do further tracking\"\n },\n {\n \"id\": \"738964000002130200\",\n \"Note_Content\": \"Need to do further tracking\"\n },\n {\n \"id\": \"738964000002058083\",\n \"Note_Content\": \"Need to do further tracking\"\n }\n ],\n \"info\": {\n \"per_page\": 200,\n \"count\": 5,\n \"page\": 1,\n \"more_records\": false\n }\n}"
},
{
"name": "P3: sort_order & sort_by",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/notes?sort_order=asc&sort_by=id&fields=id",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"notes"
],
"query": [
{
"key": "sort_order",
"value": "asc"
},
{
"key": "sort_by",
"value": "id"
},
{
"key": "fields",
"value": "id"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Thu, 13 May 2021 08:51:05 GMT"
},
{
"key": "Content-Type",
"value": "application/json;charset=utf-8"
},
{
"key": "Content-Length",
"value": "242"
},
{
"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-13T09:27:38+00:00"
},
{
"key": "clientVersion",
"value": "4031107"
},
{
"key": "clientsubVersion",
"value": "113b962796fc62946d9303284a64efab"
},
{
"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 \"id\": \"738964000002058083\"\n },\n {\n \"id\": \"738964000002130200\"\n },\n {\n \"id\": \"738964000002130205\"\n },\n {\n \"id\": \"738964000002130210\"\n },\n {\n \"id\": \"738964000002152031\"\n },\n {\n \"id\": \"738964000002152036\"\n }\n ],\n \"info\": {\n \"per_page\": 200,\n \"count\": 6,\n \"page\": 1,\n \"more_records\": false\n }\n}"
},
{
"name": "SUCCESS RESPONSE",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/notes",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"notes"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 16:04: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-11T16:58:15+00:00"
},
{
"key": "clientVersion",
"value": "4027076"
},
{
"key": "clientsubVersion",
"value": "748ecbe82ec7e144b66ee25f264bbd88"
},
{
"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 \"Owner\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Modified_Time\": \"2021-05-07T11:10:01+00:00\",\n \"$attachments\": null,\n \"Created_Time\": \"2021-05-07T11:08:30+00:00\",\n \"Parent_Id\": {\n \"name\": null,\n \"id\": \"738964000002131001\"\n },\n \"$editable\": true,\n \"$se_module\": \"Leads\",\n \"$is_shared_to_client\": false,\n \"Modified_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"$size\": null,\n \"$state\": \"save\",\n \"$voice_note\": false,\n \"id\": \"738964000002130215\",\n \"Created_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Note_Title\": \"Contacted\",\n \"Note_Content\": \"Have to assign to a different user\"\n },\n {\n \"Owner\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Modified_Time\": \"2021-05-07T11:08:22+00:00\",\n \"$attachments\": null,\n \"Created_Time\": \"2021-05-07T11:08:22+00:00\",\n \"Parent_Id\": {\n \"name\": null,\n \"id\": \"738964000002131001\"\n },\n \"$editable\": true,\n \"$se_module\": \"Leads\",\n \"$is_shared_to_client\": false,\n \"Modified_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"$size\": null,\n \"$state\": \"save\",\n \"$voice_note\": false,\n \"id\": \"738964000002130210\",\n \"Created_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Note_Title\": \"Contacted\",\n \"Note_Content\": \"Need to do further tracking\"\n },\n {\n \"Owner\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Modified_Time\": \"2021-05-07T11:06:20+00:00\",\n \"$attachments\": null,\n \"Created_Time\": \"2021-05-07T11:06:20+00:00\",\n \"Parent_Id\": {\n \"name\": null,\n \"id\": \"738964000002131001\"\n },\n \"$editable\": true,\n \"$se_module\": \"Leads\",\n \"$is_shared_to_client\": false,\n \"Modified_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"$size\": null,\n \"$state\": \"save\",\n \"$voice_note\": false,\n \"id\": \"738964000002130205\",\n \"Created_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Note_Title\": \"Contacted\",\n \"Note_Content\": \"Need to do further tracking\"\n },\n {\n \"Owner\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Modified_Time\": \"2021-05-07T11:05:34+00:00\",\n \"$attachments\": null,\n \"Created_Time\": \"2021-05-07T11:05:34+00:00\",\n \"Parent_Id\": {\n \"name\": null,\n \"id\": \"738964000002131001\"\n },\n \"$editable\": true,\n \"$se_module\": \"Leads\",\n \"$is_shared_to_client\": false,\n \"Modified_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"$size\": null,\n \"$state\": \"save\",\n \"$voice_note\": false,\n \"id\": \"738964000002130200\",\n \"Created_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Note_Title\": \"Contacted\",\n \"Note_Content\": \"Need to do further tracking\"\n },\n {\n \"Owner\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Modified_Time\": \"2021-04-21T09:05:46+00:00\",\n \"$attachments\": null,\n \"Created_Time\": \"2021-04-21T09:05:46+00:00\",\n \"Parent_Id\": {\n \"name\": null,\n \"id\": \"738964000002058068\"\n },\n \"$editable\": true,\n \"$se_module\": \"Leads\",\n \"$is_shared_to_client\": false,\n \"Modified_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"$size\": null,\n \"$state\": \"save\",\n \"$voice_note\": false,\n \"id\": \"738964000002058083\",\n \"Created_By\": {\n \"name\": \"Patricia Boyle\",\n \"id\": \"738964000000291009\",\n \"email\": \"patricia.ss@zylker.com\"\n },\n \"Note_Title\": null,\n \"Note_Content\": \"Need to do further tracking\"\n }\n ],\n \"info\": {\n \"per_page\": 200,\n \"count\": 5,\n \"page\": 1,\n \"more_records\": false\n }\n}"
},
{
"name": "INVALID_MODULE",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/note",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"note"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 16:05:49 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-11T16:58:15+00:00"
},
{
"key": "clientVersion",
"value": "4027076"
},
{
"key": "clientsubVersion",
"value": "748ecbe82ec7e144b66ee25f264bbd88"
},
{
"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_REQUEST_METHOD",
"originalRequest": {
"method": "COPY",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/notes",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"notes"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 16:06:10 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/notes",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"notes"
]
}
},
"status": "Unauthorized",
"code": 401,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Tue, 11 May 2021 16:06:29 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": "OAUTH_SCOPE_MISMATCH",
"originalRequest": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{api-domain}}/crm/v2/notes",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2",
"notes"
]
}
},
"status": "Unauthorized",
"code": 401,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Server",
"value": "ZGS"
},
{
"key": "Date",
"value": "Thu, 13 May 2021 06:40:10 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}"
}
]
}