Info

Created 25-01-2021 by Lavinia Gheghea

Revision



Description

The API allows you to create job.

Endpoints


POST: /createjob


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
Request Body
{
"sJobCode": "string",
  "sJobDescription": "string",
  "sJobDescription2": "string",
  "sPlannedStartDate": "string",
  "sPlannedCompletionDate": "string",
  "sStatus": "string",
  "sJobTemplate": "string",
  "sJobGroupCode": "string",
  "nPlannedNumber": 0,
  "nNumberPerContainer": 0,
  "sOrderCode": "string",
  "sCustomerCode": "string",
  "sCustomerName": "string",
  "sCustomerAddress": "string",
  "sCustomerZipCode": "string",
  "sCustomerCity": "string",
  "sCustomerPhone": "string",
  "sPlannedDeliveryDate": "string",
  "sActualDeliveryDate": "string",
  "sDepartmentCode": "string",
  "sProductCode": "string",
  "sReference": "string",
  "sRemark": "string",
  "sMaterialsRecieved": "string",
  "sReadyToShip": "string",
  "sExpectedMaterialDeliveryDate": "string",
  "sInvoiced": "string",
  "sManagerCode": "string",
  "sOldJobCode": "string",
  "sDistrictCode": "string",
  "sDimensionCode1": "string",
  "sDimensionCode2": "string",
  "sDimensionCode3": "string",
  "sDimensionCode4": "string",
  "sDimensionCode5": "string",
  "sDimensionCode6": "string",
  "sDimensionCode7": "string",
  "sDimensionCode8": "string",
  "sDimensionCode9": "string",
  "sDimensionCode10": "string",
  "dtPlannedStartDate": "string",
  "dtPlannedCompletionDate": "string",
  "dtPlannedDeliveryDate": "string",
  "dtActualDeliveryDate": "string",
  "dtExpectedMaterialDeliveryDate": "string"
}
  
Curl example
curl -X POST "https://smartapi.smarttid.dk/createjob" -H "accept: */*" -H "UID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H "DEVICEID:demo@smarttid.dk" -H "API-Key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: application/json-patch+json" -d "{ \"sJobCode\": \"string\", \"sJobDescription\": \"string\", \"sJobDescription2\": \"string\", \"sPlannedStartDate\": \"string\", \"sPlannedCompletionDate\": \"string\", \"sStatus\": \"string\", \"sJobTemplate\": \"string\", \"sJobGroupCode\": \"string\", \"nPlannedNumber\": 0, \"nNumberPerContainer\": 0, \"sOrderCode\": \"string\", \"sCustomerCode\": \"string\", \"sCustomerName\": \"string\", \"sCustomerAddress\": \"string\", \"sCustomerZipCode\": \"string\", \"sCustomerCity\": \"string\", \"sCustomerPhone\": \"string\", \"sPlannedDeliveryDate\": \"string\", \"sActualDeliveryDate\": \"string\", \"sDepartmentCode\": \"string\", \"sProductCode\": \"string\", \"sReference\": \"string\", \"sRemark\": \"string\", \"sMaterialsRecieved\": \"string\", \"sReadyToShip\": \"string\", \"sExpectedMaterialDeliveryDate\": \"string\", \"sInvoiced\": \"string\", \"sManagerCode\": \"string\", \"sOldJobCode\": \"string\", \"sDistrictCode\": \"string\", \"sDimensionCode1\": \"string\", \"sDimensionCode2\": \"string\", \"sDimensionCode3\": \"string\", \"sDimensionCode4\": \"string\", \"sDimensionCode5\": \"string\", \"sDimensionCode6\": \"string\", \"sDimensionCode7\": \"string\", \"sDimensionCode8\": \"string\", \"sDimensionCode9\": \"string\", \"sDimensionCode10\": \"string\", \"dtPlannedStartDate\": \"string\", \"dtPlannedCompletionDate\": \"string\", \"dtPlannedDeliveryDate\": \"string\", \"dtActualDeliveryDate\": \"string\", \"dtExpectedMaterialDeliveryDate\": \"string\"}"

Response

200 (OK) : Success

400 (ERROR) : Error message

Response Headers
content-encoding: gzip 
 content-length: 138 
 content-type: application/json; charset=utf-8 
 date: Mon, 24 Aug 2020 09:24:44 GMT 
 server: Microsoft-IIS/10.0 
 vary: Accept-Encoding  x-powered-by: ASP.NET


SQL Procedure 

sp_IntegrationCreateJob

Object


 Name
 Description
 Type
sJobCode
Job Code
String
sJobDescription
Job Description
String
sJobDescription2
Job Description 2
String
sPlannedStartDate
Planned Start Date
String
 sPlannedCompletionDate
 Planned Completion Date
 String
 sStatus
 Status
 String
 sJobTemplate
 Job Template
 String
 sJobGroupCode
 Job Group Code
 String
 nPlannedNumber
 Planned Number
 number(integer)
 nNumberPerContainer
Number Per Container
 number(integer)
 sOrderCode
 Order Code
 String
 sCustomerCode
 Customer Code
 String
 sCustomerName
 Customer Name
 String
 sCustomerAddress
 Customer Address
 String
 sCustomerZipCode
 Customer Zip Code
 String
 sCustomerCity
 Customer City
 String
 sCustomerPhone
 Customer Phone
 String
 sPlannedDeliveryDate
 Planned Delivery Date
 String
 sActualDeliveryDate
 Actual Delivery Date
 String
 sDepartmentCode
 Department Code
 String
 sProductCode
 Product Code
 String
 sReference
 Reference
 String
 sRemark
 Remark
String
 sMaterialsRecieved
 Materials Recieved
String
 sReadyToShip
 Ready To Ship
String
 sExpectedMaterialDeliveryDate
Expected Material Delivery Date
String
 sInvoiced
 Invoiced
String 
 sManagerCode
Manager Code 
String 
 sOldJobCode
 Old Job Code
String 
 sDistrictCode
District Code 
 String
 sDimensionCode1
Dimension Code 1 
String 
 sDimensionCode2
Dimension Code 2 
String 
 sDimensionCode3
Dimension Code 3 
String 
 sDimensionCode4
Dimension Code 4 
String 
 sDimensionCode5
Dimension Code 5 
String 
 sDimensionCode6
Dimension Code 6 
String
sDimensionCode7 
Dimension Code 7 
String 
sDimensionCode8 
Dimension Code 8 
String 
sDimensionCode9 
Dimension Code 9 
String 
sDimensionCode10 
Dimension Code 10 
String 
 dtPlannedStartDate
Planned Start Date
 String
 dtPlannedCompletionDate
Planned Completion Date
String 
 dtPlannedDeliveryDate
 Planned Delivery Date
String 
 dtActualDeliveryDate
 Actual Delivery Date
String 
 dtExpectedMaterialDeliveryDate
 Expected Material Delivery Date
 String