....
API kall man kan poste inn som raw body i Postman eller i nettleser:
POST /createTicket
{
"categoryId": 10, - Sakens kategori blir satt via id. Disse finnes i CRM7.EJ_CATEGORY I SuperOffice databasen.
"title": "Ny bestilling", - Tittel på sak.
"message": "Dette er en bestilling.", - Sakens melding.
"image": "R0lGODlhPQBEAPeoAJosM..." - Vedlegget som Base64 String.
}
{}
Henter alle sakskategorier som finnes i SuperOffice-databasen. (CRM7.EJ_CATEGORY)
GET /getTicketCategories
{
"id": 1,
"name": "Support"
},
{
"id": 2,
"name": "Administration"
},
{
"id": 3,
"name": "Sale"
}
Henter ut alle felter fra tabellen y_mobile
GET /getEquipment
{
"id": 10,
"type": "Klientutstyr",
"name": "Some text",
"expired": "Some text",
"extraEquipment": "Some text"
}
POST /createOrder
{}
POST /createEquipmentOrder
{
"type": "Klientutstyr",
"name": "Some text",
"expired": "Some text",
"extraEquipment": "Some text"
}
GET /getPrograms
{
"name": "Budsjett",
"groupname": "Visma Enterprise - Økonomi"
}
GET /getActiveTickets
{
"csMethod": "getActiveTickets",
"username": "username"
}
{
"id": 10,
"title": "Ny bestilling",
"ownedBy": "Ola Nordmann",
"status": "Open",
"createdAt": "2016-10-18 09:54:13",
"author": "ON",
"lastChanged": "2016-10-25 11:04:34"
},
{
"id": 10,
"title": "Ny pc",
"ownedBy": "Ola Nordmann",
"status": "Open",
"createdAt": "2016-10-18 09:54:13",
"author": "ON",
"lastChanged": "2016-10-25 11:04:34"
}