OK
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls' \ -H 'Content-Type: application/json' \ -d '{ "paymentScheduleId": "string", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "payday": "2019-08-24", "type": "Regular", "frequency": "Weekly", "processingPeriod": "FourDay", "forceSupplementalWithholdings": true, "applyBenefits": true, "applyDeductions": true, "employeeItems": [ { "employeeId": "string", "paymentMethod": "DirectDeposit", "flsaOvertimeExemption": "NonExempt", "supplementalTaxMethod": "Flat", "payments": [ { "workplaceId": "string", "isSalaryRate": true, "payRate": 0.1, "regularHours": 0.1, "overtimeHours": 0.1, "doubleOvertimeHours": 0.1, "paidHolidayHours": 0.1, "sickHours": 0.1, "ptoHours": 0.1, "regularOverride": 0.1, "overtimeOverride": 0.1, "doubleOvertimeOverride": 0.1, "paidHolidayOverride": 0.1, "ptoOverride": 0.1, "sickOverride": 0.1, "nonHourlyRegular": 0.1, "bonus": 0.1, "commission": 0.1, "cashTips": 0.1, "paycheckTips": 0.1, "severance": 0.1, "groupTermLife": 0.1, "otherImputed": 0.1, "shareholderBenefits": 0.1, "shareholderHsa": 0.1, "earningCodeEarnings": [ { "earningCodeId": "string", "value": 0.1, "valueOverride": 0.1 } ] } ], "reimbursements": [ { "amount": 0.1, "description": "string" } ] } ], "contractorItems": [ { "contractorId": "string", "workplaceId": "string", "paymentMethod": "DirectDeposit", "hours": 0.1, "payRate": 0.1, "reimbursement": 0.1 } ] }'
{ "id": "string", "companyId": "string", "paymentScheduleId": "string", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "deadline": "2019-08-24", "payday": "2019-08-24", "approvedAt": "2019-08-24T14:15:22Z", "status": "Draft", "type": "Regular", "frequency": "Weekly", "processingPeriod": "FourDay", "fundingMethod": "Ach", "totals": { "employeeGross": 0.1, "employeeReimbursements": 0.1, "employeeTaxes": 0.1, "employeeBenefits": 0.1, "deductions": 0.1, "employeeNet": 0.1, "contractorGross": 0.1, "contractorReimbursements": 0.1, "contractorNet": 0.1, "companyTaxes": 0.1, "companyBenefits": 0.1, "liability": 0.1, "cashRequirement": 0.1 }, "offCycleOptions": { "forceSupplementalWithholdings": true, "applyBenefits": true, "applyDeductions": true }, "employeeItems": [ { … } ], "contractorItems": [ { … } ], "warnings": [ { … } ], "isVoid": true, "isManaged": true }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls?id=string&page=1&pageSize=10'
{ "hasResources": true, "totalResources": 0, "totalPages": 0, "pageSize": 0, "currentPage": 0, "previousPage": 0, "nextPage": 0, "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls/{payrollId}'
{ "id": "string", "companyId": "string", "paymentScheduleId": "string", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "deadline": "2019-08-24", "payday": "2019-08-24", "approvedAt": "2019-08-24T14:15:22Z", "status": "Draft", "type": "Regular", "frequency": "Weekly", "processingPeriod": "FourDay", "fundingMethod": "Ach", "totals": { "employeeGross": 0.1, "employeeReimbursements": 0.1, "employeeTaxes": 0.1, "employeeBenefits": 0.1, "deductions": 0.1, "employeeNet": 0.1, "contractorGross": 0.1, "contractorReimbursements": 0.1, "contractorNet": 0.1, "companyTaxes": 0.1, "companyBenefits": 0.1, "liability": 0.1, "cashRequirement": 0.1 }, "offCycleOptions": { "forceSupplementalWithholdings": true, "applyBenefits": true, "applyDeductions": true }, "employeeItems": [ { … } ], "contractorItems": [ { … } ], "warnings": [ { … } ], "isVoid": true, "isManaged": true }
curl -i -X PATCH \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls/{payrollId}' \ -H 'Content-Type: application/json' \ -d '{ "paymentScheduleId": "string", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "payday": "2019-08-24", "type": "string", "frequency": "string", "processingPeriod": "string", "forceSupplementalWithholdings": true, "applyBenefits": true, "applyDeductions": true, "employeeItems": [ { "employeeId": "string", "paymentMethod": "DirectDeposit", "flsaOvertimeExemption": "NonExempt", "supplementalTaxMethod": "Flat", "payments": [ { "workplaceId": "string", "isSalaryRate": true, "payRate": 0.1, "regularHours": 0.1, "overtimeHours": 0.1, "doubleOvertimeHours": 0.1, "paidHolidayHours": 0.1, "sickHours": 0.1, "ptoHours": 0.1, "regularOverride": 0.1, "overtimeOverride": 0.1, "doubleOvertimeOverride": 0.1, "paidHolidayOverride": 0.1, "ptoOverride": 0.1, "sickOverride": 0.1, "nonHourlyRegular": 0.1, "bonus": 0.1, "commission": 0.1, "cashTips": 0.1, "paycheckTips": 0.1, "severance": 0.1, "groupTermLife": 0.1, "otherImputed": 0.1, "shareholderBenefits": 0.1, "shareholderHsa": 0.1, "earningCodeEarnings": [ { "earningCodeId": "string", "value": 0.1, "valueOverride": 0.1 } ] } ], "reimbursements": [ { "amount": 0.1, "description": "string" } ] } ], "contractorItems": [ { "contractorId": "string", "workplaceId": "string", "paymentMethod": "DirectDeposit", "hours": 0.1, "payRate": 0.1, "reimbursement": 0.1 } ] }'
{ "id": "string", "companyId": "string", "paymentScheduleId": "string", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "deadline": "2019-08-24", "payday": "2019-08-24", "approvedAt": "2019-08-24T14:15:22Z", "status": "Draft", "type": "Regular", "frequency": "Weekly", "processingPeriod": "FourDay", "fundingMethod": "Ach", "totals": { "employeeGross": 0.1, "employeeReimbursements": 0.1, "employeeTaxes": 0.1, "employeeBenefits": 0.1, "deductions": 0.1, "employeeNet": 0.1, "contractorGross": 0.1, "contractorReimbursements": 0.1, "contractorNet": 0.1, "companyTaxes": 0.1, "companyBenefits": 0.1, "liability": 0.1, "cashRequirement": 0.1 }, "offCycleOptions": { "forceSupplementalWithholdings": true, "applyBenefits": true, "applyDeductions": true }, "employeeItems": [ { … } ], "contractorItems": [ { … } ], "warnings": [ { … } ], "isVoid": true, "isManaged": true }
curl -i -X DELETE \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls/{payrollId}'
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls/{payrollId}/preview'
{ "id": "string", "companyId": "string", "paymentScheduleId": "string", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "deadline": "2019-08-24", "payday": "2019-08-24", "approvedAt": "2019-08-24T14:15:22Z", "status": "Draft", "type": "Regular", "frequency": "Weekly", "processingPeriod": "FourDay", "fundingMethod": "Ach", "totals": { "employeeGross": 0.1, "employeeReimbursements": 0.1, "employeeTaxes": 0.1, "employeeBenefits": 0.1, "deductions": 0.1, "employeeNet": 0.1, "contractorGross": 0.1, "contractorReimbursements": 0.1, "contractorNet": 0.1, "companyTaxes": 0.1, "companyBenefits": 0.1, "liability": 0.1, "cashRequirement": 0.1 }, "offCycleOptions": { "forceSupplementalWithholdings": true, "applyBenefits": true, "applyDeductions": true }, "employeeItems": [ { … } ], "contractorItems": [ { … } ], "warnings": [ { … } ], "isVoid": true, "isManaged": true }
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls/{payrollId}/approve'
{ "id": "string", "companyId": "string", "paymentScheduleId": "string", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "deadline": "2019-08-24", "payday": "2019-08-24", "approvedAt": "2019-08-24T14:15:22Z", "status": "Draft", "type": "Regular", "frequency": "Weekly", "processingPeriod": "FourDay", "fundingMethod": "Ach", "totals": { "employeeGross": 0.1, "employeeReimbursements": 0.1, "employeeTaxes": 0.1, "employeeBenefits": 0.1, "deductions": 0.1, "employeeNet": 0.1, "contractorGross": 0.1, "contractorReimbursements": 0.1, "contractorNet": 0.1, "companyTaxes": 0.1, "companyBenefits": 0.1, "liability": 0.1, "cashRequirement": 0.1 }, "offCycleOptions": { "forceSupplementalWithholdings": true, "applyBenefits": true, "applyDeductions": true }, "employeeItems": [ { … } ], "contractorItems": [ { … } ], "warnings": [ { … } ], "isVoid": true, "isManaged": true }
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls/{payrollId}/reopen'
{ "id": "string", "companyId": "string", "paymentScheduleId": "string", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "deadline": "2019-08-24", "payday": "2019-08-24", "approvedAt": "2019-08-24T14:15:22Z", "status": "Draft", "type": "Regular", "frequency": "Weekly", "processingPeriod": "FourDay", "fundingMethod": "Ach", "totals": { "employeeGross": 0.1, "employeeReimbursements": 0.1, "employeeTaxes": 0.1, "employeeBenefits": 0.1, "deductions": 0.1, "employeeNet": 0.1, "contractorGross": 0.1, "contractorReimbursements": 0.1, "contractorNet": 0.1, "companyTaxes": 0.1, "companyBenefits": 0.1, "liability": 0.1, "cashRequirement": 0.1 }, "offCycleOptions": { "forceSupplementalWithholdings": true, "applyBenefits": true, "applyDeductions": true }, "employeeItems": [ { … } ], "contractorItems": [ { … } ], "warnings": [ { … } ], "isVoid": true, "isManaged": true }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/payrolls/{payrollId}/paper_checks'
{ "base64Content": "string", "paperChecksAvailable": true }