Info

Created 18-11-2020 by Lavinia Gheghea

Revision



Description

The API allows you to  retrieve a list of all job template

Endpoints


GET:  /jobtemplate


Parameters
Headers and Query
 Name
 Description
 Type
 API-key - required
 Authorization Token
 String(64)
 UID - required
 UID -how can be obtained
 String
 DEVICEID - required
DEVICEID
 String
 offset
 starting record
 Integer
 limit
 how many records displayed on a page
 Integer
 OrderFieldName
 field name to order the recordset
 String
 OrderDirection
 ASC or DESC
 String
 Filter
 filter the recordset
 String
 sStatus
 Status of the job
 String

Curl example

curl -X GET "https://smartapi.smarttid.dk/jobtemplate?sStatus=xxxx" -H "accept: */*" -H "UID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H "DEVICEID:demo@smarttid.dk" -H "API-Key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Response

200 (OK) :  array of jobtemplate

Response body

{ "ID": 1127, "JobCode": "1TESTCBZQ", "JobDescription": "1testcbzq", "JobDescription2": "", "PlannedStartDate": null, "PlannedCompletionDate": null, "Status": "Template", "StartedDate": null, "CompletedDate": null, "StartedBy": null, "CompletedBy": null, "CreatedBy": "", "JobTemplate": "", "JobGroupCode": "TESTJOBGRUPPE", "PlannedNumber": null, "NumberPerContainer": null, "OrderCode": null, "Date": null, "PlannedDeliveryDate": null, "ActualDeliveryDate": null, "DepartmentCode": "TESTAFDELING", "ProductCode": "", "PrintID": null, "CustomerCode": null, "Reference": "", "Color": null, "ColorGroupCode": null, "Remark": "", "MaterialsRecieved": false, "ReadyToShip": false, "ExpectedMaterialDeliveryDate": null, "Invoiced": false, "IndirectTime": false, "DeliveryAddressCode": null, "Printed": false, "Drawing": null, "Quality": null, "ManagerCode": null, "DistrictCode": null }, { "ID": 1131, "JobCode": "2TESTCBZQ", "JobDescription": "2testcbzq", "JobDescription2": "", "PlannedStartDate": null, "PlannedCompletionDate": null, "Status": "Template", "StartedDate": "2020-09-03T00:00:00", "CompletedDate": null, "StartedBy": "smarttid", "CompletedBy": null, "CreatedBy": "", "JobTemplate": "", "JobGroupCode": "TESTJOBGRUPPE", "PlannedNumber": null, "NumberPerContainer": null, "OrderCode": null, "Date": null, "PlannedDeliveryDate": null, "ActualDeliveryDate": null, "DepartmentCode": "TESTAFDELING", "ProductCode": "", "PrintID": null, "CustomerCode": null, "Reference": "", "Color": null, "ColorGroupCode": null, "Remark": "", "MaterialsRecieved": false, "ReadyToShip": false, "ExpectedMaterialDeliveryDate": null, "Invoiced": false, "IndirectTime": false, "DeliveryAddressCode": null, "Printed": false, "Drawing": null, "Quality": null, "ManagerCode": null, "DistrictCode": null }, ]




Response headers:
content-encoding: gzip 
 content-length: 238 
 content-type: application/json; charset=utf-8 
 date: Mon, 24 Aug 2020 08:01:23 GMT 
 server: Microsoft-IIS/10.0 
 vary: Accept-Encoding 
 x-pagination: {"totalCount":x,"totalFiltered":x,"Offset":0,"Limit":x,"Returned":x} 
 x-powered-by: ASP.NET 

400 (ERROR) : Error message

Response Body
Error message