OK
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors' \ -H 'Content-Type: application/json' \ -d '{ "firstName": "string", "middleName": "string", "lastName": "string", "businessName": "string", "email": "string", "ssn": "string", "ein": "string", "departmentId": "string", "primaryWorkplaceId": "string", "workplaces": [ "string" ], "dateOfBirth": "2019-08-24", "startDate": "2019-08-24", "terminationDate": "2019-08-24", "type": "Individual", "defaultPaymentMethod": "DirectDeposit", "form1099ElectronicConsent": true, "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "wage": { "rate": 0.1, "period": "Hourly" } }'
{ "id": "string", "companyId": "string", "firstName": "string", "middleName": "string", "lastName": "string", "businessName": "string", "email": "string", "ein": "string", "ssnLastFour": "string", "ssnValidationStatus": "Pending", "dateOfBirth": "2019-08-24", "startDate": "2019-08-24", "terminationDate": "2019-08-24", "type": "Individual", "defaultPaymentMethod": "DirectDeposit", "defaultNetPaySplit": "string", "bankAccounts": [ "string" ], "primaryWorkplace": "string", "workplaces": [ { … } ], "department": { "id": "string", "name": "string" }, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "onboard": { "status": "Blocking", "blockingSteps": [ … ], "remainingSteps": [ … ], "ssn": [ … ], "ein": [ … ], "paymentMethod": [ … ], "address": [ … ], "withholdings": [ … ] }, "form1099ElectronicConsent": true, "active": true }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors?active=true&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}/contractors/{contractorId}'
{ "id": "string", "companyId": "string", "firstName": "string", "middleName": "string", "lastName": "string", "businessName": "string", "email": "string", "ein": "string", "ssnLastFour": "string", "ssnValidationStatus": "Pending", "dateOfBirth": "2019-08-24", "startDate": "2019-08-24", "terminationDate": "2019-08-24", "type": "Individual", "defaultPaymentMethod": "DirectDeposit", "defaultNetPaySplit": "string", "bankAccounts": [ "string" ], "primaryWorkplace": "string", "workplaces": [ { … } ], "department": { "id": "string", "name": "string" }, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "onboard": { "status": "Blocking", "blockingSteps": [ … ], "remainingSteps": [ … ], "ssn": [ … ], "ein": [ … ], "paymentMethod": [ … ], "address": [ … ], "withholdings": [ … ] }, "form1099ElectronicConsent": true, "active": true }
curl -i -X PATCH \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}' \ -H 'Content-Type: application/json' \ -d '{ "departmentId": "string", "primaryWorkplaceId": "string", "workplaces": [ "string" ], "firstName": "string", "middleName": "string", "lastName": "string", "businessName": "string", "email": "string", "ssn": "string", "ein": "string", "dateOfBirth": "2019-08-24", "startDate": "2019-08-24", "terminationDate": "2019-08-24", "type": "string", "defaultPaymentMethod": "string", "form1099ElectronicConsent": true, "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "wage": { "rate": 0.1, "period": "Hourly" } }'
{ "id": "string", "companyId": "string", "firstName": "string", "middleName": "string", "lastName": "string", "businessName": "string", "email": "string", "ein": "string", "ssnLastFour": "string", "ssnValidationStatus": "Pending", "dateOfBirth": "2019-08-24", "startDate": "2019-08-24", "terminationDate": "2019-08-24", "type": "Individual", "defaultPaymentMethod": "DirectDeposit", "defaultNetPaySplit": "string", "bankAccounts": [ "string" ], "primaryWorkplace": "string", "workplaces": [ { … } ], "department": { "id": "string", "name": "string" }, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "onboard": { "status": "Blocking", "blockingSteps": [ … ], "remainingSteps": [ … ], "ssn": [ … ], "ein": [ … ], "paymentMethod": [ … ], "address": [ … ], "withholdings": [ … ] }, "form1099ElectronicConsent": true, "active": true }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/paystubs/{payrollId}'
{ "payroll": { "payrollId": "string", "payday": "2019-08-24", "periodStart": "2019-08-24", "periodEnd": "2019-08-24", "voidedPayrollId": "string", "voidedBy": "string" }, "company": { "legalName": "string", "tradeName": "string", "phone": "string", "address": { … } }, "contractor": { "firstName": "string", "middleName": "string", "lastName": "string", "businessName": "string", "email": "string", "ssnLastFour": "string", "ein": "string", "type": "Individual", "address": { … } }, "netPay": 0.1, "netPayYtd": 0.1, "amount": 0.1, "amountYtd": 0.1, "reimbursement": 0.1, "reimbursementYtd": 0.1 }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/paystubs'
{ "previousPage": "string", "nextPage": "string", "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/paystubs/{payrollId}/download'
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/forms'
{ "previousPage": "string", "nextPage": "string", "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/forms/{formId}'
{ "id": "string", "description": "string", "link": "string", "jurisdictionName": "string", "revisionDate": "2019-08-24", "parameters": [ { … } ], "signatureConfirmationText": "string" }
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/forms/{formId}/preview' \ -H 'Content-Type: application/json' \ -d '{ "parameters": [ { "name": "string", "value": "string" } ] }'
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/forms/{formId}/submit' \ -H 'Content-Type: application/json' \ -d '{ "parameters": [ { "name": "string", "value": "string" } ] }'
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/bank_accounts' \ -H 'Content-Type: application/json' \ -d '{ "accountNumber": "string", "routingNumber": "string", "institutionName": "string", "subtype": "Checking" }'
{ "id": "string", "companyId": "string", "employeeId": "string", "contractorId": "string", "status": "ValidationPending", "disabledReason": "ValidationFailed", "rawBankAccount": { "institutionName": "string", "accountLastFour": "string", "routingNumber": "string", "subtype": "Checking" }, "plaidBankAccount": { "name": "string", "plaidPublicToken": "string", "institutionName": "string", "accountLastFour": "string", "subtype": "Checking", "verified": true, "microdepositVerificationStatus": "string" } }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/bank_accounts?cursor=string'
{ "previousPage": "string", "nextPage": "string", "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/bank_accounts/{bankAccountId}'
{ "id": "string", "companyId": "string", "employeeId": "string", "contractorId": "string", "status": "ValidationPending", "disabledReason": "ValidationFailed", "rawBankAccount": { "institutionName": "string", "accountLastFour": "string", "routingNumber": "string", "subtype": "Checking" }, "plaidBankAccount": { "name": "string", "plaidPublicToken": "string", "institutionName": "string", "accountLastFour": "string", "subtype": "Checking", "verified": true, "microdepositVerificationStatus": "string" } }
curl -i -X PATCH \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/bank_accounts/{bankAccountId}' \ -H 'Content-Type: application/json' \ -d '{ "accountNumber": "string", "routingNumber": "string", "institutionName": "string", "subtype": "string" }'
{ "id": "string", "companyId": "string", "employeeId": "string", "contractorId": "string", "status": "ValidationPending", "disabledReason": "ValidationFailed", "rawBankAccount": { "institutionName": "string", "accountLastFour": "string", "routingNumber": "string", "subtype": "Checking" }, "plaidBankAccount": { "name": "string", "plaidPublicToken": "string", "institutionName": "string", "accountLastFour": "string", "subtype": "Checking", "verified": true, "microdepositVerificationStatus": "string" } }
curl -i -X DELETE \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/bank_accounts/{bankAccountId}'
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/net_pay_splits' \ -H 'Content-Type: application/json' \ -d '{ "isDefault": true, "splits": [ { "bankAccountId": "string", "priority": 0, "amount": 0.1, "percent": 0.1 } ] }'
{ "id": "string", "employeeId": "string", "contractorId": "string", "deactivatedAt": "2019-08-24T14:15:22Z", "deactivatedReason": "string", "isDefault": true, "splits": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/net_pay_splits?cursor=string'
{ "previousPage": "string", "nextPage": "string", "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/net_pay_splits/{netPaySplitId}'
{ "id": "string", "employeeId": "string", "contractorId": "string", "deactivatedAt": "2019-08-24T14:15:22Z", "deactivatedReason": "string", "isDefault": true, "splits": [ { … } ] }
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/contractors/{contractorId}/onboard/forms'