REST call to start production labor

Does anyone have a REST JSON payload that they might share to start production activity on a job? I can’t get the example one from the Swagger document to work.

I have a stripped down one that I’m trying with POSTMAN.

Hitting this endpoint: …v1/Erp.BO.LaborSvc/LaborDtls

With a payload like this:

{
  "Company": "SD",
  "EmployeeNum": "4444",
  "LaborHedSeq": 93554,
  "LaborDtlSeq": 0,
  "LaborType": "P",
  "LaborTypePseudo": "P",
  "LaborCollection": true,
  "JobNum": "581026",
  "AssemblySeq": 0,
  "OprSeq": 20,
  "ResourceGrpID": "CNCTH",
  "OpCode": "CNCTH",  
  "JCDept": "306",
  "ActiveTrans": true,
  "ExpenseCode": "NONPROD",
  "ClockInDate": "2023-09-27",
  "RowMod": "A",
  "TimeStatus": "A"  
}

No matter what I try I cannot seem to get it working. Getting errors like The Request is Invalid.

I got it working in postman by setting the correct headers:

Hope that helps someone.

1 Like