Create a PY Employee Timesheet
    • 06 Jan 2025
    • 2 Minutes to read
    • Dark
      Light

    Create a PY Employee Timesheet

    • Dark
      Light

    Article summary

    Post
    /hcm-rest-api/rest/1/pyemptimesheet

    Create Employee Timesheets

    Security
    HTTP
    Type basic

    Basic authentication

    Header parameters
    Content-Type
    string
    Exampleapplication/vnd.oracle.adf.resourceItem+json
    Body parameters
    object
    Example{ "TshCompCode": "001", "TshEmpNo": "1003", "TshPrnCode": "SM", "TshPprYear": 2022.0, "TshPprPeriod": 1.0, "TshDate": "2022-01-01", "TshTypeCode": "J", "TshJobdeptwoId": "14001", "TshPhsacctwiId": "00020", "TshCatexpId": "L", "TshNormalHours": 8.0, "TshProcessFlag": "N", "TshVUuid": "" }
    TshEmpNo
    string Required

    Employee Number

    💻 UI Fieldname: TshEmpNo

    Max length16
    TshDocumentNo
    string

    Document Number - this is an optional field

    💻 UI Fieldname: TshDocumentNo

    Max length30
    TshDate
    string

    Date of entry

    💻 UI Fieldname: TshDate

    Max length7
    TshCompCode
    string Required

    Company Code

    💻 UI Fieldname: TshCompCode

    Max length8
    TshWorkCompCode
    string

    Work Company Code

    💻 UI Fieldname: TshWorkCompCode

    Max length60
    TshJobdeptwoId
    string

    Job number / Dept Number / Work Order number

    💻 UI Fieldname: TshJobdeptwoId

    Max length60
    TshPhsacctwiId
    string

    Phase Number / Account Number / Work Item Number

    💻 UI Fieldname: TshPhsacctwiId

    Max length60
    TshCatexpId
    string

    Category Code / Expense Code

    💻 UI Fieldname: TshCatexpId

    Max length60
    TshTypeCode
    string

    J - Job / G - / W - / E - Equipment + Equipment Code

    💻 UI Fieldname: TshTypeCode

    Max length3
    TshNormalHours
    number

    Normal Hours worked through the week

    💻 UI Fieldname: TshNormalHours

    Max length22
    TshOtHours
    number

    Over time hours completed

    💻 UI Fieldname: TshOtHours

    Max length22
    TshDotHours
    number

    Double over time hours completed

    💻 UI Fieldname: TshDotHours

    Max length22
    TshOtherHours
    number

    Number of Other hours worked

    💻 UI Fieldname: TshOtherHours

    Max length22
    TshOhType
    string

    Identify the Other Hours Type

    💻 UI Fieldname: TshOhType

    Max length4
    TshWcbCode
    string

    💻 UI Fieldname: TshWcbCode

    Max length4
    TshPrnCode
    string Required

    Identify the Pay Run Code

    💻 UI Fieldname: TshPrnCode

    Max length4
    TshPprYear
    number Required

    Identify the Year related to the Pay

    💻 UI Fieldname: TshPprYear

    Max length22
    TshPprPeriod
    number Required

    Indentify the Pay Period

    💻 UI Fieldname: TshPprPeriod

    Max length22
    TshSeqNo
    number Required

    Sequence Number

    💻 UI Fieldname: TshSeqNo

    Max length22
    TshVUuid
    string

    Unique uuid of row

    💻 UI Fieldname: TshVUuid

    Max length64
    TshTenantId
    string

    💻 UI Fieldname: TshTenantId

    Max length30
    TshUnionCode
    string

    Indicate the Union Code if different than default Union

    💻 UI Fieldname: TshUnionCode

    Max length4
    TshTradeCode
    string

    Identify the Trade Code if different from default Trade

    💻 UI Fieldname: TshTradeCode

    Max length30
    TshExpCode
    string

    💻 UI Fieldname: TshExpCode

    Max length4
    TshExpQuantity
    number

    💻 UI Fieldname: TshExpQuantity

    Max length22
    TshExpRate
    number

    💻 UI Fieldname: TshExpRate

    Max length22
    TshExpAmount
    number

    💻 UI Fieldname: TshExpAmount

    Max length22
    TshSectorCode
    string

    💻 UI Fieldname: TshSectorCode

    Max length10
    TshScheduleCode
    string

    💻 UI Fieldname: TshScheduleCode

    Max length10
    TshShiftCode
    string

    Shift code. Null or D/E/N for Day/Evening/Night shift.

    💻 UI Fieldname: TshShiftCode

    Max length1
    TshWbsSetupFlag
    string

    💻 UI Fieldname: TshWbsSetupFlag

    Max length4000
    TshActualWorkDate
    string

    This is the Actual Date that Employee Worked on

    💻 UI Fieldname: TshActualWorkDate

    Max length7
    TshProcessFlag
    string

    💻 UI Fieldname: TshProcessFlag

    Max length1
    Responses
    201

    Created

    Headers
    Content-Type
    string
    Exampleapplication/vnd.oracle.adf.resourceitem+json
    {
      "TshCatexpId": "L",
      "TshCompCode": "001",
      "TshDate": "2022-01-01",
      "TshDocumentNo": null,
      "TshDotHours": null,
      "TshEmpNo": "1003",
      "TshJobdeptwoId": "14001",
      "TshNormalHours": 8,
      "TshOhType": null,
      "TshOtHours": null,
      "TshOtherHours": null,
      "TshPhsacctwiId": "00020",
      "TshPprPeriod": 1,
      "TshPprYear": 2022,
      "TshPrnCode": "SM",
      "TshSeqNo": null,
      "TshTypeCode": "J",
      "TshVUuid": "F2A4A14B8AAD7A24E05316821FACC292",
      "TshWcbCode": null,
      "TshWorkCompCode": null,
      "TshUserField3": null,
      "TshUserField2": null,
      "TshUserField1": null,
      "TshUnionCode": null,
      "TshTradeCode": null,
      "TshShiftCode": null,
      "TshSectorCode": null,
      "TshScheduleCode": null,
      "TshExpAmount": null,
      "TshExpCode": null,
      "TshExpQuantity": null,
      "TshExpRate": null,
      "TshBatchPostFlag": "N",
      "TshWbsvCode1": null,
      "TshWbsvCode2": null,
      "TshWbsvCode3": null,
      "TshWbsvCode4": null,
      "TshIuCreateDate": null,
      "TshIuUpdateDate": null,
      "TshIuLastUpdateDate": null,
      "links": [
        {
          "rel": "self",
          "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyemptimesheet/F2A4A14B8AAD7A24E05316821FACC292",
          "name": "pyemptimesheet",
          "kind": "item"
        },
        {
          "rel": "canonical",
          "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyemptimesheet/F2A4A14B8AAD7A24E05316821FACC292",
          "name": "pyemptimesheet",
          "kind": "item"
        }
      ]
    }
    object