Create a JB Contract Detail
    • 27 Feb 2025
    • 6 Minutes to read
    • Dark
      Light

    Create a JB Contract Detail

    • Dark
      Light

    Article summary

    Post
    /jb-rest-api/rest/1/jbcontdet

    Overview

    The jbcontdet API endpoint (POST) is used to create billing details for a Job Billing contract. It allows adding new billing codes, defining billing amounts, units, retainage percentages, tax applicability, and invoice grouping. This endpoint ensures accurate job billing setup.

    UI Navigation

    Job Billing > Contracts > Enter Contract – Billing Items – Billing Codes tab

    Reference Article

    https://docs.cmicglobal.com/portal/Content/E_Reference_Material/JB_-_Job_Billing/Reference/Creating_a_Billing_Contract/Billing_Codes___Tab.htm

    Commonly Used Body Parameters

    CMiC UI FieldnameObjectNameDescriptionTypeData LengthExampleRequired
    FilterjbcontdetJbcdAmtBurdenFilterEnter Burden Filter: Regular, Premium Labor, Regular Insured Laborstring10RegularYes
    CatjbcontdetJbcdBillCatCodeEnter Valid Category Codestring16CYes
    Billing CodejbcontdetJbcdBillCodeEnter valid Billing Codestring50100.BI100Yes
    JobjbcontdetJbcdBillJobCodeEnter valid job codestring10LGJOBYes
    Cost CodejbcontdetJbcdBillPhsCodeEnter the cost phase associatedstring16PH101Yes
    TypejbcontdetJbcdBillingTypeCodeBilling Type Codestring4LSUMYes
    CompanyjbcontdetJbcdCompCodeEnter valid company codestring8ZZYes
    ContractjbcontdetJbcdContCodeEnter contract code associatedstring10CON123Yes
    Curr $jbcontdetJbcdCurrCodeCurrency Codestring3CADYes
    DescriptionjbcontdetJbcdDescBilling Code Descriptionstring60TestYes
    Inv FmtjbcontdetJbcdInvoiceFormatCodeSpecifies the format in which invoices are generatedstring4FORMAT1Yes
    MultiSubContractjbcontdetJbcdMultiSubcontFlagIndicates whether multiple subcontracts are usedstring1YYes
    MultiSubcontract VendorjbcontdetJbcdMultiSubcontVenFlagIndicates whether multiple subcontract vendors are assignedstring1NYes
    Sc RFPjbcontdetJbcdScRfpCostFlagDetermines if the bill code allows SC payment requests (Y = Yes, N = No)string1NYes
    Shared SavingsjbcontdetJbcdSharedSavingFlagY: Shared savings bill code, N: LumpSumstring1YYes
    Lst Rel %jbcontdetJbcdUseScrfpHldbkRelFlagY: Calculate retainage release amount as the same percentage as used in the latest SC request for paymentstring1NYes
    WmjbcontdetJbcdWmCodeEnter Weight/measure code for billing itemstring2HRYes

    Other (Optional) Body Parameters

    CMiC UI FieldnameObjectNameDescriptionTypeData LengthExampleRequired
    ActivejbcontdetJbcdActiveFlagIs Active or Notstring1YNo
    Bill ExistsjbcontdetJbcdBillExistsFlag indicating if a bill code exists (Y/ N)string1YNo
    Billing RatejbcontdetJbcdBillingRateA unit Rate for the billing itemnumber1810No
    BillingjbcontdetJbcdBillingTypeNameBilling Type Name associatedstring60LUMPSUMNo
    Bill td AmountjbcontdetJbcdBilltdAmtTotal Amount billed to datenumber1825000No
    Budg. Billing AmountjbcontdetJbcdBudgBillingAmtContract Amount for billing amountnumber1810000No
    Budg. QtyjbcontdetJbcdBudgBillingQtyNumber of unitsnumber1680No
    Budget EnabledjbcontdetJbcdBudgetEnableFlagIndicates if Budget tracking is enabled (Y/ N)string4000NNo
    Burden Stored MaterialjbcontdetJbcdBurStoredMaterialFlagFlag indicating whether burden is applied to stored materials (Y / N)string1NNo
    Burden LeveljbcontdetJbcdBurdenLevelBurden Levelinteger182No
    Construction ValuejbcontdetJbcdConstructionValueConstruction value for this bill code. Leave empty to use job construction valuenumber185000No
    % of ConstrjbcontdetJbcdConstructionValuePctPercentage of construction value for this bill code. Leave black to use job percentage of construction valuenumber1810No
    Group 1jbcontdetJbcdGroupCode1Invoice Grouping: Used To Summarize Billing Lines On Invoicestring50GRP1No
    Group 2jbcontdetJbcdGroupCode2Invoice Grouping: Used To Summarize Billing Lines On Invoicestring50GRP2No
    Group 3jbcontdetJbcdGroupCode3Invoice Grouping: Used To Summarize Billing Lines On Invoicestring50GRP3No
    Group 4jbcontdetJbcdGroupCode4Invoice Grouping: Used To Summarize Billing Lines On Invoicestring50GRP4No
    Group 5jbcontdetJbcdGroupCode5Invoice Grouping: Used To Summarize Billing Lines On Invoicestring50GRP5No
    Performance ObligationsjbcontdetJbcdGroupCode6Identifies the Bill Code as belonging to the 6th JB Group.string50PERF1No
    Group Name 1jbcontdetJbcdGroupName1Group Name 1string80TESTNo
    Group Name 2jbcontdetJbcdGroupName2Group Name 2string80TESTNo
    Group Name 3jbcontdetJbcdGroupName3Group Name 3string80TESTNo
    Group Name 4jbcontdetJbcdGroupName4Group Name 4string80TESTNo
    Group Name 5jbcontdetJbcdGroupName5Group Name 5string80TESTNo
    Sc RetjbcontdetJbcdHldbkMethodDefines the retainage method: S (Subcontract) or P (Percentage)string1PNo
    Holdback PctjbcontdetJbcdHldbkPctPercentage of the invoice amount held as retainagenumber610No
    Inv LeveljbcontdetJbcdInvLevelCodeDefines the invoice levelstring35LEVEL1No
    Create DatejbcontdetJbcdIuCreateDateThe date the record was createddatetime2023-10-19T13:20:58-04:00No
    Update DatejbcontdetJbcdIuUpdateDateLast modification date of the recorddatetime2023-10-20T13:20:58-04:00No
    Labour ForecastjbcontdetJbcdLabourForecastFlagIndicates if labor forecasting is enabledstring1YNo
    Max Billing AmtjbcontdetJbcdMaxBillingAmtThe maximum allowable billing amountnumber18500.00No
    Max QtyjbcontdetJbcdMaxBillingQtyMaximum Billing Quantitynumber16100No
    Ret. CodejbcontdetJbcdRetCodeRetainage codestring10RET10No
    Row IDjbcontdetJbcdRowidUnique row identifierstring181234No
    Self-PerfjbcontdetJbcdSelfPerformedInvFlagIndicates whether the billing code applies to self-performed work (Y) or subcontract work (N)string1YNo
    Billing Ref CodejbcontdetJbcdSeparateBillingRefCodeSeparate Billing Reference Codestring60NNo
    Shared SavingsjbcontdetJbcdSharedSavingPctY: shared savings bill code, N: lump sum bill codenumber7NNo
    SubcontractjbcontdetJbcdSubcontCodeSubcontract Codestring20SC-2023No
    System GenjbcontdetJbcdSysGeneratedFlagSystem Generatedstring1YNo
    Tax 1 AmountjbcontdetJbcdTax1AmtAmount of tax appliednumber500No
    Tax 1jbcontdetJbcdTax1CodeLevel 1 Tax Code Applicable To This Linestring11TX01No
    TaxablejbcontdetJbcdTax1TaxableFlagIndicates whether tax is applicable (Y) or not (N)string1YNo
    Tax 1 %jbcontdetJbcdTax1TaxablePctPortion Of Billed Amount That Is Taxable Using Tax Code 1 (Leave Blank For 100%)number188.25No
    Tax 2 AmountjbcontdetJbcdTax2AmtAmount of tax appliednumber500No
    Tax 2jbcontdetJbcdTax2CodeLevel 2 Tax Code Applicable To This Linestring11TX02No
    TaxablejbcontdetJbcdTax2TaxableFlagChecked: Taxable Unchecked: Non Taxable. Tax Amount Will Be Calculated As Zero.string1YNo
    Tax 2 %jbcontdetJbcdTax2TaxablePctPortion Of Billed Amount That Is Taxable Using Tax Code 2 (Leave Blank For 100%)number186.75No
    Tax 3 AmountjbcontdetJbcdTax3AmtAmount of tax appliednumber500No
    Tax 3jbcontdetJbcdTax3CodeLevel 1 Tax Code Applicable To This Linestring11TX03No
    TaxablejbcontdetJbcdTax3TaxableFlagChecked: Taxable Unchecked: Non Taxable. Tax Amount Will Be Calculated As Zero.string1YNo
    Tax 3 %jbcontdetJbcdTax3TaxablePctPortion Of Billed Amount That Is Taxable Using Tax Code 3 (Leave Blank For 100%)number188.75No
    Total Budget Billing AmountjbcontdetJbcdTotalBudgAmtTotal Budget Billing Amountnumber1000No
    VUuidjbcontdetJbcdVUuidUnique Identifierstring64Changes to DateNo
    VendorjbcontdetJbcdVenCodeEnter Vendor Who Did The Work. Leave Blank For Internal Work.string8VEN01No
    Vendor NamejbcontdetJbcdVenNameEnter Vendor Namestring50TestNo
    Security
    HTTP
    Type basic

    Basic authentication

    Header parameters
    Content-Type
    string
    Exampleapplication/vnd.oracle.adf.resourceitem+json
    Body parameters
    object
    Example{ "JbcdAmtBurdenFilter": "*", "JbcdBillCode": "LGJOB.01-101.1001", "JbcdBillCatCode": "1000", "JbcdBillJobCode": "LGJOB", "JbcdBillPhsCode": "0101-01-01T00:00:00Z", "JbcdBillingTypeCode": "COST", "JbcdCompCode": "ZZ", "JbcdContCode": "LGJOB", "JbcdCurrCode": "USD", "JbcdDesc": "JBCONTDET TEST 1", "JbcdInvoiceFormatCode": "ZZ-S", "JbcdWmCode": "HR", "JbcdRetCode": "ZZ-STD", "JbcdScRfpCostFlag": "N", "JbcdSharedSavingFlag": "N", "JbcdUseScrfpHldbkRelFlag": "N", "JbcdMultiSubcontFlag": "N", "JbcdMultiSubcontVenFlag": "N", "JbcdVUuid": "" }
    Responses
    201

    Created

    Headers
    Content-Type
    string
    Exampleapplication/vnd.oracle.adf.resourceitem+json
    {
      "JbcdActiveFlag": null,
      "JbcdAmtBurdenFilter": "*",
      "JbcdBillCatCode": "1000",
      "JbcdBillCode": "LGJOB.01-101.1001",
      "JbcdBillExists": null,
      "JbcdBillJobCode": "LGJOB",
      "JbcdBillPhsCode": "0101-01-01T00:00:00Z",
      "JbcdBillingRate": null,
      "JbcdBillingTypeCode": "COST",
      "JbcdBillingTypeName": null,
      "JbcdBilltdAmt": null,
      "JbcdBudgBillingAmt": null,
      "JbcdBudgBillingQty": null,
      "JbcdBudgetEnableFlag": null,
      "JbcdBurStoredMaterialFlag": null,
      "JbcdBurdenLevel": null,
      "JbcdCompCode": "ZZ",
      "JbcdConstructionValue": null,
      "JbcdConstructionValuePct": null,
      "JbcdContCode": "LGJOB",
      "JbcdCurrCode": "USD",
      "JbcdDesc": "JBCONTDET TEST 1",
      "JbcdGroupCode1": null,
      "JbcdGroupCode2": null,
      "JbcdGroupCode3": null,
      "JbcdGroupCode4": null,
      "JbcdGroupCode5": null,
      "JbcdGroupCode6": null,
      "JbcdGroupName1": null,
      "JbcdGroupName2": null,
      "JbcdGroupName3": null,
      "JbcdGroupName4": null,
      "JbcdGroupName5": null,
      "JbcdHldbkMethod": null,
      "JbcdHldbkPct": null,
      "JbcdInvLevelCode": null,
      "JbcdInvoiceFormatCode": "ZZ-S",
      "JbcdIuCreateDate": null,
      "JbcdIuUpdateDate": null,
      "JbcdLabourForecastFlag": null,
      "JbcdMaxBillingAmt": null,
      "JbcdMaxBillingQty": null,
      "JbcdMultiSubcontFlag": "N",
      "JbcdMultiSubcontVenFlag": "N",
      "JbcdRetCode": "ZZ-STD",
      "JbcdRowid": null,
      "JbcdScRfpCostFlag": "N",
      "JbcdSelfPerformedInvFlag": null,
      "JbcdSeparateBillingRefCode": null,
      "JbcdSharedSavingFlag": "N",
      "JbcdSharedSavingPct": null,
      "JbcdSubcontCode": null,
      "JbcdSysGeneratedFlag": null,
      "JbcdTax1Amt": null,
      "JbcdTax1Code": null,
      "JbcdTax1TaxableFlag": null,
      "JbcdTax1TaxablePct": null,
      "JbcdTax2Amt": null,
      "JbcdTax2Code": null,
      "JbcdTax2TaxableFlag": null,
      "JbcdTax2TaxablePct": null,
      "JbcdTax3Amt": null,
      "JbcdTax3Code": null,
      "JbcdTax3TaxableFlag": null,
      "JbcdTax3TaxablePct": null,
      "JbcdTotalBudgAmt": null,
      "JbcdUseScrfpHldbkRelFlag": "N",
      "JbcdVUuid": "2D9110EE26E10235E06327261DAC886A",
      "JbcdVenCode": null,
      "JbcdVenName": null,
      "JbcdWmCode": "HR",
      "links": [
        {
          "rel": "self",
          "href": "https://qamob.cmicpaas.com:443/cmicqadaily/jb-rest-api/rest/1/jbcontdet/2D9110EE26E10235E06327261DAC886A",
          "name": "jbcontdet",
          "kind": "item"
        },
        {
          "rel": "canonical",
          "href": "https://qamob.cmicpaas.com:443/cmicqadaily/jb-rest-api/rest/1/jbcontdet/2D9110EE26E10235E06327261DAC886A",
          "name": "jbcontdet",
          "kind": "item"
        }
      ]
    }
    object