- Print
- DarkLight
Note :
URL : https://v3.lenna.ai/app/public/api/{{appId}}/ticket/create
- app_id => {{appId}} => berisi sebagai berikut contoh : NbWmne
Method : POST
Headers :
- token => {{token}} => berisi sebagai "access_token" ketika login, contoh :
- userId => {{hashUserId}} => berisi sebagai "id" ketika login , contoh :
Daftar Input Status (field: status) :
- new => untuk status new
- open => untuk status open
- pending => untuk status pending
- on-progress => untuk status On Progress
- solved => untuk status Solved
- closed => untuk status Closed
Daftar Input Priority (field: priority):
- low => untuk priority Low
- moderate => untuk priority Moderate
- medium => untuk priority Medium
- high => untuk priority High
Daftar Input Type/Category (field: type) :
- complaint => untuk type/category Complaint
- support => untuk type/category Support
- problem => untuk type/category Problem
ASource ticket (field: media) :
- other => ticket yang dibuat manual
- email => ticket yang dibuat dari fetch email
- chat => ticket yang dibuat dari chat panel
Detail field :
- description => untuk mengisi deskripsi ticket
- priority => untuk mengisi priority ticket
- subject => untuk mengisi subject ticket
- status => untuk mengisi status ticket
- type => untuk mengisi type/category ticket
- tags => untuk mengisi tags ticket
- user_id => id dari customer
- debtor_name => nama dari customer
- group_management => id dari group
- files => isi dari files ticket attachment (bisa dikosongkan)
- additional_info => berisi status ticket k2 dan no ticket k2
- from_id => id dari pembuat ticket
- selectOrGroupAgent => kosongkan saja
- by_me => pembuat ticket, format = "name - email"
- user_info => isi dari info customer
- agent_info => berisi isi dari agent info yang di assign jika multiple assign kosongkan saja field nya
- agents => berisi id dari agent yang di assign jika multiple assign berisi data-data dari agent yang di assign
- media => asource ticket
1. Create Ticket Manual
a. Create ticket assign to specific agent With Group
{
"description": "tes",
"priority": "low",
"subject": "test",
"status": "open",
"type": "problem",
"tags": [
"test"
],
"user_id": 1653570,
"debtor_name": 1653570,
"group_management": 86,
"files": [],
"additional_info":{
"status_k2":"23223432423432",
"no_ticket_k2":"1211111"
},
"from_id": 49,
"selectOrGroupAgent": "",
"by_me": "lenna2 - prod@lenna.ai",
"user_info": {
"name": "dhacha 2",
"email": "dhacha2@lenna.ai",
"phone": "08524566567",
"avatar": "https://v3.lenna.ai/app/public/images/pictures/no_avatar.jpg",
"channel": "",
"business_unit": null,
"job_title": null,
"job_office": "",
"customer_tags": null,
"credit_app_number": null,
"address": null
},
"agent_info": {
"name": "Agent@lenna.ai",
"email": "agent@lenna.ai",
"phone": "0",
"avatar": null,
"address": null,
"business_unit": null,
"skills": null,
"job_office": null,
"job_title": null,
"minor_office": null,
"major_office": null
},
"agents": 60,
"media": "other"
}
b. Create Ticket Assign To Spesific Agent With Non Group
{
"description": "tes",
"priority": "low",
"subject": "asa",
"status": "open",
"type": "problem",
"tags": [
"test"
],
"user_id": 1650447,
"debtor_name": 1650447,
"group_management": "select_agent",
"files": [],
"from_id": 49,
"selectOrGroupAgent": "",
"by_me": "lenna2 - prod@lenna.ai",
"user_info": {
"name": "Dhacha Andika",
"email": "dhachaandika7813573762048421@facebook.com",
"phone": null,
"avatar": "https://platform-lookaside.fbsbx.com/platform/profilepic/?psid=7813573762048421&width=1024&ext=1667375224&hash=AeSRkx5rsomfwDRsIMU",
"channel": "",
"business_unit": null,
"job_title": null,
"job_office": "",
"customer_tags": null,
"credit_app_number": null,
"address": null
},
"agent_info": {
"name": "Agent 1",
"email": "agent1@lenna.ai",
"phone": "0",
"avatar": null,
"address": null,
"business_unit": null,
"skills": null,
"job_office": null,
"job_title": null,
"minor_office": null,
"major_office": null
},
"agents": 298,
"media": "other"
}
c. Create Ticket Assign To All Group
{
"description": "test",
"priority": "low",
"subject": "subject 2",
"status": "open",
"type": "complaint",
"tags": [
{
"value": "Hey",
"label": "Hey"
}
],
"user_id": 1522802,
"debtor_name": 1522802,
"group_management": 87,
"group_track": "btn",
"files": [],
"from_id": 49,
"selectOrGroupAgent": "",
"by_me": "lenna2 - prod@lenna.ai",
"user_info": {
"name": "testestestes",
"email": "testestestestes@gmail.com",
"phone": "0812812781232",
"avatar": null,
"channel": "",
"business_unit": "tes",
"job_title": null,
"job_office": "",
"customer_tags": [
{
"value": "Geyey",
"label": "Geyey"
},
{
"value": "Hey",
"label": "Hey"
}
],
"credit_app_number": "0",
"address": null
},
"agents": [
{
"value": 529,
"label": "husnul - husnul@lenna.ai",
"data": {
"id": 529,
"name": "husnul",
"email": "husnul@lenna.ai",
"email_verified_at": "2022-01-04 16:23:38",
"created_at": "2022-01-04 16:22:58",
"company_name": null,
"auditor": false,
"coworker_id": 0,
"last_name": null,
"username": null,
"avatar": null,
"fcm_token": null,
"mfa": false,
"mfa_code": null,
"mfa_expires_at": null,
"picture": null,
"phone": "0",
"status_login": false,
"skills": null,
"branch_office": null,
"address": null,
"job_office": null,
"job_title": null,
"major_office": null,
"minor_office": null,
"promo_code": null,
"hashed_id": "5eVlOb"
}
},
{
"value": 38,
"label": "ival - ival@lenna.ai",
"data": {
"id": 38,
"name": "ival",
"email": "ival@lenna.ai",
"email_verified_at": "2019-12-29 18:07:26",
"created_at": "2019-12-29 18:06:45",
"company_name": "Lenna",
"auditor": true,
"coworker_id": 0,
"last_name": null,
"username": "12345",
"avatar": null,
"fcm_token": null,
"mfa": false,
"mfa_code": null,
"mfa_expires_at": null,
"picture": null,
"phone": "0",
"status_login": false,
"skills": null,
"branch_office": null,
"address": null,
"job_office": null,
"job_title": null,
"major_office": null,
"minor_office": null,
"promo_code": null,
"hashed_id": "7e5Ba2"
}
},
{
"value": 144,
"label": "Lenna - agent2@lenna.ai",
"data": {
"id": 144,
"name": "Lenna",
"email": "agent2@lenna.ai",
"email_verified_at": "2020-09-02 14:46:05",
"created_at": "2020-09-02 14:45:04",
"company_name": "Lenna",
"auditor": false,
"coworker_id": 0,
"last_name": "Agent 2",
"username": "agent2",
"avatar": null,
"fcm_token": null,
"mfa": false,
"mfa_code": null,
"mfa_expires_at": null,
"picture": null,
"phone": "0",
"status_login": true,
"skills": null,
"branch_office": null,
"address": null,
"job_office": null,
"job_title": null,
"major_office": null,
"minor_office": null,
"promo_code": null,
"hashed_id": "negL6a"
}
},
{
"value": 535,
"label": "Arifin - arifin@lenna.ai",
"data": {
"id": 535,
"name": "Arifin",
"email": "arifin@lenna.ai",
"email_verified_at": "2022-02-07 11:50:38",
"created_at": "2022-02-07 11:46:59",
"company_name": null,
"auditor": false,
"coworker_id": 0,
"last_name": null,
"username": null,
"avatar": null,
"fcm_token": null,
"mfa": false,
"mfa_code": null,
"mfa_expires_at": null,
"picture": null,
"phone": "0",
"status_login": false,
"skills": null,
"branch_office": null,
"address": null,
"job_office": null,
"job_title": null,
"major_office": null,
"minor_office": null,
"promo_code": null,
"hashed_id": "rb2OWd"
}
}
],
"media": "other"
}