Users and Companies

Users Details

Link: https://au.itwocx.com/api/24.08/api/help/index#!/User/User_GetByCode

This will get a users details from their user code. (e.g. MC-MC)

e.g. https://au.itwocx.com/api/latest/Api/PSDEMO/User/GetByCode?code=MC-MC

{
  "Id": 360817,
  "Code": "MC-MC",
  "PreferCode": "MC",
  "CompanyId": 155811,
  "DisplayName": "Managing Contractor - Max CAMERON",
  "FirstName": "Max",
  "LastName": "CAMERON",
  "EmailAddress": "mc-mc@mailinator.com",
  "Title": null,
  "Role": "Staff",
  "ProjectName": "PSDEMO",
  "EntityId": 918,
  "GlobalUserId": 168,
  "Timestamp": 637817298491172700,
  "IsRestricted": false,
  "Address": "1313 Mockingbird Lane\r\nPleasantville",
  "PostalAddress": null,
  "Phone": "9999 9911",
  "Fax": "9999 9922",
  "Mobile": "0123 000 111",
  "Web": null
}

Companies Details

Link: https://au.itwocx.com/api/24.08/api/help/index#!/Company/Company_GetByCode

This will get a companies details by their user code. (e.g. MC)

e.g. https://au.itwocx.com/api/latest/Api/PSDEMO/Company/GetByCode?code=MC

{
  "Id": 155811,
  "Code": "MC",
  "PreferCode": "MC",
  "Role": "HC",
  "Name": "Managing Contractor",
  "BusinessNo": "047037000343",
  "Title": null,
  "EmailAddress": null,
  "ProjectName": "PSDEMO",
  "EntityId": 901,
  "GlobalCompanyId": 9506,
  "Timestamp": 637628941690528600,
  "Address": "1313 Mockingbird Lane\r\nPleasantville",
  "PostalAddress": null,
  "Phone": "9999 9911",
  "Fax": "9999 9922",
  "Mobile": null,
  "Web": null
}