Pull Ticket API by Date Range
The Pull Ticket API section allows users to get the existing ticket information sourced from external systems which were created particularly on the specific dates
Last updated
{
"totalCount": null,
"message": [
{
"tat": "",
"sla": "",
"date": "19-04-2024 14:19",
"status": "Pending",
"nextFollowUp": "19-04-2024 14:19",
"lastFollowUp": "22-04-2024 14:31",
"taskId": 530348198,
"lastSource": "Mobile App",
"orderId": "",
"lastConvesationTime": "19-04-2024 14:19",
"ticketId": "713516551148",
"folderId": 0,
"primarySource": "Mobile App",
"detail": "",
"mergedTicketId": "",
"contactId": 0,
"productId": 0,
"creatorId": 209803,
"substatusKey": "PS",
"customerId": 0,
"assignedId": 209803,
"referenceId": 0,
"creatorName": "Kapture Dev API's",
"priority": "low",
"pendingTaskId": 0,
"assignedToName": "Kapture Dev API's",
"callBack": "",
"customer_rating": 0,
"queueKey": "",
"lastConversationId": 0,
"slaStatus": "out of sla",
"queueName": "",
"total_conversations": 0,
"disposition": "Inbox",
"taskTitle": "TEST 1",
"taskEnddate": "",
"url": "https://devapi.kapturecrm.com/employee/view-task-detail.html?detail=5/530348198/713516551148",
"substatus": "Pending",
"assigneeCode": "",
"ftr": "no",
"email": "",
"phone": "",
"attachments": [],
"additional_info": {}
}
],
"status": "success"
}curl --location 'https://devapi.kapturecrm.com/select-ticket-between-start-and-end-dates.html/v.2.0' \
--header 'Authorization: Basic <Your Token>' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=; _KAPTURECRM_SESSION=' \
--data '[
{
"start_date": "2024-04-19",
"end_date": "2024-04-20"
}
]'import http.client
import json
conn = http.client.HTTPSConnection("devapi.kapturecrm.com")
payload = json.dumps([
{
"start_date": "2024-04-19",
"end_date": "2024-04-20"
}
])
headers = {
'Authorization': 'Basic <Your Token>',
'Content-Type': 'application/json',
'Cookie': 'JSESSIONID=; _KAPTURECRM_SESSION='
}
conn.request("POST", "/select-ticket-between-start-and-end-dates.html/v.2.0", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))var request = require('request');
var options = {
'method': 'POST',
'url': 'https://devapi.kapturecrm.com/select-ticket-between-start-and-end-dates.html/v.2.0',
'headers': {
'Authorization': 'Basic <Your Token>',
'Content-Type': 'application/json',
'Cookie': 'JSESSIONID=; _KAPTURECRM_SESSION='
},
body: JSON.stringify([
{
"start_date": "2024-04-19",
"end_date": "2024-04-20"
}
])
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});