Update a payroll by ID

PUT {{baseUrl}}/v1/companies/:company_id/payrolls/:payroll_id

This endpoint allows you to update information for one or more employees for a specific unprocessed payroll. You can think of the unprocessed payroll object as a template of fields that you can update. You cannot modify the structure of the payroll object through this endpoint, only values of the fields included in the payroll. If you do not include specific employee compensations or fixed/hourly compensations in your request body, they will not be removed from the payroll.

scope: payrolls:write

Request Body

{"employee_compensations"=>[{"employee_uuid"=>"<string>", "version"=>"<string>", "excluded"=>"<boolean>", "payment_method"=>"<string>", "memo"=>"<string>", "fixed_compensations"=>[{"name"=>"<string>", "amount"=>"<string>", "job_uuid"=>"<string>"}, {"name"=>"<string>", "amount"=>"<string>", "job_uuid"=>"<string>"}], "hourly_compensations"=>[{"name"=>"<string>", "hours"=>"<string>", "job_uuid"=>"<string>"}, {"name"=>"<string>", "hours"=>"<string>", "job_uuid"=>"<string>"}], "paid_time_off"=>[{"name"=>"<string>", "hours"=>"<string>", "policy_uuid"=>"<string>", "final_payout_unused_hours_input"=>"<string>"}, {"name"=>"<string>", "hours"=>"<string>", "policy_uuid"=>"<string>", "final_payout_unused_hours_input"=>"<string>"}]}, {"employee_uuid"=>"<string>", "version"=>"<string>", "excluded"=>"<boolean>", "payment_method"=>"<string>", "memo"=>"<string>", "fixed_compensations"=>[{"name"=>"<string>", "amount"=>"<string>", "job_uuid"=>"<string>"}, {"name"=>"<string>", "amount"=>"<string>", "job_uuid"=>"<string>"}], "hourly_compensations"=>[{"name"=>"<string>", "hours"=>"<string>", "job_uuid"=>"<string>"}, {"name"=>"<string>", "hours"=>"<string>", "job_uuid"=>"<string>"}], "paid_time_off"=>[{"name"=>"<string>", "hours"=>"<string>", "policy_uuid"=>"<string>", "final_payout_unused_hours_input"=>"<string>"}, {"name"=>"<string>", "hours"=>"<string>", "policy_uuid"=>"<string>", "final_payout_unused_hours_input"=>"<string>"}]}]}

HEADERS

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;payroll_deadline&quot;:&quot;2022-02-18T22:00:00Z&quot;,&quot;check_date&quot;:&quot;2021-02-22&quot;,&quot;off_cycle&quot;:false,&quot;external&quot;:false,&quot;processed&quot;:false,&quot;processed_date&quot;:null,&quot;calculated_at&quot;:null,&quot;payroll_uuid&quot;:&quot;b50e611d-8f3d-4f24-b001-46675f7b5777&quot;,&quot;company_uuid&quot;:&quot;6bf7807c-a5a0-4f4d-b2e7-3fbb4b2299fb&quot;,&quot;created_at&quot;:&quot;2022-02-01T22:00:00Z&quot;,&quot;pay_period&quot;:{&quot;start_date&quot;:&quot;2021-02-01&quot;,&quot;end_date&quot;:&quot;2021-02-15&quot;,&quot;pay_schedule_uuid&quot;:&quot;00ebc4a4-ec88-4435-8f45-c505bb63e501&quot;},&quot;payroll_status_meta&quot;:{&quot;cancellable&quot;:false,&quot;expected_check_date&quot;:&quot;2022-02-22&quot;,&quot;initial_check_date&quot;:&quot;2022-02-22&quot;,&quot;expected_debit_time&quot;:&quot;2022-02-18T22:00:00Z&quot;,&quot;payroll_late&quot;:false,&quot;initial_debit_cutoff_time&quot;:&quot;2022-02-18T22:00:00Z&quot;},&quot;employee_compensations&quot;:[{&quot;employee_uuid&quot;:&quot;187412e1-3dbe-491a-bb2f-2f40323a7067&quot;,&quot;version&quot;:&quot;4ba36d23a78c7393b4900ef38019d8ff&quot;,&quot;excluded&quot;:false,&quot;payment_method&quot;:&quot;Direct Deposit&quot;,&quot;fixed_compensations&quot;:[{&quot;name&quot;:&quot;Bonus&quot;,&quot;amount&quot;:&quot;100.00&quot;,&quot;job_uuid&quot;:&quot;94e0d15e-9ed2-4077-98f6-64554f242ba5&quot;},{&quot;name&quot;:&quot;Reimbursement&quot;,&quot;amount&quot;:&quot;100.00&quot;,&quot;job_uuid&quot;:&quot;91bc3b43-ded0-4ee7-98fe-215499e909ba&quot;}],&quot;hourly_compensations&quot;:[{&quot;name&quot;:&quot;Regular Hours&quot;,&quot;hours&quot;:&quot;40.000&quot;,&quot;job_uuid&quot;:&quot;bd378298-3e0c-4145-904a-baadf8a91fa3&quot;,&quot;compensation_multiplier&quot;:1,&quot;flsa_status&quot;:&quot;Nonexempt&quot;},{&quot;name&quot;:&quot;Overtime&quot;,&quot;hours&quot;:&quot;15.000&quot;,&quot;job_uuid&quot;:&quot;9d3760f0-d1f9-4700-8817-0fe2dce5cf23&quot;,&quot;compensation_multiplier&quot;:1.5,&quot;flsa_status&quot;:&quot;Nonexempt&quot;},{&quot;name&quot;:&quot;Double overtime&quot;,&quot;hours&quot;:&quot;0.000&quot;,&quot;job_uuid&quot;:&quot;b5eef9a9-4a87-4649-a80d-14878c05f44e&quot;,&quot;compensation_multiplier&quot;:2,&quot;flsa_status&quot;:&quot;Nonexempt&quot;},{&quot;name&quot;:&quot;Regular Hours&quot;,&quot;hours&quot;:&quot;40.000&quot;,&quot;job_uuid&quot;:&quot;332bd171-9efc-432b-abbb-a75c9dba706a&quot;,&quot;compensation_multiplier&quot;:1,&quot;flsa_status&quot;:&quot;Nonexempt&quot;},{&quot;name&quot;:&quot;Overtime&quot;,&quot;hours&quot;:&quot;5.000&quot;,&quot;job_uuid&quot;:&quot;ca9b3dc1-57ac-4736-901a-9b1c9634b9d5&quot;,&quot;compensation_multiplier&quot;:1.5,&quot;flsa_status&quot;:&quot;Nonexempt&quot;},{&quot;name&quot;:&quot;Double overtime&quot;,&quot;hours&quot;:&quot;0.000&quot;,&quot;job_uuid&quot;:&quot;1bad01e2-140c-49ed-9542-2388ce4a19b3&quot;,&quot;compensation_multiplier&quot;:2,&quot;flsa_status&quot;:&quot;Nonexempt&quot;}],&quot;paid_time_off&quot;:[{&quot;name&quot;:&quot;Vacation Hours&quot;,&quot;hours&quot;:&quot;20.000&quot;},{&quot;name&quot;:&quot;Sick Hours&quot;,&quot;hours&quot;:&quot;0.000&quot;},{&quot;name&quot;:&quot;Holiday Hours&quot;,&quot;hours&quot;:&quot;0.000&quot;}]},{&quot;employee_uuid&quot;:&quot;187412e1-3dbe-491a-bb2f-2f40323a7012&quot;,&quot;version&quot;:&quot;ff083257a5583291fb86656ad0df1b42&quot;,&quot;excluded&quot;:false,&quot;payment_method&quot;:&quot;Direct Deposit&quot;,&quot;fixed_compensations&quot;:[{&quot;name&quot;:&quot;Bonus&quot;,&quot;amount&quot;:&quot;100.00&quot;,&quot;job_uuid&quot;:&quot;94e0d15e-9ed2-4077-98f6-64554f242b34&quot;},{&quot;name&quot;:&quot;Reimbursement&quot;,&quot;amount&quot;:&quot;100.00&quot;,&quot;job_uuid&quot;:&quot;91bc3b43-ded0-4ee7-98fe-215499e90955&quot;}],&quot;hourly_compensations&quot;:[{&quot;name&quot;:&quot;Regular Hours&quot;,&quot;hours&quot;:&quot;40.000&quot;,&quot;job_uuid&quot;:&quot;bd378298-3e0c-4145-904a-baadf8a91fa3&quot;,&quot;compensation_multiplier&quot;:1,&quot;flsa_status&quot;:&quot;Commission Only Exempt&quot;}],&quot;paid_time_off&quot;:[{&quot;name&quot;:&quot;Vacation Hours&quot;,&quot;hours&quot;:&quot;20.000&quot;},{&quot;name&quot;:&quot;Sick Hours&quot;,&quot;hours&quot;:&quot;0.000&quot;},{&quot;name&quot;:&quot;Holiday Hours&quot;,&quot;hours&quot;:&quot;0.000&quot;}]},{&quot;employee_uuid&quot;:&quot;187412e1-3dbe-491a-bb2f-2f40323a7781&quot;,&quot;version&quot;:&quot;259816479e3729bf855318af9b9adddf&quot;,&quot;excluded&quot;:false,&quot;payment_method&quot;:&quot;Direct Deposit&quot;,&quot;fixed_compensations&quot;:[{&quot;name&quot;:&quot;Bonus&quot;,&quot;amount&quot;:&quot;100.00&quot;,&quot;job_uuid&quot;:&quot;94e0d15e-9ed2-4077-98f6-64554f242bab&quot;},{&quot;name&quot;:&quot;Reimbursement&quot;,&quot;amount&quot;:&quot;100.00&quot;,&quot;job_uuid&quot;:&quot;91bc3b43-ded0-4ee7-98fe-215499e909cd&quot;}],&quot;hourly_compensations&quot;:[{&quot;name&quot;:&quot;Regular Hours&quot;,&quot;hours&quot;:&quot;40.000&quot;,&quot;job_uuid&quot;:&quot;bd378298-3e0c-4145-904a-baadf8a91fa3&quot;,&quot;compensation_multiplier&quot;:1,&quot;flsa_status&quot;:&quot;Exempt&quot;}],&quot;paid_time_off&quot;:[{&quot;name&quot;:&quot;Vacation Hours&quot;,&quot;hours&quot;:&quot;20.000&quot;},{&quot;name&quot;:&quot;Sick Hours&quot;,&quot;hours&quot;:&quot;0.000&quot;},{&quot;name&quot;:&quot;Holiday Hours&quot;,&quot;hours&quot;:&quot;0.000&quot;}]}],&quot;fixed_compensation_types&quot;:[{&quot;name&quot;:&quot;Bonus&quot;},{&quot;name&quot;:&quot;Commission&quot;},{&quot;name&quot;:&quot;Paycheck Tips&quot;},{&quot;name&quot;:&quot;Cash Tips&quot;},{&quot;name&quot;:&quot;Correction Payment&quot;},{&quot;name&quot;:&quot;Anniversary Bonus&quot;},{&quot;name&quot;:&quot;Internet Stipend&quot;},{&quot;name&quot;:&quot;Reimbursement&quot;}]}