Preview a contractor payment group
POST {{baseUrl}}/v1/companies/:company_id/contractor_payment_groups/preview
Preview a group of contractor payments. Request will validate inputs and return preview of the contractor payment group including the expected debit_date. Uuid will be null in the response.
scope: payrolls:read
Request Body
{"check_date"=>"<date>", "contractor_payments"=>[{"contractor_uuid"=>"<string>", "payment_method"=>"Direct Deposit", "wage"=>"<number>", "hours"=>"<number>", "bonus"=>"<number>", "reimbursement"=>"<number>"}, {"contractor_uuid"=>"<string>", "payment_method"=>"Direct Deposit", "wage"=>"<number>", "hours"=>"<number>", "bonus"=>"<number>", "reimbursement"=>"<number>"}], "creation_token"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Gusto-API-Version | string | Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"uuid":"nil","company_uuid":"c54046f7-1be4-4c54-8194-f4842c30c86d","check_date":"2024-05-07","debit_date":"2024-05-01","status":"Unfunded","creation_token":"nil","contractor_payments":[{"uuid":"nil","contractor_uuid":"2e6d0970-31bf-47ce-bdb4-713e4207ecf4","bonus":"0.0","hours":"40.0","hourly_rate":"18.0","may_cancel":false,"payment_method":"Direct Deposit","reimbursement":"75.0","status":"Unfunded","wage":"0.0","wage_type":"Hourly","wage_total":"720.0"},{"uuid":"nil","contractor_uuid":"a975fda0-fcf5-469a-a5fd-06e43d1cd99d","bonus":"0.0","hours":"0.0","hourly_rate":"0.0","may_cancel":false,"payment_method":"Check","reimbursement":"0.0","status":"Unfunded","wage":"1500.0","wage_type":"Fixed","wage_total":"1500.0"}],"totals":{"debit_amount":"2295.0","wage_amount":"2220.0","reimbursement_amount":"75.0"}}