npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gusto/embedded-api

v0.11.11

Published

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *gusto-embedded* API.

Downloads

7,976

Readme

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
# Install optional peer dependencies if you plan to use React hooks
yarn add @tanstack/react-query react react-dom

[!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: "[email protected]",
        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

Companies

Companies.Suspensions

  • get - Get suspensions for this company
  • suspend - Suspend a company's account

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

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

ContractorPaymentMethod

  • getBankAccounts - Get all contractor bank accounts
  • get - Get a contractor's payment method
  • update - Update a contractor's payment method

ContractorPaymentMethods

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

Departments

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

EmployeeBenefits

EmployeeEmployments

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

EmployeePaymentMethods

Employees

EmployeeTaxSetup

Events

  • get - Get all events

ExternalPayrolls

FederalTaxDetails

  • get - Get Federal Tax Details
  • update - Update Federal Tax Details

Flows

Garnishments

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

IndustrySelection

  • get - Get a company industry selection
  • update - Update a company industry selection

InformationRequests

Introspection

Invoices

  • get - Retrieve invoicing data for companies

JobsAndCompensations

Locations

Notifications

PaymentConfigs

  • get - Get a company's payment configs
  • update - Update a company's payment configs

Payrolls

PaySchedules

PeopleBatches

RecoveryCases

  • get - Get all recovery cases for a company
  • redebit - Initiate a redebit for a recovery case

Reimbursements

Reports

SalaryEstimates

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

Webhooks

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.