Create Multiple PY Employee Timesheets
  • 06 Jan 2025
  • 2 Minutes to read
  • Dark
    Light

Create Multiple PY Employee Timesheets

  • 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{ "parts" : [ { "id": "part1", "path": "/1/pyemptimesheet", "operation": "create", "payload": { "TshCatexpId": "1100", "TshCompCode": "ZZ", "TshDate": "2023-05-16", "TshDocumentNo": "WBS1", "TshDotHours": 0, "TshEmpNo": "ZZ-900", "TshJobdeptwoId": "DEFAULT", "TshNormalHours": 8, "TshOhType": null, "TshOtHours": 1, "TshOtherHours": null, "TshPhsacctwiId": "01-710", "TshPprPeriod": 1, "TshPprYear": 2021, "TshPrnCode": "ZZWK", "TshTypeCode": "J", "TshVUuid": "20230516-OB09", "TshWcbCode": "WC", "TshWorkCompCode": "ZZ", "TshProcessFlag": "N", "TshBatchPostFlag": "Y" } }, { "id": "part2", "path": "/1/pyemptimesheet", "operation": "create", "payload": { "TshCatexpId": "1100", "TshCompCode": "ZZ", "TshDate": "2023-05-16", "TshDocumentNo": "WBS1", "TshDotHours": 0, "TshEmpNo": "ZZ-900", "TshJobdeptwoId": "DEFAULT", "TshNormalHours": 8, "TshOhType": null, "TshOtHours": 1, "TshOtherHours": null, "TshPhsacctwiId": "01-710", "TshPprPeriod": 1, "TshPprYear": 2021, "TshPrnCode": "ZZWK", "TshTypeCode": "J", "TshVUuid": "20230516-OB10", "TshWcbCode": "WC", "TshWorkCompCode": "ZZ", "TshProcessFlag": "N", "TshBatchPostFlag": "Y" } } ]' }
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

Successful response