curl --request GET \
--url http://localhost:3000/v2/complaints/{id}import requests
url = "http://localhost:3000/v2/complaints/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/v2/complaints/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v2/complaints/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/v2/complaints/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/v2/complaints/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v2/complaints/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"number": 123,
"companyId": "<string>",
"status": {
"status": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"chatId": "<string>",
"desc": "Updated complaint description with additional details",
"roomDescription": "Updated room location information",
"contactName": "John Smith Jr.",
"contact": {
"email": "jsmith@example.com",
"telephone": "<string>"
},
"priority": 3,
"images": [
"<string>"
],
"userId": "507f1f77bcf86cd799439014",
"comment": "Additional notes about the complaint resolution",
"response": "Thank you for your patience. The issue has been resolved.",
"customFields": {}
}Get Tickets
Retrieve detailed information about a specific complaint by its unique identifier. Returns comprehensive complaint data including images, contact information, and resolution details.
curl --request GET \
--url http://localhost:3000/v2/complaints/{id}import requests
url = "http://localhost:3000/v2/complaints/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/v2/complaints/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v2/complaints/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/v2/complaints/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/v2/complaints/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v2/complaints/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"number": 123,
"companyId": "<string>",
"status": {
"status": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"lastModifiedAt": "2023-11-07T05:31:56Z",
"lastModifiedBy": "<string>"
},
"chatId": "<string>",
"desc": "Updated complaint description with additional details",
"roomDescription": "Updated room location information",
"contactName": "John Smith Jr.",
"contact": {
"email": "jsmith@example.com",
"telephone": "<string>"
},
"priority": 3,
"images": [
"<string>"
],
"userId": "507f1f77bcf86cd799439014",
"comment": "Additional notes about the complaint resolution",
"response": "Thank you for your patience. The issue has been resolved.",
"customFields": {}
}Path Parameters
Complaint ID
Response
Complaint retrieved successfully
Data that can be updated for an existing complaint
Unique identifier of the entity
Unique number of the entity, used for identification
The ID of the company this entity belongs to
Entity Status information
Show child attributes
Show child attributes
ID of the chat associated with this entity
Updated description of the complaint
"Updated complaint description with additional details"
Updated room description
"Updated room location information"
Updated contact name
"John Smith Jr."
Updated contact information
Show child attributes
Show child attributes
Updated priority level (1=Low, 2=Medium, 3=High, 4=Critical)
1 <= x <= 43
Updated images for the complaint
ID of the user to assign/reassign this complaint to
"507f1f77bcf86cd799439014"
Internal comment about the complaint
"Additional notes about the complaint resolution"
Customer response message
"Thank you for your patience. The issue has been resolved."
Updated custom field values
Was this page helpful?

