Executes the Add action for the Time Batch Entry data object.

Adds a new Time Batch Entry record to the batch.

Log in to see full request history
Path Params
string
required

The code of the subscriber that you are making this request for.

Body Params
integer
required
1 to 255

Key to pr/time_batches(Co, Mth, BatchId).

date
required

Key to pr/time_batches(Co, Mth, BatchId). Format YYYY-MM-01.

integer
required

Key to pr/time_batches(Co, Mth, BatchId).

integer
required

Key to pr/employees(PRCo, Employee).

date
required

Date you are entering time for. Format: YYYY-MM-DD.

integer

Optional. If omitted, the first Pay Sequence setup for the Pay Period associated to this batch.

string
length ≤ 10

Key to pr/departments(PRCo, PRDept). Optional. If omitted, it will be defaulted based on Vista defaulting logic.

string | null

Key to pr/states(PRCo, State). Key to pr/insurance_codes(PRCo, InsState, InsCode). Optional. If omitted, will be defaulted based on Vista defaulting logic. Provide null if you want to override the defaulting behavior with no value.

string
length ≤ 4

Key to pr/states(PRCo, State). Optional. If omitted, will be defaulted based on Vista defaulting logic.

string | null

Key to pr/locals(PRCo, LocalCode). Optional. If omitted, will be defaulted based on Vista defaulting logic. Provide null if you want to override the defaulting behavior with no value.

string
length ≤ 4

Key to pr/states(PRCo, State). Optional. If omitted, will be defaulted based on Vista defaulting logic.

string | null

Key to pr/insurance_codes(PRCo, InsState, InsCode). Optional. If omitted, will be defaulted based on Vista defaulting logic. Provide null if you want to override the defaulting behavior with no value.

string

Should Earnings appear on Certified PR Reports. Optional. If omitted, N will be defaulted.

string | null

Key to pr/crafts(PRCo, Craft). Key to pr/classes(PRCo, Craft, Class). Optional. If omitted, will be defaulted based on Vista defaulting logic. Provide null if you want to override the defaulting behavior with no value.

string | null

Key to pr/classes(PRCo, Craft, Class). Optional. If omitted, will be defaulted based on Vista defaulting logic. Provide null if you want to override the defaulting behavior with no value.

string

Format 24H:mm (13:24). Optional. If omitted, empty string will be defaulted. This value will only be stored if the StartTime and StopTime are provided. The Hours property will override any calculation based on StartTime, StopTime, and BreakHours.

string

Format 24H:mm (13:24). Optional. If omitted, empty string will be defaulted. This value will only be stored if the StartTime and StopTime are provided. The Hours property will override any calculation based on StartTime, StopTime, and BreakHours.

string

Optional. If omitted, 0 will be defaulted. This value will only be stored if the StartTime and StopTime have also been provided. The Hours property will override any calculation based on StartTime, StopTime, and BreakHours.

integer

Key to pr/earn_codes(PRCo, EarnCode). Optional. If omitted, will be defaulted based on Vista defaulting logic.

string | null

Optional. If omitted, null will be defaulted.

integer

Shift. Optional. If omitted, will be defaulted based on Vista defaulting logic.

string

Optional. If omitted, will be defaulted based on Vista defaulting logic.

string
required

Hours.

string

Amount. Optional. If omitted, it will be defaulted based on Vista defaulting logic.

integer | null

Crew Template ID related to the Vista Web Portal. Optional. If omitted, null will be defaulted.

__custom_fields
object

Add a property for each user defined values that should be set on the header form as part of this action.

__disable_validation
array of strings

Disable Vista validations for properties listed in this field.

__disable_validation
required

Provide the object based on the entry type. Options for $.TypeDetails.Type: J-Job, M-Mechanic, S-SM Work Order.

Headers
string
required

Used to authorize access to the Direct API.

Responses

401

You have not provided a proper X-Application-Key in the header of this request.

403

The X-Application-Key provided is valid but the key does not have access to this resource.

404

The object with the given ID was not found OR a subscriber with the given URL was not found.

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json