Retrieve Master Phases/Cost Codes By Code
  • 06 Jan 2025
  • 1 Minute to read
  • Dark
    Light

Retrieve Master Phases/Cost Codes By Code

  • Dark
    Light

Article summary

Get
/jc-rest-api/rest/1/jcmastercostcodes

Query Standards

Finder

Following row finders are available for data filtering and optimizing request performance.

  • Select Cost Codes
  • By UUID

Select Cost Codes

Recommended finder parameters. Refer to Query Parameters for example.

ParameterDescriptionSample
compCodeCompany CodeZZ
costCodeCost Code02-200
auditDateCreate or Update Date Time Filter2022-08-17T13:07:43-04:00

By UUID

This is an optional finder for querying a specific Master Phases/Cost Code by row ID.

ParameterDescriptionSample
/VUUIDThe VUuid attribute is the Unique row ID/jc-rest-api/rest/1/jcmastercostcodes/E38A888E060E3CFCE05316821FACD19A
Security
HTTP
Type basic

Basic authentication

Query parameters
finder
string
ExampleselectCostCodes;compCode=ZZ,costCode=02-200,auditDate=2022-08-17T13:07:43-04:00
limit
integer
Example500
offset
integer
Example0
totalResults
boolean
ExampleTrue
orderBy
string
ExamplePhsVUuid:desc
Responses
200

OK

Headers
Content-Type
string
Exampleapplication/vnd.oracle.adf.resourcecollection+json
{
  "items": [
    {
      "PhsActiveFlag": "Y",
      "PhsAddedOnTheFlyFlg": "N",
      "PhsAltCode": "0200-02-01T00:00:00Z",
      "PhsCode": "0200-02-01T00:00:00Z",
      "PhsCompCode": "ZZ",
      "PhsCompName": "CMiC Test Company Inc.",
      "PhsCtrlCode": "02",
      "PhsCtrlName": "Preliminary & General",
      "PhsDefaultWcbCode": null,
      "PhsFirstSegmValue": null,
      "PhsHasLowerLevelPhases": "N",
      "PhsHier": "ZZ      02              02-200          ",
      "PhsIuCreateDate": null,
      "PhsIuUpdateDate": "2022-08-17T17:07:43Z",
      "PhsMasterFlag": "N",
      "PhsName": "Back Fill",
      "PhsProgramName": null,
      "PhsRowid": "AAAh8FAAGAAAEIDAAF",
      "PhsSpecialityFlag": "N",
      "PhsTypeCode": null,
      "PhsWbsvCode1": null,
      "PhsWbsvCode2": null,
      "PhsWbsvCode3": null,
      "PhsWbsvCode4": null,
      "PhsWbsvEditableFlag1": "N",
      "PhsWbsvEditableFlag2": "N",
      "PhsWbsvEditableFlag3": "Y",
      "PhsWbsvEditableFlag4": "N",
      "PhsWbsvRequiredFlag1": "N",
      "PhsWbsvRequiredFlag2": "N",
      "PhsWbsvRequiredFlag3": "N",
      "PhsWbsvRequiredFlag4": "N",
      "PhsWmCode": "NA",
      "PhsWmName": "Not Applic",
      "PhsVUuid": "E8D4050227F444CAE05313061FACA379",
      "links": [
        {
          "rel": "self",
          "href": "http://solutionsr12mob.cmicpaas.com:80/cmicprod/jc-rest-api/rest/1/jcmastercostcodes/E8D4050227F444CAE05313061FACA379",
          "name": "jcmastercostcodes",
          "kind": "item"
        },
        {
          "rel": "canonical",
          "href": "http://solutionsr12mob.cmicpaas.com:80/cmicprod/jc-rest-api/rest/1/jcmastercostcodes/E8D4050227F444CAE05313061FACA379",
          "name": "jcmastercostcodes",
          "kind": "item"
        }
      ]
    }
  ],
  "count": 1,
  "hasMore": false,
  "limit": 1,
  "offset": 0,
  "links": [
    {
      "rel": "self",
      "href": "http://solutionsr12mob.cmicpaas.com:80/cmicprod/jc-rest-api/rest/1/jcmastercostcodes",
      "name": "jcmastercostcodes",
      "kind": "collection"
    }
  ]
}
object