@gusto/embedded-api v0.6.3
gusto-embedded
Developer-friendly & type-safe Typescript SDK specifically catered to leverage gusto-embedded API.
!IMPORTANT This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your workspace. Delete this section before > publishing to a package manager.
Summary
Gusto API: Welcome to Gusto's Embedded Payroll API documentation!
Table of Contents
SDK Installation
The SDK can be installed with either npm, pnpm, bun or yarn package managers.
NPM
npm add @gusto/embedded-api
# Install optional peer dependencies if you plan to use React hooks
npm add @tanstack/react-query react react-dom
PNPM
pnpm add @gusto/embedded-api
# Install optional peer dependencies if you plan to use React hooks
pnpm add @tanstack/react-query react react-dom
Bun
bun add @gusto/embedded-api
# Install optional peer dependencies if you plan to use React hooks
bun add @tanstack/react-query react react-dom
Yarn
yarn add @gusto/embedded-api zod
# Install optional peer dependencies if you plan to use React hooks
yarn add @tanstack/react-query react react-dom
# Note that Yarn does not install peer dependencies automatically. You will need
# to install zod as shown above.
!NOTE This package is published as an ES Module (ESM) only. For applications using CommonJS, use
await import("@gusto/embedded-api")
to import and use this package.
Requirements
For supported JavaScript runtimes, please consult RUNTIMES.md.
SDK Example Usage
Example
import { GustoEmbedded } from "@gusto/embedded-api";
const gustoEmbedded = new GustoEmbedded({
companyAccessAuth: process.env["GUSTOEMBEDDED_COMPANY_ACCESS_AUTH"] ?? "",
});
async function run() {
const result = await gustoEmbedded.introspection.getInfo({});
console.log(result);
}
run();
Authentication
Per-Client Security Schemes
This SDK supports the following security scheme globally:
Name | Type | Scheme | Environment Variable |
---|---|---|---|
companyAccessAuth | http | HTTP Bearer | GUSTOEMBEDDED_COMPANY_ACCESS_AUTH |
To authenticate with the API the companyAccessAuth
parameter must be set when initializing the SDK client instance. For example:
import { GustoEmbedded } from "@gusto/embedded-api";
const gustoEmbedded = new GustoEmbedded({
companyAccessAuth: process.env["GUSTOEMBEDDED_COMPANY_ACCESS_AUTH"] ?? "",
});
async function run() {
const result = await gustoEmbedded.introspection.getInfo({});
console.log(result);
}
run();
Per-Operation Security Schemes
Some operations in this SDK require the security scheme to be specified at the request level. For example:
import { GustoEmbedded } from "@gusto/embedded-api";
const gustoEmbedded = new GustoEmbedded();
async function run() {
const result = await gustoEmbedded.companies.createPartnerManaged({
systemAccessAuth: process.env["GUSTOEMBEDDED_SYSTEM_ACCESS_AUTH"] ?? "",
}, {
requestBody: {
user: {
firstName: "Frank",
lastName: "Ocean",
email: "frank@example.com",
phone: "2345558899",
},
company: {
name: "Frank's Ocean, LLC",
tradeName: "Frank’s Ocean",
ein: "123456789",
contractorOnly: false,
},
},
});
console.log(result);
}
run();
Available Resources and Operations
achTransactions
- getAll - Get all ACH transactions for a company
bankAccounts
- create - Create a company bank account
- get - Get all company bank accounts
- verify - Verify a company bank account
- createFromPlaidToken - Create a bank account from a plaid processor token
companies
- createPartnerManaged - Create a partner managed company
- get - Get a company
- update - Update a company
- migrate - Migrate company to embedded payroll
- acceptTermsOfService - Accept terms of service for a company user
- retrieveTermsOfService - Retrieve terms of service status for a company user
- createAdmin - Create an admin for the company
- listAdmins - Get all the admins at a company
- getOnboardingStatus - Get the company's onboarding status
- finishOnboarding - Finish company onboarding
- getCustomFields - Get the custom fields of a company
companies.suspensions
companyAttachment
- getDownloadUrl - Get a temporary url to download the Company Attachment file
companyAttachments
- getDetails - Get Company Attachment Details
- getList - Get List of Company Attachments
- create - Create Company Attachment and Upload File
companyBenefits
- create - Create a company benefit
- list - Get benefits for a company
- get - Get a company benefit
- update - Update a company benefit
- delete - Delete a company benefit
- getAll - Get all benefits supported by Gusto
- getSupported - Get a supported benefit by ID
- getSummary - Get company benefit summary by company benefit id.
- getEmployeeBenefits - Get all employee benefits for a company benefit
- updateEmployeeBenefits - Bulk update employee benefits for a company benefit
- getRequirements - Get benefit fields requirements by ID
companyForms
- getAll - Get all company forms
- get - Get a company form
- getPdf - Get a company form pdf
- sign - Sign a company form
contractorDocuments
- getAll - Get all contractor documents
- get - Get a contractor document
- getPdf - Get the contractor document pdf
- sign - Sign a contractor document
contractorForms
- list - Get all contractor forms
- get - Get a contractor form
- getPdf - Get the contractor form pdf
- generate1099 - Generate a 1099 form DEMO
contractorPaymentGroups
- create - Create a contractor payment group
- getList - Get contractor payment groups for a company
- preview - Preview a contractor payment group
- get - Fetch a contractor payment group
- delete - Cancel a contractor payment group
- fund - Fund a contractor payment group DEMO
contractorPaymentMethod
- getBankAccounts - Get all contractor bank accounts
- get - Get a contractor's payment method
- update - Update a contractor's payment method
contractorPaymentMethods
- createBankAccount - Create a contractor bank account
contractorPayments
- getReceipt - Get a single contractor payment receipt
- fund - Fund a contractor payment DEMO
- create - Create a contractor payment
- list - Get contractor payments for a company
- get - Get a single contractor payment
- delete - Cancel a contractor payment
contractors
- create - Create a contractor
- list - Get contractors of a company
- get - Get a contractor
- update - Update a contractor
- delete - Delete a contractor
- getOnboardingStatus - Get the contractor's onboarding status
- updateOnboardingStatus - Change the contractor's onboarding status
- getAddress - Get a contractor address
- updateAddress - Update a contractor's address
- getV1CompaniesCompanyIdContractorsPaymentDetails - List contractor payment details
departments
- create - Create a department
- getAll - Get all departments of a company
- get - Get a department
- update - Update a department
- delete - Delete a department
- addPeople - Add people to a department
- removePeople - Remove people from a department
earningTypes
- create - Create a custom earning type
- list - Get all earning types for a company
- update - Update an earning type
- delete - Deactivate an earning type
employeeAddresses
- get - Get an employee's home addresses
- create - Create an employee's home address
- retrieveHomeAddress - Get an employee's home address
- update - Update an employee's home address
- delete - Delete an employee's home address
- getWorkAddresses - Get an employee's work addresses
- createWorkAddress - Create an employee work address
- retrieveWorkAddress - Get an employee work address
- updateWorkAddress - Update an employee work address
- deleteWorkAddress - Delete an employee's work address
employeeBenefits
- create - Create an employee benefit
- get - Get all benefits for an employee
- retrieve - Get an employee benefit
- update - Update an employee benefit
- delete - Delete an employee benefit
- getYtdBenefitAmountsFromDifferentCompany - Get year-to-date benefit amounts from a different company
- createYtdBenefitAmountsFromDifferentCompany - Create year-to-date benefit amounts from a different company
employeeEmployments
- createTermination - Create an employee termination
- getTerminations - Get terminations for an employee
- deleteTermination - Delete an employee termination
- updateTermination - Update an employee termination
- createRehire - Create an employee rehire
- rehire - Update an employee rehire
- getRehire - Get an employee rehire
- deleteRehire - Delete an employee rehire
- getHistory - Get employment history for an employee
employeeForms
- generateW2 - Generate a W2 form DEMO
- list - Get all employee forms
- get - Get an employee form
- getPdf - Get the employee form pdf
- sign - Sign an employee form
employeePaymentMethod
- create - Create an employee bank account
- deleteBankAccount - Delete an employee bank account
- updateBankAccount - Update an employee bank account
- get - Get an employee's payment method
- update - Update an employee's payment method
employeePaymentMethods
- getBankAccounts - Get all employee bank accounts
employees
- list - Get employees of a company
- create - Create an employee
- getV1CompaniesCompanyIdEmployeesPaymentDetails - Get employee payment details for a company
- createHistorical - Create a historical employee
- get - Get an employee
- update - Update an employee.
- delete - Delete an onboarding employee
- getCustomFields - Get an employee's custom fields
- updateOnboardingDocumentsConfig - Update an employee's onboarding documents config
- getOnboardingStatus - Get the employee's onboarding status
- updateOnboardingStatus - Update the employee's onboarding status
- getTimeOffActivities - Get employee time off activities
employeeTaxSetup
- getFederalTaxes - Get an employee's federal taxes
- updateFederalTaxes - Update an employee's federal taxes
- getStateTaxes - Get an employee's state taxes
- updateStateTaxes - Update an employee's state taxes
events
- get - Get all events
externalPayrolls
- create - Create a new external payroll for a company
- get - Get external payrolls for a company
- retrieve - Get an external payroll
- delete - Delete an external payroll
- update - Update an external payroll
- calculateTaxes - Get tax suggestions for an external payroll
- listTaxLiabilities - Get tax liabilities
- updateTaxLiabilities - Update tax liabilities
- finalizeTaxLiabilities - Finalize tax liabilities options and convert into processed payrolls
federalTaxDetails
flows
- create - Create a flow
garnishments
- create - Create a garnishment
- list - Get garnishments for an employee
- get - Get a garnishment
- update - Update a garnishment
- getChildSupportData - Get child support garnishment data
generatedDocuments
- get - Get a generated document
historicalEmployees
- update - Update a historical employee
holidayPayPolicies
- get - Get a company's holiday pay policy
- create - Create a holiday pay policy for a company
- update - Update a company's holiday pay policy
- delete - Delete a company's holiday pay policy
- addEmployees - Add employees to a company's holiday pay policy
- removeEmployees - Remove employees from a company's holiday pay policy
i9Verification
- getAuthorization - Get an employee's I-9 authorization
- update - Create or update an employee's I-9 authorization
- getDocumentOptions - Get an employee's I-9 verification document options
- getDocuments - Get an employee's I-9 verification documents
- createDocuments - Create an employee's I-9 authorization verification documents
- deleteDocument - Delete an employee's I-9 verification document
- employerSign - Employer sign an employee's Form I-9
industrySelection
informationRequests
- getInformationRequests - Get all information requests for a company
introspection
- getInfo - Get info about the current access token
- refreshToken - Refresh access token
invoices
- get - Retrieve invoicing data for companies
jobsAndCompensations
- createJob - Create a job
- getJobs - Get jobs for an employee
- getJob - Get a job
- update - Update a job
- delete - Delete an individual job
- getCompensations - Get compensations for a job
- createCompensation - Create a compensation
- getCompensation - Get a compensation
- updateCompensation - Update a compensation
- deleteCompensation - Delete a compensation
locations
- create - Create a company location
- get - Get company locations
- retrieve - Get a location
- update - Update a location
- getMinimumWages - Get minimum wages for a location
notifications
- getDetails - Get a notification's details
- getCompanyNotifications - Get notifications for company
paymentConfigs
payrolls
- createOffCycle - Create an off-cycle payroll
- list - Get all payrolls for a company
- getApprovedReversals - Get approved payroll reversals
- get - Get a single payroll
- update - Update a payroll by ID
- delete - Delete a payroll
- prepare - Prepare a payroll for update
- getReceipt - Get a single payroll receipt
- getBlockers - Get all payroll blockers for a company
- skip - Skip a payroll
- calculateGrossUp - Calculate gross up
- calculate - Calculate a payroll
- submit - Submit payroll
- cancel - Cancel a payroll
- getPayStub - Get an employee pay stub (pdf)
- getPayStubs - Get an employee's pay stubs
- generatePrintableChecks - Generate printable payroll checks (pdf)
paySchedules
- create - Create a new pay schedule
- getAll - Get the pay schedules for a company
- getPreview - Preview pay schedule dates
- get - Get a pay schedule
- update - Update a pay schedule
- getPayPeriods - Get pay periods for a company
- getUnprocessedTerminationPeriods - Get termination pay periods for a company
- getAssignments - Get pay schedule assignments for a company
- previewAssignment - Preview pay schedule assignments for a company
- assign - Assign pay schedules for a company
recoveryCases
reports
- createCustom - Create a custom report
- postPayrollsPayrollUuidReportsGeneralLedger - Create a general ledger report
- getReportsRequestUuid - Get a report
- getTemplate - Get a report template
signatories
- create - Create a signatory
- list - Get all company signatories
- invite - Invite a signatory
- update - Update a signatory
- delete - Delete a signatory
taxRequirements
- get - Get State Tax Requirements
- updateState - Update State Tax Requirements
- getAll - Get All Tax Requirement States
timeOffPolicies
- calculateAccruingTimeOffHours - Calculate accruing time off hours
- get - Get a time off policy
- update - Update a time off policy
- getAll - Get all time off policies
- create - Create a time off policy
- addEmployees - Add employees to a time off policy
- removeEmployees - Remove employees from a time off policy
- updateBalance - Update employee time off hour balances
- deactivate - Deactivate a time off policy
webhooks
- createSubscription - Create a webhook subscription
- listSubscriptions - List webhook subscriptions
- updateSubscription - Update a webhook subscription
- getSubscription - Get a webhook subscription
- deleteSubscription - Delete a webhook subscription
- verify - Verify the webhook subscription
- requestVerificationToken - Request the webhook subscription verification_token
wireInRequests
- get - Get a single Wire In Request
- submit - Submit a wire in request
- list - Get all Wire In Requests for a company
Standalone functions
All the methods listed above are available as standalone functions. These functions are ideal for use in applications running in the browser, serverless runtimes or other environments where application bundle size is a primary concern. When using a bundler to build your application, all unused functionality will be either excluded from the final bundle or tree-shaken away.
To read more about standalone functions, check FUNCTIONS.md.
achTransactionsGetAll
- Get all ACH transactions for a companybankAccountsCreate
- Create a company bank accountbankAccountsCreateFromPlaidToken
- Create a bank account from a plaid processor tokenbankAccountsGet
- Get all company bank accountsbankAccountsVerify
- Verify a company bank accountcompaniesAcceptTermsOfService
- Accept terms of service for a company usercompaniesCreateAdmin
- Create an admin for the companycompaniesCreatePartnerManaged
- Create a partner managed companycompaniesFinishOnboarding
- Finish company onboardingcompaniesGet
- Get a companycompaniesGetCustomFields
- Get the custom fields of a companycompaniesGetOnboardingStatus
- Get the company's onboarding statuscompaniesListAdmins
- Get all the admins at a companycompaniesMigrate
- Migrate company to embedded payrollcompaniesRetrieveTermsOfService
- Retrieve terms of service status for a company usercompaniesSuspensionsGet
- Get suspensions for this companycompaniesSuspensionsSuspend
- Suspend a company's accountcompaniesUpdate
- Update a companycompanyAttachmentGetDownloadUrl
- Get a temporary url to download the Company Attachment filecompanyAttachmentsCreate
- Create Company Attachment and Upload FilecompanyAttachmentsGetDetails
- Get Company Attachment DetailscompanyAttachmentsGetList
- Get List of Company AttachmentscompanyBenefitsCreate
- Create a company benefitcompanyBenefitsDelete
- Delete a company benefitcompanyBenefitsGet
- Get a company benefitcompanyBenefitsGetAll
- Get all benefits supported by GustocompanyBenefitsGetEmployeeBenefits
- Get all employee benefits for a company benefitcompanyBenefitsGetRequirements
- Get benefit fields requirements by IDcompanyBenefitsGetSummary
- Get company benefit summary by company benefit id.companyBenefitsGetSupported
- Get a supported benefit by IDcompanyBenefitsList
- Get benefits for a companycompanyBenefitsUpdate
- Update a company benefitcompanyBenefitsUpdateEmployeeBenefits
- Bulk update employee benefits for a company benefitcompanyFormsGet
- Get a company formcompanyFormsGetAll
- Get all company formscompanyFormsGetPdf
- Get a company form pdfcompanyFormsSign
- Sign a company formcontractorDocumentsGet
- Get a contractor documentcontractorDocumentsGetAll
- Get all contractor documentscontractorDocumentsGetPdf
- Get the contractor document pdfcontractorDocumentsSign
- Sign a contractor documentcontractorFormsGenerate1099
- Generate a 1099 form DEMOcontractorFormsGet
- Get a contractor formcontractorFormsGetPdf
- Get the contractor form pdfcontractorFormsList
- Get all contractor formscontractorPaymentGroupsCreate
- Create a contractor payment groupcontractorPaymentGroupsDelete
- Cancel a contractor payment groupcontractorPaymentGroupsFund
- Fund a contractor payment group DEMOcontractorPaymentGroupsGet
- Fetch a contractor payment groupcontractorPaymentGroupsGetList
- Get contractor payment groups for a companycontractorPaymentGroupsPreview
- Preview a contractor payment groupcontractorPaymentMethodGet
- Get a contractor's payment methodcontractorPaymentMethodGetBankAccounts
- Get all contractor bank accountscontractorPaymentMethodsCreateBankAccount
- Create a contractor bank accountcontractorPaymentMethodUpdate
- Update a contractor's payment methodcontractorPaymentsCreate
- Create a contractor paymentcontractorPaymentsDelete
- Cancel a contractor paymentcontractorPaymentsFund
- Fund a contractor payment DEMOcontractorPaymentsGet
- Get a single contractor paymentcontractorPaymentsGetReceipt
- Get a single contractor payment receiptcontractorPaymentsList
- Get contractor payments for a companycontractorsCreate
- Create a contractorcontractorsDelete
- Delete a contractorcontractorsGet
- Get a contractorcontractorsGetAddress
- Get a contractor addresscontractorsGetOnboardingStatus
- Get the contractor's onboarding statuscontractorsGetV1CompaniesCompanyIdContractorsPaymentDetails
- List contractor payment detailscontractorsList
- Get contractors of a companycontractorsUpdate
- Update a contractorcontractorsUpdateAddress
- Update a contractor's addresscontractorsUpdateOnboardingStatus
- Change the contractor's onboarding statusdepartmentsAddPeople
- Add people to a departmentdepartmentsCreate
- Create a departmentdepartmentsDelete
- Delete a departmentdepartmentsGet
- Get a departmentdepartmentsGetAll
- Get all departments of a companydepartmentsRemovePeople
- Remove people from a departmentdepartmentsUpdate
- Update a departmentearningTypesCreate
- Create a custom earning typeearningTypesDelete
- Deactivate an earning typeearningTypesList
- Get all earning types for a companyearningTypesUpdate
- Update an earning typeemployeeAddressesCreate
- Create an employee's home addressemployeeAddressesCreateWorkAddress
- Create an employee work addressemployeeAddressesDelete
- Delete an employee's home addressemployeeAddressesDeleteWorkAddress
- Delete an employee's work addressemployeeAddressesGet
- Get an employee's home addressesemployeeAddressesGetWorkAddresses
- Get an employee's work addressesemployeeAddressesRetrieveHomeAddress
- Get an employee's home addressemployeeAddressesRetrieveWorkAddress
- Get an employee work addressemployeeAddressesUpdate
- Update an employee's home addressemployeeAddressesUpdateWorkAddress
- Update an employee work addressemployeeBenefitsCreate
- Create an employee benefitemployeeBenefitsCreateYtdBenefitAmountsFromDifferentCompany
- Create year-to-date benefit amounts from a different companyemployeeBenefitsDelete
- Delete an employee benefitemployeeBenefitsGet
- Get all benefits for an employeeemployeeBenefitsGetYtdBenefitAmountsFromDifferentCompany
- Get year-to-date benefit amounts from a different companyemployeeBenefitsRetrieve
- Get an employee benefitemployeeBenefitsUpdate
- Update an employee benefitemployeeEmploymentsCreateRehire
- Create an employee rehireemployeeEmploymentsCreateTermination
- Create an employee terminationemployeeEmploymentsDeleteRehire
- Delete an employee rehireemployeeEmploymentsDeleteTermination
- Delete an employee terminationemployeeEmploymentsGetHistory
- Get employment history for an employeeemployeeEmploymentsGetRehire
- Get an employee rehireemployeeEmploymentsGetTerminations
- Get terminations for an employeeemployeeEmploymentsRehire
- Update an employee rehireemployeeEmploymentsUpdateTermination
- Update an employee terminationemployeeFormsGenerateW2
- Generate a W2 form DEMOemployeeFormsGet
- Get an employee formemployeeFormsGetPdf
- Get the employee form pdfemployeeFormsList
- Get all employee formsemployeeFormsSign
- Sign an employee formemployeePaymentMethodCreate
- Create an employee bank accountemployeePaymentMethodDeleteBankAccount
- Delete an employee bank accountemployeePaymentMethodGet
- Get an employee's payment methodemployeePaymentMethodsGetBankAccounts
- Get all employee bank accountsemployeePaymentMethodUpdate
- Update an employee's payment methodemployeePaymentMethodUpdateBankAccount
- Update an employee bank accountemployeesCreate
- Create an employeeemployeesCreateHistorical
- Create a historical employeeemployeesDelete
- Delete an onboarding employeeemployeesGet
- Get an employeeemployeesGetCustomFields
- Get an employee's custom fieldsemployeesGetOnboardingStatus
- Get the employee's onboarding statusemployeesGetTimeOffActivities
- Get employee time off activitiesemployeesGetV1CompaniesCompanyIdEmployeesPaymentDetails
- Get employee payment details for a companyemployeesList
- Get employees of a companyemployeesUpdate
- Update an employee.employeesUpdateOnboardingDocumentsConfig
- Update an employee's onboarding documents configemployeesUpdateOnboardingStatus
- Update the employee's onboarding statusemployeeTaxSetupGetFederalTaxes
- Get an employee's federal taxesemployeeTaxSetupGetStateTaxes
- Get an employee's state taxesemployeeTaxSetupUpdateFederalTaxes
- Update an employee's federal taxesemployeeTaxSetupUpdateStateTaxes
- Update an employee's state taxeseventsGet
- Get all eventsexternalPayrollsCalculateTaxes
- Get tax suggestions for an external payrollexternalPayrollsCreate
- Create a new external payroll for a companyexternalPayrollsDelete
- Delete an external payrollexternalPayrollsFinalizeTaxLiabilities
- Finalize tax liabilities options and convert into processed payrollsexternalPayrollsGet
- Get external payrolls for a companyexternalPayrollsListTaxLiabilities
- Get tax liabilitiesexternalPayrollsRetrieve
- Get an external payrollexternalPayrollsUpdate
- Update an external payrollexternalPayrollsUpdateTaxLiabilities
- Update tax liabilitiesfederalTaxDetailsGet
- Get Federal Tax DetailsfederalTaxDetailsUpdate
- Update Federal Tax DetailsflowsCreate
- Create a flowgarnishmentsCreate
- Create a garnishmentgarnishmentsGet
- Get a garnishmentgarnishmentsGetChildSupportData
- Get child support garnishment datagarnishmentsList
- Get garnishments for an employeegarnishmentsUpdate
- Update a garnishmentgeneratedDocumentsGet
- Get a generated documenthistoricalEmployeesUpdate
- Update a historical employeeholidayPayPoliciesAddEmployees
- Add employees to a company's holiday pay policyholidayPayPoliciesCreate
- Create a holiday pay policy for a companyholidayPayPoliciesDelete
- Delete a company's holiday pay policyholidayPayPoliciesGet
- Get a company's holiday pay policyholidayPayPoliciesRemoveEmployees
- Remove employees from a company's holiday pay policyholidayPayPoliciesUpdate
- Update a company's holiday pay policyi9VerificationCreateDocuments
- Create an employee's I-9 authorization verification documentsi9VerificationDeleteDocument
- Delete an employee's I-9 verification documenti9VerificationEmployerSign
- Employer sign an employee's Form I-9i9VerificationGetAuthorization
- Get an employee's I-9 authorizationi9VerificationGetDocumentOptions
- Get an employee's I-9 verification document optionsi9VerificationGetDocuments
- Get an employee's I-9 verification documentsi9VerificationUpdate
- Create or update an employee's I-9 authorizationindustrySelectionGet
- Get a company industry selectionindustrySelectionUpdate
- Update a company industry selectioninformationRequestsGetInformationRequests
- Get all information requests for a companyintrospectionGetInfo
- Get info about the current access tokenintrospectionRefreshToken
- Refresh access tokeninvoicesGet
- Retrieve invoicing data for companiesjobsAndCompensationsCreateCompensation
- Create a compensationjobsAndCompensationsCreateJob
- Create a jobjobsAndCompensationsDelete
- Delete an individual jobjobsAndCompensationsDeleteCompensation
- Delete a compensationjobsAndCompensationsGetCompensation
- Get a compensationjobsAndCompensationsGetCompensations
- Get compensations for a jobjobsAndCompensationsGetJob
- Get a jobjobsAndCompensationsGetJobs
- Get jobs for an employeejobsAndCompensationsUpdate
- Update a jobjobsAndCompensationsUpdateCompensation
- Update a compensationlocationsCreate
- Create a company locationlocationsGet
- Get company locationslocationsGetMinimumWages
- Get minimum wages for a locationlocationsRetrieve
- Get a locationlocationsUpdate
- Update a locationnotificationsGetCompanyNotifications
- Get notifications for companynotificationsGetDetails
- Get a notification's detailspaymentConfigsGet
- Get a company's payment configspaymentConfigsUpdate
- Update a company's payment configspayrollsCalculate
- Calculate a payrollpayrollsCalculateGrossUp
- Calculate gross uppayrollsCancel
- Cancel a payrollpayrollsCreateOffCycle
- Create an off-cycle payrollpayrollsDelete
- Delete a payrollpayrollsGeneratePrintableChecks
- Generate printable payroll checks (pdf)payrollsGet
- Get a single payrollpayrollsGetApprovedReversals
- Get approved payroll reversalspayrollsGetBlockers
- Get all payroll blockers for a companypayrollsGetPayStub
- Get an employee pay stub (pdf)payrollsGetPayStubs
- Get an employee's pay stubspayrollsGetReceipt
- Get a single payroll receiptpayrollsList
- Get all payrolls for a companypayrollsPrepare
- Prepare a payroll for updatepayrollsSkip
- Skip a payrollpayrollsSubmit
- Submit payrollpayrollsUpdate
- Update a payroll by IDpaySchedulesAssign
- Assign pay schedules for a companypaySchedulesCreate
- Create a new pay schedulepaySchedulesGet
- Get a pay schedulepaySchedulesGetAll
- Get the pay schedules for a companypaySchedulesGetAssignments
- Get pay schedule assignments for a companypaySchedulesGetPayPeriods
- Get pay periods for a companypaySchedulesGetPreview
- Preview pay schedule datespaySchedulesGetUnprocessedTerminationPeriods
- Get termination pay periods for a companypaySchedulesPreviewAssignment
- Preview pay schedule assignments for a companypaySchedulesUpdate
- Update a pay schedulerecoveryCasesGet
- Get all recovery cases for a companyrecoveryCasesRedebit
- Initiate a redebit for a recovery casereportsCreateCustom
- Create a custom reportreportsGetReportsRequestUuid
- Get a reportreportsGetTemplate
- Get a report templatereportsPostPayrollsPayrollUuidReportsGeneralLedger
- Create a general ledger reportsignatoriesCreate
- Create a signatorysignatoriesDelete
- Delete a signatorysignatoriesInvite
- Invite a signatorysignatoriesList
- Get all company signatoriessignatoriesUpdate
- Update a signatorytaxRequirementsGet
- Get State Tax RequirementstaxRequirementsGetAll
- Get All Tax Requirement StatestaxRequirementsUpdateState
- Update State Tax RequirementstimeOffPoliciesAddEmployees
- Add employees to a time off policytimeOffPoliciesCalculateAccruingTimeOffHours
- Calculate accruing time off hourstimeOffPoliciesCreate
- Create a time off policytimeOffPoliciesDeactivate
- Deactivate a time off policytimeOffPoliciesGet
- Get a time off policytimeOffPoliciesGetAll
- Get all time off policiestimeOffPoliciesRemoveEmployees
- Remove employees from a time off policytimeOffPoliciesUpdate
- Update a time off policytimeOffPoliciesUpdateBalance
- Update employee time off hour balanceswebhooksCreateSubscription
- Create a webhook subscriptionwebhooksDeleteSubscription
- Delete a webhook subscriptionwebhooksGetSubscription
- Get a webhook subscriptionwebhooksListSubscriptions
- List webhook subscriptionswebhooksRequestVerificationToken
- Request the webhook subscription verification_tokenwebhooksUpdateSubscription
- Update a webhook subscriptionwebhooksVerify
- Verify the webhook subscriptionwireInRequestsGet
- Get a single Wire In RequestwireInRequestsList
- Get all Wire In Requests for a companywireInRequestsSubmit
- Submit a wire in request
React hooks with TanStack Query
React hooks built on TanStack Query are included in this SDK. These hooks and the utility functions provided alongside them can be used to build rich applications that pull data from the API using one of the most popular asynchronous state management library.
To learn about this feature and how to get started, check REACT_QUERY.md.
This feature is currently in preview and is subject to breaking changes within the current major version of the SDK as we gather user feedback on it.
useAchTransactionsGetAll
- Get all ACH transactions for a companyuseBankAccountsCreateFromPlaidTokenMutation
- Create a bank account from a plaid processor tokenuseBankAccountsCreateMutation
- Create a company bank accountuseBankAccountsGet
- Get all company bank accountsuseBankAccountsVerifyMutation
- Verify a company bank accountuseCompaniesAcceptTermsOfServiceMutation
- Accept terms of service for a company useruseCompaniesCreateAdminMutation
- Create an admin for the companyuseCompaniesCreatePartnerManagedMutation
- Create a partner managed companyuseCompaniesFinishOnboardingMutation
- Finish company onboardinguseCompaniesGet
- Get a companyuseCompaniesGetCustomFields
- Get the custom fields of a companyuseCompaniesGetOnboardingStatus
- Get the company's onboarding statususeCompaniesListAdmins
- Get all the admins at a companyuseCompaniesMigrateMutation
- Migrate company to embedded payrolluseCompaniesRetrieveTermsOfServiceMutation
- Retrieve terms of service status for a company useruseCompaniesSuspensionsGet
- Get suspensions for this companyuseCompaniesSuspensionsSuspendMutation
- Suspend a company's accountuseCompaniesUpdateMutation
- Update a companyuseCompanyAttachmentGetDownloadUrl
- Get a temporary url to download the Company Attachment fileuseCompanyAttachmentsCreateMutation
- Create Company Attachment and Upload FileuseCompanyAttachmentsGetDetails
- Get Company Attachment DetailsuseCompanyAttachmentsGetList
- Get List of Company AttachmentsuseCompanyBenefitsCreateMutation
- Create a company benefituseCompanyBenefitsDeleteMutation
- Delete a company benefituseCompanyBenefitsGet
- Get a company benefituseCompanyBenefitsGetAll
- Get all benefits supported by GustouseCompanyBenefitsGetEmployeeBenefits
4 months ago
4 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
2 years ago
2 years ago