Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.
/ micro-cs Public archive

micro webservice that communicates with SuperOffice Customer Service API

License

Notifications You must be signed in to change notification settings

telemark/micro-cs

Repository files navigation

micro-cs

....

createTicket

API kall man kan poste inn som raw body i Postman eller i nettleser:

Request

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.
}

Response

{}

getTicketCategories

Henter alle sakskategorier som finnes i SuperOffice-databasen. (CRM7.EJ_CATEGORY)

Request

GET /getTicketCategories

Response

{
  "id": 1,
  "name": "Support"
},
{
  "id": 2,
  "name": "Administration"
},
{
  "id": 3,
  "name": "Sale"
}

getEquipment

Henter ut alle felter fra tabellen y_mobile

Request

GET /getEquipment

Response

 {
  "id": 10,
  "type": "Klientutstyr",
  "name": "Some text",
  "expired": "Some text",
  "extraEquipment": "Some text"
}

createOrder

Request

POST /createOrder

Response

{}

createEquipmentOrder

Request

POST /createEquipmentOrder

Response

{
  "type": "Klientutstyr",
  "name": "Some text",
  "expired": "Some text",
  "extraEquipment": "Some text"
}

getPrograms

Request

GET /getPrograms

Response

{
  "name": "Budsjett",
  "groupname": "Visma Enterprise - Økonomi"
}

getActiveTickets

Request

GET /getActiveTickets

{
  "csMethod": "getActiveTickets",
  "username": "username"
}

Response

{
  "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"
}

License

MIT

About

micro webservice that communicates with SuperOffice Customer Service API

Resources

License

Stars

Watchers

Forks

Packages

No packages published