Onboarding a company
Get onboarding status returns readiness.missing, a code for each gap. Submit when readiness.complete is true. The readiness check
Everee Payroll Infrastructure lets you offer full-stack embedded payroll. It's managed: Everee handles most of the compliance and the payroll support workflows, so you don't have to become a payroll company.
Want to see the onboarding experience before you read the API? Walk the Company Signup Simulator: a working signup flow over a mocked API, with the calls, status and webhooks shown beside it. Then walk the Payroll Run Simulator: a payroll run from choosing the pay date to paid, on a simulated clock.
This guide prompts your coding agent directly. Copy the starting prompt into your agent, or just point it at this guide. It'll know how to get started.
GOAL
Plan, then build, a payroll workflow and UX layer inside my platform on top of Everee Payroll Infrastructure ('Payroll Infra'), which offers full-stack embedded payroll that Everee manages. My customers must never leave my product, except for Everee's embedded contract-signing screen. Everee runs payroll, taxes and filings behind the API.
READ FIRST (each page also has a Markdown version at the same URL with .md added; the docs index is https://developer.everee.com/llms.txt)
- This page: you are reading the full guide. The Developer Center follows seven areas: 1 Get your keys, 2 Onboard a company, 3 Set up the company, 4 Manage workers, 5 Run payroll, 6 After payroll, 7 Support and operate. This guide's six sections cover them as: 1 Onboard a company (and keys), 2 Set up the organization, 3 Add and maintain workers, 4 Worker payroll settings (part of managing workers), 5 Run payroll, 6 Retrieve financial data (part of after payroll). Support and operate is covered in the Developer Center page support-and-operations. The six sections are: 1 Onboard a company, 2 Set up the organization, 3 Add and maintain workers, 4 Worker payroll settings, 5 Run payroll, 6 Retrieve financial data. Each section ends with a prompt for that area.
- https://developer.everee.com/docs/payroll-infrastructure
- https://developer.everee.com/docs/introduction
- https://developer.everee.com/docs/running-payroll
- https://developer.everee.com/reference/company-onboarding-api-guide
- https://developer.everee.com/docs/authentication-api-tokens
- https://developer.everee.com/docs/events-overview
- Reference implementation for area 5: the Payroll Run Simulator at https://files.everee.com/simulators/payroll-run.html. It takes a payroll run from choosing the pay date to paid, over a mocked API and a simulated clock, with the live run, call log, signed webhooks and code for each call next to it.
- Reference implementation for area 1: the Company Signup Simulator at https://files.everee.com/simulators/company-signup.html. It is a working signup flow over a mocked API, with the live status, call log, signed webhooks and code for each call next to it. Open it, walk it once, and use it as the model for the screens and the integration behind them.
BUILD
- Step 1. Inspect my codebase and ask me what you can't see: language and framework, how I model customers, companies and workers, my job and webhook infrastructure, my secrets store, my UI framework, and which of the six areas I want first.
- Ask me these decisions, one group at a time, and write my answers into the plan: (1) Which legal entities (EINs) will run payroll, and do they need separate company instances? Each EIN is its own company with its own key and tenant ID. (2) Who signs the company's agreements, and who is the control person and each owner of 25% or more? (Needed for onboarding and identity verification.) (3) How are workers paid today: employees, contractors, or both? Hourly, salaried, or per-task? Which pay codes do you need beyond the defaults? (4) Which payroll calendar fits each customer (weekly, bi-weekly, semi-monthly, monthly) and when do pay periods start? (5) Which work locations exist, and where does each worker legally work? (The address decides tax jurisdictions.) (6) Which benefits, retirement plans and garnishments do you need to sync, and from which system? (7) Who approves payroll in your product, and what is your internal cutoff before each run's approvalDeadline? (8) Where should finance data go: a GL integration, a CSV export, or both? Which GL accounts map to which Everee transaction types? (9) Which framework, job runner, secrets store and webhook ingress do you already have?
- Data model: for each Everee ID or key, decide where it lives in my system. Use this map: Company: id (this is also the tenant ID you send in x-everee-tenant-id), company API key (secret, shown once), key IDs, webhook endpoint IDs and signing keys (secret, shown once) -> your customer or company record. Partner: partner API keys (secret): a test key and a production key -> your secrets store, not a table. Worker: workerId (Everee) and externalWorkerId (yours) -> your worker or employee record. Work location: workLocationId, and your own id as externalId -> your site or location record. Payroll calendar, approval group: payrollCalendarId, approvalGroupId -> your pay schedule and team records. Cost center, pay code: cost center key, pay code apiKey -> your own client, job or earning type. Payable: your externalId (the only idempotency key), and the paymentId in payment data -> your earning or bonus record. Funding and reports: fundingId, report run id -> your payroll run or ledger batch record. Webhook delivery: the event id from the envelope -> a processed-events table, for de-duplication.
- Step 2. Write an implementation plan in a file for me to review BEFORE writing code: data model changes (store Everee IDs next to mine), the screens you will add for each area, the API calls behind each screen, the webhooks you will handle, background jobs, and a test plan. Order the work by dependency: foundation, then areas 1 to 6.
- Step 3. After I approve, implement one area at a time using that section's prompt, verifying each against a sandbox instance before the next.
RULES
- Everee is the system of record for pay, taxes and filings. Display what the API returns. Never recompute tax, net pay or deductions yourself.
- Payroll runs are the only way to pay workers: add pay to a run with POST /payroll-runs/{id}/items, then calculate and approve it. Read every deadline from the run.
- Build every flow as a loop around reads that tell you what is left: make a change, read the state again (readiness.missing for onboarding, a run's blockers and the requirements behind them for payroll, a funding's status and resolutionInstructions), and act on what is left. Never hard-code the steps: codes appear and disappear. Map each code you know to a screen, and show resolutionInstructions for any you don't. Use webhooks (company-onboarding.status-changed, requirement.created, payroll-run.status-changed) to know when to read again, not instead of the read. A requirement does NOT open when a worker is created or changed: it opens only when a payroll calculation or a returned deposit finds the problem, so calculate runs early.
- Base URL https://api.everee.com/integration/v1. The partner key is the HTTP Basic user name for the Company Onboarding API: the test key (zk_test_...) creates and reaches only Sandbox companies and the production key (zk_prod_...), issued after Everee approves the integration, only Production companies. A company in the other environment returns 404. The company key (tsk_...) is the HTTP Basic user name for everything else, plus an x-everee-tenant-id header holding the company's id.
- Keep every key on the server. Everee rejects browser requests. Read keys from a secrets store, never log them, never hard-code them.
- Rate limit: 100 operations per 5 seconds per key (see the RateLimit-Policy header). Back off on 429.
- Only payables and payroll run items have an idempotency key (externalId). Make other creates safe yourself: look first, keep the Everee ID next to your own record.
- Test against a sandbox instance (tsk_test_... keys) before production. Nothing in a URL selects the environment; the key does. Sandbox company creation is limited (25 alive at once, 50 created in any rolling 7 days; evaluation access before the agreement is signed: 1 and 2, 14 days, companies created without an agreement), and each Sandbox company is limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours: a refused request returns 429 with when the next can be created, and a sandbox company you no longer need can be retired.
DONE WHEN
- The plan file exists and I approved it.
- Each area works end to end against a sandbox instance, with tests, before you start the next.
If a fact you need isn't in the docs, ask me. Don't guess endpoint paths, field names or business rules.Payroll Infrastructure is Everee's payroll engine, offered as an API for platforms. Your platform creates companies, loads workers and settings, and sends payroll items each cycle. Everee calculates pay, taxes, and withholdings, pays workers, and files and pays taxes. You read the results back as structured data, a balanced payroll GL journal, and reports.
Who it's for. Platforms that already hold the workforce data and the customer relationship, such as workforce management, staffing, scheduling, compensation software, and business services. Your customers keep working in your product, and payroll becomes a sticky, valuable feature set. Everee runs behind your platform powering payroll and compliance.
Managed, so you build no tax ops. Everee handles tax compliance. As the reporting agent, it keeps up with tax rule updates, and automatically runs payroll tax filings for each company, quarterly and at year-end. You can list a worker's year-end W-2 or 1099 (worker files), the company tax files Everee has published, and request the 940 and 941 detail reports.
Payroll becomes a product family inside your platform instead of an integration your customers set up elsewhere:
Five sample screens from the workflows below. They are illustrative: the prose guides the full workflow, and these show the kind of human-facing experience you build.
Payroll Infrastructure is built around reads that tell you what's still outstanding, not a fixed sequence of calls you have to get right.
Get onboarding status returns readiness.missing, a code for each gap. Submit when readiness.complete is true. The readiness check
A run's blockers, and the requirements behind them, each say what's wrong and how to fix it, in resolutionInstructions. A requirement opens when a calculation or a returned deposit finds a problem, so calculate runs early to find them well before the approval deadline.
A run's funding that needs action has NEEDS_ACTION and resolutionInstructions.
company-onboarding.status-changed, requirement.created and payroll-run.status-changed tell you something changed. They don't replace the read.Building with a coding agent? Give it this section first: build your flows as loops around these reads. It is also part of every prompt in this guide. The same section is in the Developer Center.
Every integration is a loop. Each area has its own APIs, and the output of one is the input to the next. Webhooks tell you when something happens along the way.
Create the customer, collect what Everee needs, sign in an embedded screen, submit for review.
Work locations, payroll calendars, approval groups, cost centers and pay codes.
Complete worker records, kept in sync with your records.
Deductions, leave types and policies, balances and garnishments.
Add pay to a payroll run, calculate it, fix blockers, approve it and follow the money.
Payment data, payroll cost, the journal with GL codes, and reports.
| Area | Your platform does | Everee does | You hear about it |
|---|---|---|---|
| 1 Onboard a company | Sends company details, people and documents; shows the signing screen | Verifies identities, reviews the company, countersigns | company-onboarding.* |
| 2 Set up | Creates locations, calendars, approval groups, cost centers, pay codes | Applies them to tax and pay calculation | — |
| 3 Workers | Creates complete worker records, keeps them current | Verifies taxpayer identifiers and applies tax settings | worker.created |
| 4 Settings | Syncs deductions, leave policies and enrollments | Applies them every payroll | — |
| 5 Run payroll | Adds pay to each payroll run, fixes blockers, and approves it through the API | Calculates, funds and pays | payroll-run.status-changed |
| 6 Reporting | Pulls payment data, the journal and reports | Publishes itemized results | report.completed |
Ten steps from the partner agreement to the first filing, and who owns each. Durations differ in every situation, so none are given.
The order of the steps, and who owns each one. Boxes with a heavier border gate the steps after them.
tsk_test_… keys.net-payout.paid arrives. Pull payment data, post the journal, run reports.Create a customer as a draft company, collect what Everee needs, sign inside your product, submit for review, and follow it to go-live.
The Company Onboarding API creates a client company and takes it through onboarding without sending anyone to Everee's own sign-up. You collect the information in your product, the company's signer signs in an embedded screen, Everee reviews the result, and webhooks tell you the outcome. These steps mirror Everee's own self-signup, so you can build the same experience.
Capture the company's details in your own screens, then show Everee's contract signing inside your page. The prose below covers the full workflow; this is the kind of experience you build.
Copy this into your coding agent, or point the agent at this page and it can read the prompt directly. It names the docs to read first, the operations to call, the rules that matter for this area, and the tests to write. Open as Markdown
GOAL
Build the screens and server logic that onboard a customer as an Everee company from inside my product: capture details, send documents and people, show Everee's embedded contract signing, submit for review, and track status through APPROVED to went-live.
READ FIRST (each page also has a Markdown version at the same URL with .md added; the docs index is https://developer.everee.com/llms.txt)
- https://developer.everee.com/docs/company-onboarding-overview
- https://developer.everee.com/reference/company-onboarding-api-guide
- https://developer.everee.com/docs/creating-and-completing-a-company
- https://developer.everee.com/docs/signing-the-agreements
- https://developer.everee.com/docs/company-onboarding-events
- https://developer.everee.com/docs/how-to-embed-components-guide
- https://developer.everee.com/reference/get-partner-company-status
- https://developer.everee.com/reference/create-partner-company-contract-session
- Reference implementation: the Company Signup Simulator at https://files.everee.com/simulators/company-signup.html. Walk it before you design the screens. Its developer pane shows each call, the live /status JSON, the signed webhooks and the code. Match its behavior, not its styling: your product's look comes from my UI framework.
BUILD
- POST https://api.everee.com/integration/v1/partner/companies with the legal name, EIN and primary contact. Save the returned company id, apiKey and webhookSigningKey immediately: they are shown once. The webhookUrl is my integration's configuration (one endpoint for the platform), so pass it from config and don't put it on a form.
- Wizard screens that fill the draft: company details and payroll profile, documents, taxes, control person, owners of 25% or more, and signer. Use GET /partner/companies/{id}/status after every change; its readiness codes say exactly what is missing.
- Some steps have no screen of their own because the integration does them: reporting the customer's agreement consent (only when the account uses an umbrella agreement) and the submit. Do them from the server at the point the status says they are due, and show the customer only what they need to act on.
- Lock-step: show the next screen only once the one before it is saved, and drive it from readiness.missing rather than from a fixed list, because Everee can add a requirement while the company is a draft (for example a business formation document).
- A signing screen: create a signing session (experience COMPANY_CONTRACT), show the returned URL in an iframe, handle the MESSAGE_PORT_REGISTERED, CONTRACT_SIGNED and DISMISS messages, and create a new session if one expires. The signer chooses the funding bank account inside that embedded screen, so never collect bank details yourself.
- Submit for review, then handle identity verification links and review requests that come back. On company-onboarding.status-changed to APPROVED, switch to using the company key.
- Payroll history, after submitting: create a session with POST https://api.everee.com/integration/v1/partner/companies/{id}/payroll-history/embedded-session right before showing it, open its url in an iframe, and on PAYROLL_HISTORY_DONE read GET /payroll-history to show the files and Everee's review of each. Answer a DOCUMENT_NEEDED request for PAYROLL_HISTORY by opening the component again; it can come after approval. A company that paid no one earlier in the go-live year declares it instead (PUT /payroll-history/declaration with a reason, or in the component); show NONE_DECLARED as waiting for Everee to confirm, not as done.
- Going live: send targetGoLiveDate (the first day of a pay period, tomorrow or later) with the payroll profile and offer only valid dates; after signing change it with PUT /go-live/target. Show goLive from the status: the target, Everee's goLiveDate, and outstanding in plain words. If outstanding lists TARGET_GO_LIVE_DATE, ask for a new date. If it lists TAX_SETUP, Everee's tax team is collecting tax information from the company's tax contact (taxContact on create, defaulting to the primary contact; the signer replaces it): send a phone number and tell the customer to expect the call. In Sandbox, Everee's post-approval steps run on their own (about 6 minutes to live, about 15 with payroll history); a payroll history file named changes-requested or a company document named information-needed takes the unhappy path. The company can run payroll on company-onboarding.went-live or goLive.live true.
OPERATIONS (all paths are under https://api.everee.com/integration/v1; each reference page, with .md added, lists its request and response fields)
- POST /partner/companies | operationId create-partner-company | https://developer.everee.com/reference/create-partner-company.md
- GET /partner/companies/{companyId} | operationId get-partner-company | https://developer.everee.com/reference/get-partner-company.md
- PATCH /partner/companies/{companyId} | operationId update-partner-company | https://developer.everee.com/reference/update-partner-company.md
- PATCH /partner/companies/{companyId}/payroll-profile | operationId update-partner-company-payroll-profile | https://developer.everee.com/reference/update-partner-company-payroll-profile.md
- GET /partner/companies/naics-codes | operationId list-partner-company-naics-codes | https://developer.everee.com/reference/list-partner-company-naics-codes.md
- POST /partner/companies/{companyId}/documents/{kind} | operationId upload-partner-company-document | https://developer.everee.com/reference/upload-partner-company-document.md
- GET /partner/companies/{companyId}/documents | operationId list-partner-company-documents | https://developer.everee.com/reference/list-partner-company-documents.md
- POST /partner/companies/{companyId}/payroll-history/embedded-session | operationId create-partner-company-payroll-history-session | https://developer.everee.com/reference/create-partner-company-payroll-history-session.md
- GET /partner/companies/{companyId}/payroll-history | operationId get-partner-company-payroll-history | https://developer.everee.com/reference/get-partner-company-payroll-history.md
- POST /partner/companies/{companyId}/payroll-history/files | operationId upload-partner-company-payroll-history-file | https://developer.everee.com/reference/upload-partner-company-payroll-history-file.md
- PUT /partner/companies/{companyId}/payroll-history/declaration | operationId declare-partner-company-no-payroll-history | https://developer.everee.com/reference/declare-partner-company-no-payroll-history.md
- PUT /partner/companies/files/year-to-date | operationId upload-partner-company-year-to-date-file | https://developer.everee.com/reference/upload-partner-company-year-to-date-file.md
- GET /partner/companies/{companyId}/go-live | operationId get-partner-company-go-live | https://developer.everee.com/reference/get-partner-company-go-live.md
- PUT /partner/companies/{companyId}/go-live/target | operationId set-partner-company-target-go-live | https://developer.everee.com/reference/set-partner-company-target-go-live.md
- PUT /partner/companies/{companyId}/files/certificate-of-authority | operationId upload-partner-company-certificate-of-authority | https://developer.everee.com/reference/upload-partner-company-certificate-of-authority.md
- PUT /partner/companies/{companyId}/control-person | operationId put-partner-company-control-person | https://developer.everee.com/reference/put-partner-company-control-person.md
- PUT /partner/companies/{companyId}/ownership-declaration | operationId put-partner-company-ownership-declaration | https://developer.everee.com/reference/put-partner-company-ownership-declaration.md
- POST /partner/companies/{companyId}/beneficial-owners | operationId add-partner-company-beneficial-owner | https://developer.everee.com/reference/add-partner-company-beneficial-owner.md
- PUT /partner/companies/{companyId}/signer | operationId put-partner-company-signer | https://developer.everee.com/reference/put-partner-company-signer.md
- PATCH /partner/companies/{companyId}/people/{personRef}/contact | operationId correct-partner-company-person-contact | https://developer.everee.com/reference/correct-partner-company-person-contact.md
- POST /partner/companies/{companyId}/people/{personRef}/identity-verification/resend | operationId resend-partner-company-identity-link | https://developer.everee.com/reference/resend-partner-company-identity-link.md
- PUT /partner/companies/{companyId}/agreement-consent | operationId put-partner-company-agreement-consent | https://developer.everee.com/reference/put-partner-company-agreement-consent.md
- PATCH /partner/companies/{companyId}/tax-setup | operationId update-partner-company-tax-setup | https://developer.everee.com/reference/update-partner-company-tax-setup.md
- GET /partner/companies/{companyId}/bank-account | operationId get-partner-company-bank-account | https://developer.everee.com/reference/get-partner-company-bank-account.md
- POST /partner/companies/{companyId}/contract/embedded-session | operationId create-partner-company-contract-session | https://developer.everee.com/reference/create-partner-company-contract-session.md
- GET /partner/companies/{companyId}/contract/documents/{documentType} | operationId get-partner-company-contract-document | https://developer.everee.com/reference/get-partner-company-contract-document.md
- GET /partner/companies/{companyId}/status | operationId get-partner-company-status | https://developer.everee.com/reference/get-partner-company-status.md
- POST /partner/companies/{companyId}/submit | operationId submit-partner-company | https://developer.everee.com/reference/submit-partner-company.md
- POST /partner/companies/{companyId}/withdraw | operationId withdraw-partner-company | https://developer.everee.com/reference/withdraw-partner-company.md
- GET /partner/companies/{companyId}/requests | operationId list-partner-company-requests | https://developer.everee.com/reference/list-partner-company-requests.md
- PUT /partner/companies/{companyId}/requests/{requestId}/file | operationId fulfill-partner-company-request-with-file | https://developer.everee.com/reference/fulfill-partner-company-request-with-file.md
- PUT /partner/companies/{companyId}/requests/{requestId} | operationId fulfill-partner-company-request-with-text | https://developer.everee.com/reference/fulfill-partner-company-request-with-text.md
RULES
- After signing the documents' data is locked: name, address, signer, owners, tax details and pricing return 409. Don't offer edit controls for them after signing.
- Sessions are single-use and expire in minutes. Create one when the user arrives, never earlier.
- Webhooks are nudges. Re-read /status to decide what to show.
- Build every flow as a loop around reads that tell you what is left: make a change, read the state again (readiness.missing for onboarding, a run's blockers and the requirements behind them for payroll, a funding's status and resolutionInstructions), and act on what is left. Never hard-code the steps: codes appear and disappear. Map each code you know to a screen, and show resolutionInstructions for any you don't. Use webhooks (company-onboarding.status-changed, requirement.created, payroll-run.status-changed) to know when to read again, not instead of the read. A requirement does NOT open when a worker is created or changed: it opens only when a payroll calculation or a returned deposit finds the problem, so calculate runs early.
- Base URL https://api.everee.com/integration/v1. The partner key is the HTTP Basic user name for the Company Onboarding API: the test key (zk_test_...) creates and reaches only Sandbox companies and the production key (zk_prod_...), issued after Everee approves the integration, only Production companies. A company in the other environment returns 404. The company key (tsk_...) is the HTTP Basic user name for everything else, plus an x-everee-tenant-id header holding the company's id.
- Keep every key on the server. Everee rejects browser requests. Read keys from a secrets store, never log them, never hard-code them.
- Rate limit: 100 operations per 5 seconds per key (see the RateLimit-Policy header). Back off on 429.
- Only payables and payroll run items have an idempotency key (externalId). Make other creates safe yourself: look first, keep the Everee ID next to your own record.
- Test against a sandbox instance (tsk_test_... keys) before production. Nothing in a URL selects the environment; the key does. Sandbox company creation is limited (25 alive at once, 50 created in any rolling 7 days; evaluation access before the agreement is signed: 1 and 2, 14 days, companies created without an agreement), and each Sandbox company is limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours: a refused request returns 429 with when the next can be created, and a sandbox company you no longer need can be retired.
DONE WHEN
- A sandbox company goes from DRAFT through signing to submitted, and the UI always reflects the readiness codes from /status.
- The company key and company id are stored encrypted, and a status-changed webhook updates the UI.
- These scenarios from the simulator behave the same in my build: a late requirement (Everee adds the formation document after the customer has filled the draft, and the customer uploads it before signing); an owner is added in response to a review request; an expired identity link is resent; a rejected document is replaced; and a declined company shows a generic message.
TESTS TO WRITE
- Every readiness code from /status renders the right prompt or screen.
- An expired signing session is replaced by a new one, and no session is created before the user arrives.
- After signing, the locked fields are read-only in the UI, and a 409 from the API is shown as an explanation.
- A company-onboarding.status-changed event for APPROVED switches the company to its company key, and a replayed event changes nothing.
- An approved company isn't treated as live: the product waits for company-onboarding.went-live (or goLive.live) before it offers payroll runs.
- The company key and webhook signing key are stored encrypted and are not logged.
If a fact you need isn't in the docs, ask me. Don't guess endpoint paths, field names or business rules.Everee never sees or sends your partner keys. A technical contact at your company claims each one, and Everee creates it at that moment and shows it once. You get a test key (zk_test_…) first, which creates and reaches only your Sandbox companies, and a production key (zk_prod_…) after Everee approves your integration, which creates and reaches only your Production companies. You keep the test key. A key is sent as an HTTP Basic credential with the key as the user name:
Authorization: Basic base64(zk_test_…:) # curl does the encoding for you curl -u "$PARTNER_KEY:" ...
You can only see and change the companies you created, and each key reaches only its own environment: a company in the other environment returns 404. Sandbox companies are limited to 25 alive at once and 50 created in any rolling 7 days (evaluation access, before your agreement is signed: 1 and 2, for 14 days, with companies created without an agreement); retire the ones you no longer need. Each Sandbox company is also limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours, each refused with 429. Getting your partner API key · Limits on creating companies · Retire a Sandbox company
zk_test_… and a production key like zk_prod_…. Copy it to your secrets manager right away.Five stages from create to approved. Webhooks (arrows pointing back to you) tell you when to move on.
Company Onboarding Overview · Collecting company information · Submitting for review
Create and change everything, submit when ready, withdraw any time.
Everee verifies identities and reviews. The data is locked. You answer requests.
Everee countersigned. Use the company API key for the rest of the API. Approved isn't live yet: see goLive.
A generic reasonCode is returned. Everee doesn't share review details through the API.
Final. A withdrawn company can't be reopened. Create a new one.
Everything is driven by one read, called after every change, when the user returns, and when a webhook arrives. It never changes anything.
| Field | What to do with it |
|---|---|
status | Where the onboarding is: DRAFT, UNDER_REVIEW, APPROVED, DECLINED or WITHDRAWN. |
readiness.missing | The codes still unmet. Your screens are driven by this list. |
readiness.complete | true when nothing is missing. This is when you can submit. |
contract | Absent until Everee requests a signature. Then AWAITING_SIGNATURE, SIGNED, EXECUTED. |
agreement | How customers agree to pricing and service terms: DIRECT or UMBRELLA. See Agreeing to terms. |
identityVerification | After submission, one entry per person being verified, with a coarse status. |
requests | What Everee has asked you for during review. |
readiness.missing, not from a fixed sequence. Everee can change what it requires, and codes appear and disappear as the company's answers change.The recommended order is the one Everee's own self-signup uses. Walk it in the Company Signup Simulator first. The signature is requested once screens 2 to 7 are in and Everee has loaded the contract terms, so codes for steps 8 and 9 are expected to still be missing while the user is on earlier screens. The readiness check
| # | Screen | Codes it satisfies | Call |
|---|---|---|---|
| 1 | Create the company | none | Create company |
| 2 | Business details | LEGAL_ENTITY_TYPE FORMATION_STATE BUSINESS_ADDRESS | Update company |
| 3 | Supporting documents | IRS_EIN_LETTER BUSINESS_FORMATION | Upload a document |
| 4 | Payroll profile | WORKER_TYPES EMPLOYEE_COUNT CONTRACTOR_COUNT PAY_FREQUENCY PAY_PERIOD_START_DAY ANNUAL_REVENUE NATURE_OF_BUSINESS NAICS_CODE | Update payroll profile |
| 5 | People: control person, owners, signer | CONTROL_PERSON OWNERSHIP_DECLARATION OWNERSHIP_TOTAL SIGNER SIGNER_IDENTITY SIGNER_RELATIONSHIP | People and ownership |
| 6 | Customer's agreement (some partners; your integration reports it, no screen) | AGREEMENT_CONSENT | Report consent |
| 7 | Taxes | TAX_STATES | Update tax setup |
| 8 | Sign and choose the bank account | SIGNED_CONTRACT BANK_ACCOUNT | Signing session |
| 9 | After signing: authority and IDs | CERTIFICATE_OF_AUTHORITY PICTURE_ID | Certificate of authority |
| 10 | Review and submit | completes the check | Submit |
Only the legal business name, the EIN and a primary contact are needed. The primary contact is the person Everee creates the company's first user from. Optional: taxContact (Everee's tax team contacts this person to collect the company's tax information, so send someone who can answer for its taxes with a phone number; it defaults to the primary contact, and the signer replaces it once you add the signer), webhookUrl and agreementConsent. The webhookUrl is your integration's setting, one endpoint for your platform, so pass it from configuration and don't ask your customer for it.
Keep the returned company API key and webhook signing key. Both are shown once.
curl -X POST "https://api.everee.com/integration/v1/partner/companies" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{
"legalBusinessName": "Summit Ridge Plumbing LLC",
"ein": "87-1234567",
"primaryContact": { "firstName": "Dana", "lastName": "Whitfield",
"email": "dana@summitridge.example", "phone": "8015550142" },
"webhookUrl": "https://hooks.yourplatform.example/everee"
}'{ "id": 48213, "onboardingStatus": "DRAFT",
"apiKey": "tsk_prod_…", "webhookSigningKey": "<shown once>" }Ask for the legal entity type, the formation state and the business address. Trade name, phone and website are optional. It is a partial update, so send only what changed.
legalEntityType is one of C_CORPORATION, S_CORPORATION, LLC_MULTI_MEMBER, LLC_SINGLE_MEMBER, PARTNERSHIP, SOLE_PROPRIETORSHIP, NONPROFIT or OTHER.
curl -X PATCH "https://api.everee.com/integration/v1/partner/companies/$ID" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{
"legalEntityType": "LLC_SINGLE_MEMBER", "formationState": "UT",
"address": { "line1": "4420 S 900 E", "city": "Salt Lake City",
"state": "UT", "postalCode": "84124" }
}'Ask for the company's IRS EIN letter and its business formation documents, such as the articles of organization. Files are PDF, PNG or JPEG, up to 25 MB. A new EIN letter replaces the last one, and you can add several formation documents.
Whether each is required is decided by Everee and can change. List documents returns a required and provided flag per kind, so show a step only when it is required. If Everee rejects a document, it opens a request for a replacement.
Payroll history is separate. Everee also needs the payroll the company has already run this year. It isn't part of the readiness check and isn't tied to the onboarding status, so collect it after you submit: see Payroll history and going live below.
curl -X POST https://api.everee.com/integration/v1/partner/companies/$ID/documents/IRS_EIN_LETTER \ -u "$PARTNER_KEY:" -F "file=@ein-letter.pdf;type=application/pdf" curl -X POST https://api.everee.com/integration/v1/partner/companies/$ID/documents/BUSINESS_FORMATION \ -u "$PARTNER_KEY:" -F "file=@articles-of-organization.pdf;type=application/pdf"
Ask what kind of payroll the company runs. Some codes appear only when they apply: CONTRACTOR_COUNT only after you say the company pays contractors, and PAY_PERIOD_START_DAY only for weekly and bi-weekly pay.
WORKER_TYPES also stays missing if the company's plan doesn't price the worker type you chose. Everee sets the plan, so ask your Everee representative. Let the user search NAICS codes instead of typing one.
curl -X PATCH "https://api.everee.com/integration/v1/partner/companies/$ID/payroll-profile" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{
"paysW2Employees": true, "employeeCount": 5,
"paysContractors": true, "contractorCount": 2,
"payFrequency": "BI_WEEKLY", "payPeriodStartDay": "MONDAY",
"annualRevenue": { "amount": 750000.00, "currency": "USD" },
"natureOfBusiness": "Plumbing installation and repair",
"naicsCode": "238220"
}'Everee must know who controls the company, who owns 25% or more, and who signs. One person can hold several roles. Collect them in this order, because the signer is matched against the other two.
| Signer relationship | Rule |
|---|---|
CONTROL_PERSON | Name must match the control person's. No identity details needed. |
BENEFICIAL_OWNER | Name must match an owner on file. No identity details needed. |
NEITHER | Send identity details too. A certificate of authority is needed (step 9). |
curl -X PUT "https://api.everee.com/integration/v1/partner/companies/$ID/control-person" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Dana", "lastName": "Whitfield", "title": "Managing Member",
"email": "dana@summitridge.example", "phone": "8015550142",
"ownershipPercentage": 60,
"identity": { "dateOfBirth": "1981-04-17", "ssn": "123-45-6789",
"address": { "line1": "2875 E Oakview Cir", "city": "Holladay",
"state": "UT", "postalCode": "84121" } }
}'curl -X POST "https://api.everee.com/integration/v1/partner/companies/$ID/beneficial-owners" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Pat", "lastName": "Lee", "email": "pat@summitridge.example",
"phone": "8015550143", "ownershipPercentage": 40,
"identity": { "dateOfBirth": "1979-02-03", "ssn": "987-65-4321",
"address": { "line1": "12 Elm St", "city": "Provo", "state": "UT", "postalCode": "84601" } }
}'curl -X PUT "https://api.everee.com/integration/v1/partner/companies/$ID/signer" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Dana", "lastName": "Whitfield", "title": "Managing Member",
"email": "dana@summitridge.example", "phone": "8015550142",
"relationship": "CONTROL_PERSON"
}'Every company agrees to pricing and service terms one of two ways, set for your partner account. With DIRECT the customer signs Everee's Subscription Agreement in the signing experience. With UMBRELLA the customer agrees under your subscription agreement and you report each consent. Until you do, AGREEMENT_CONSENT stays missing and Everee won't request the signature.
The consent is recorded for the signer, so a different signer needs a fresh one. You must be able to produce the proof, because Everee reviews a sample of consents. Agreeing to terms
curl -X PUT "https://api.everee.com/integration/v1/partner/companies/$ID/agreement-consent" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{
"consentedAt": "2026-10-01T15:30:00Z", "method": "CLICKWRAP",
"evidenceReference": "order-8841", "attestation": true
}'Only asked when the company pays W-2 employees. Ask which states it withholds taxes in, and optionally its federal return type, FORM_941 or FORM_944.
curl -X PATCH "https://api.everee.com/integration/v1/partner/companies/$ID/tax-setup" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{ "returnType": "FORM_941", "states": ["UT", "ID"] }'You make no data call for SIGNED_CONTRACT and BANK_ACCOUNT. The signer completes both inside Everee's embedded signing experience.
company-onboarding.signature-requested. Until then, creating a session returns 409.company-onboarding.contract-signed.The signer signs three documents with one signature: the Subscription Agreement (not part of the signature under an umbrella agreement), the ACH Debit Authorization and IRS Form 8655. In a sandbox instance the bank step uses Plaid's sandbox: choose the test institution and sign in with user_good and pass_good.
curl -X POST "https://api.everee.com/integration/v1/partner/companies/$ID/contract/embedded-session" \
-u "$PARTNER_KEY:" \
-H "Content-Type: application/json" \
-d '{ "eventHandlerName": "evereeHandler" }'MESSAGE_PORT_REGISTERED component is ready CONTRACT_SIGNED the signer signed (webhook is the source of truth) DISMISS close the view. error + EMB-301 means create a new session
Two items are still collected after signing, while the company is a draft.
CERTIFICATE_OF_AUTHORITY appears only when the signer is neither the control person nor an owner. Upload a PDF showing the signer may sign for the company.PICTURE_ID is normally never missing: Everee's identity provider captures each person's ID when they verify after submission, so you upload nothing and an upload returns 409. It appears only if Everee has set up your account so that you capture IDs (journey.documentCapture in the status is PARTNER). Then upload the front, and the back if the ID has one, for the control person, every owner of 25% or more, and a signer who is neither.curl -X POST "https://api.everee.com/integration/v1/partner/companies/$ID/documents/PICTURE_ID?personRef=control-person&side=FRONT" \ -u "$PARTNER_KEY:" -F "file=@id-front.jpg;type=image/jpeg"
When readiness.complete is true, show a review screen and submit. The status becomes UNDER_REVIEW and the data is locked. Submitting early returns 422 with the missing codes and changes nothing. Submitting twice is harmless.
curl -X POST "https://api.everee.com/integration/v1/partner/companies/$ID/submit" \ -u "$PARTNER_KEY:"
409. If something must change, Everee voids the signature (contract-voided) and requests a new one. Correcting a person's phone or email does the same. Only Everee can replace the signer after signing.Everee sends the control person, each owner of 25% or more and a signer who is neither a secure link. Progress is in identityVerification.
| Identity status | Meaning |
|---|---|
GETTING_READY | Everee is preparing the check. |
LINK_SENT | The person has the link and hasn't finished. |
IN_REVIEW | The person finished. Everee is reviewing the result. |
EXPIRED_CONTACT_US | The link expired. Contact your Everee representative. |
VERIFIED | The person is verified. |
Each need is a request in the status response and as a webhook. Documents are PDF, PNG or JPEG up to 25 MB.
| Request type | What Everee needs | How to answer |
|---|---|---|
DOCUMENT_NEEDED | A document, named by documentType. This includes a replacement for one Everee rejected. | Fulfill with a file. |
INFORMATION_NEEDED | An answer to a question in message. | Fulfill with text, or a file. |
ADDITIONAL_PERSON_DETAILS | Another person must be listed, such as an owner. | Add the person and pass the request's requestId. |
IDENTITY_VERIFICATION_NEEDED | A person's link expired. | Resend the link. |
CONTRACT_CORRECTION | A new signature on updated documents. | Show the signing experience again. |
An approved company isn't live yet. Everee imports the payroll it has already run this year and finishes setting it up. goLive on the status says when it can run payroll and what is still outstanding. Payroll history and going live
Show Everee's upload component: create a session with POST /payroll-history/embedded-session right before you show it, and open its url in an iframe. The admin drops in their quarterly registers and year-to-date totals from their previous provider. Or upload each file yourself with POST /payroll-history/files. Everee reviews each file, and asks for more with a DOCUMENT_NEEDED request for PAYROLL_HISTORY. A company that paid no one earlier in the go-live year declares it instead (PUT /payroll-history/declaration, or in the component): the status is NONE_DECLARED until Everee confirms it. payrollHistory.status ends IMPORTED or NOT_NEEDED.
Send the date you want as targetGoLiveDate, the first day of the first pay period you want Everee to pay, with the payroll profile or later with PUT /go-live/target. A date that doesn't start a pay period returns 422 with the nearest valid ones. Everee then sets goLiveDate (go-live-scheduled), and the target locks.
went-live arrives and goLive.live becomes true. Until then, outstanding lists what is left: ONBOARDING_APPROVAL, PAYROLL_HISTORY, TAX_SETUP (Everee is still collecting tax information from the tax contact; tell your customer to expect the call), TARGET_GO_LIVE_DATE (set a new target) and EVEREE_SETUP.
Test going live in Sandbox. In Sandbox the steps Everee's team does in Production run on their own once the company is approved: planning, tax setup, payroll history review and import, then the go-live date and going live, typically about 6 minutes after approval (about 15 when you upload history first). The same things stand in the way, in the same order, and the same events arrive; the go-live date is the start of the current pay period. A payroll history file named changes-requested, or a company document named information-needed, takes the unhappy path. The Company Signup Simulator runs this in its Automatic (Sandbox) mode. Test going live in Sandbox
Sent to the company's webhook endpoints. Set the first with webhookUrl at creation, and add more with the Webhook Endpoints API. Verify each one, make handlers idempotent, and read the status for the truth. Company onboarding events
| Event | What to do |
|---|---|
company-onboarding.signature-requested | Create a signing session. signatureReason is FIRST_REQUEST, or RE_SIGN_REQUIRED after a void. |
company-onboarding.contract-signed | Update your screens, then submit when the readiness check is complete. |
company-onboarding.contract-voided | A signature was voided because documented data changed. A new signature request follows. |
company-onboarding.identity-verification-changed | Show the person's status. Resend a link if it was lost. |
company-onboarding.request-created and request-resolved | Show or clear the request. |
company-onboarding.contract-executed | Everee countersigned. Download the executed documents. |
company-onboarding.status-changed | Submitted, approved, declined or withdrawn. On APPROVED, use the company API key. |
company-onboarding.payroll-history-file-added, -file-reviewed and -status-changed | Show the files and Everee's review of each. Show a rejected file's reviewNote as written. |
company-onboarding.go-live-scheduled | Everee set, moved or removed the go-live date. Show it to the customer. |
company-onboarding.went-live | The company can run payroll. Start the first payroll run. |
Everee obtains state tax information and rates from the customer directly, through its own systems and partners that work with the company's administrators. You don't collect state tax account numbers.
Collecting state tax information is a required step of company onboarding, and the company can't go live without it. More details are coming. Everee processes new-hire reporting once payroll service begins.
company-onboarding.status-changed is APPROVEDRead the onboarding status if you want to double-check. contract-executed means Everee countersigned.tsk_prod_…) was returned once at creation. The company's id is the value you send as x-everee-tenant-id with every company-key request.went-liveEveree imports the payroll history and finishes setting the company up. goLive.outstanding says what is left, and goLive.live becomes true.| Method | Endpoint | What it does | Docs |
|---|---|---|---|
| POST | /integration/v1/partner/companies | Create a draft company | Reference |
| GET | /integration/v1/partner/companies/{companyId} | Retrieve the company | Reference |
| PATCH | /integration/v1/partner/companies/{companyId} | Update company details | Reference |
| PATCH | /integration/v1/partner/companies/{companyId}/payroll-profile | Update the payroll profile | Reference |
| GET | /integration/v1/partner/companies/naics-codes | Search NAICS codes | Reference |
| POST | /integration/v1/partner/companies/{companyId}/documents/{kind} | Upload a document | Reference |
| GET | /integration/v1/partner/companies/{companyId}/documents | List documents and requirements | Reference |
| POST | /integration/v1/partner/companies/{companyId}/payroll-history/embedded-session | Create a payroll history upload session | Reference |
| GET | /integration/v1/partner/companies/{companyId}/payroll-history | Read payroll history | Reference |
| POST | /integration/v1/partner/companies/{companyId}/payroll-history/files | Upload a payroll history file (also delete) | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/payroll-history/declaration | Declare no payroll history (also withdraw) | Reference |
| PUT | /integration/v1/partner/companies/files/year-to-date | Upload year-to-date payroll (older, files the same way) | Reference |
| GET | /integration/v1/partner/companies/{companyId}/go-live | Read go-live status | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/go-live/target | Set the target go-live date | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/files/certificate-of-authority | Upload the certificate of authority | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/control-person | Set the control person | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/ownership-declaration | Declare additional owners | Reference |
| POST | /integration/v1/partner/companies/{companyId}/beneficial-owners | Add an owner (also list, update, delete) | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/signer | Set the signer | Reference |
| PATCH | /integration/v1/partner/companies/{companyId}/people/{personRef}/contact | Correct a person's phone or email | Reference |
| POST | /integration/v1/partner/companies/{companyId}/people/{personRef}/identity-verification/resend | Resend an identity link | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/agreement-consent | Report agreement consent | Reference |
| PATCH | /integration/v1/partner/companies/{companyId}/tax-setup | Set tax setup | Reference |
| GET | /integration/v1/partner/companies/{companyId}/bank-account | Read the funding bank account | Reference |
| POST | /integration/v1/partner/companies/{companyId}/contract/embedded-session | Create the signing session | Reference |
| GET | /integration/v1/partner/companies/{companyId}/contract/documents/{documentType} | Download a signed document | Reference |
| GET | /integration/v1/partner/companies/{companyId}/status | Status, readiness, contract, requests | Reference |
| POST | /integration/v1/partner/companies/{companyId}/submit | Submit for review | Reference |
| POST | /integration/v1/partner/companies/{companyId}/withdraw | Withdraw | Reference |
| GET | /integration/v1/partner/companies/{companyId}/requests | List review requests | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/requests/{requestId}/file | Answer a request with a file | Reference |
| PUT | /integration/v1/partner/companies/{companyId}/requests/{requestId} | Answer a request with text | Reference |
Work locations, payroll calendars, approval groups, cost centers and pay codes that workers and wages refer to.
Before you create your first worker or send your first hour, Everee needs the shape of the organization. Workers and wages refer to these records by ID or key, so they have to exist first. Create them with the API, using the company's own API key.
Let a customer manage the work locations and pay codes their workers and wages refer to. The prose below covers the full workflow; this is the kind of experience you build.
REGULAR_HOURLYBONUSFIELD_HOURSON_TIME_BONUSREIMBURSEMENTCopy this into your coding agent, or point the agent at this page and it can read the prompt directly. It names the docs to read first, the operations to call, the rules that matter for this area, and the tests to write. Open as Markdown
GOAL
Build the setup screens and sync that create a company's work locations, payroll calendar, approval groups, cost centers and pay codes, and keep the Everee IDs next to my own records.
READ FIRST (each page also has a Markdown version at the same URL with .md added; the docs index is https://developer.everee.com/llms.txt)
- https://developer.everee.com/docs/setting-up-the-company
- https://developer.everee.com/docs/setting-up-your-organization
- https://developer.everee.com/reference/add-work-location
- https://developer.everee.com/reference/create-payroll-calendar
- https://developer.everee.com/reference/add-approval-group
- https://developer.everee.com/reference/add-cost-center
- https://developer.everee.com/reference/pay-codes-api-guide
- https://developer.everee.com/reference/create-a-pay-code
- https://developer.everee.com/reference/list-workers-comp-classes
BUILD
- Screens to create and archive work locations (POST/GET/DELETE /work-locations), create payroll calendars (POST/GET /payroll-calendar), approval groups, cost centers, and custom pay codes (POST/GET /pay-codes).
- Create these in dependency order before the first worker or hour: work locations and payroll calendar, then approval groups and cost centers, then pay codes. Store each returned Everee ID or key.
- List workers' comp classes (read only) so the user can attach the right class code to hours. Everee enters them during onboarding.
OPERATIONS (all paths are under https://api.everee.com/integration/v1; each reference page, with .md added, lists its request and response fields)
- POST /work-locations | operationId add-work-location | https://developer.everee.com/reference/add-work-location.md
- GET /work-locations | operationId list-work-locations | https://developer.everee.com/reference/list-work-locations.md
- DELETE /work-locations/{workLocationId} | operationId archive-work-location | https://developer.everee.com/reference/archive-work-location.md
- POST /payroll-calendar | operationId create-payroll-calendar | https://developer.everee.com/reference/create-payroll-calendar.md
- GET /payroll-calendar | operationId list-payroll-calendars | https://developer.everee.com/reference/list-payroll-calendars.md
- POST /approval-groups | operationId add-approval-group | https://developer.everee.com/reference/add-approval-group.md
- GET /approval-groups | operationId list-approval-groups | https://developer.everee.com/reference/list-approval-groups.md
- POST /cost-centers | operationId add-cost-center | https://developer.everee.com/reference/add-cost-center.md
- POST /pay-codes | operationId list-pay-codes-1 | https://developer.everee.com/reference/create-a-pay-code.md
- GET /pay-codes | operationId list-pay-codes | https://developer.everee.com/reference/list-pay-codes.md
- GET /workers-comp | operationId list-workers-comp-class-codes | https://developer.everee.com/reference/list-workers-comp-classes.md
RULES
- Pay code keys use only uppercase letters, numbers and underscores. The type decides tax treatment, so make the user pick deliberately, and don't change a type once it is used.
- Archive rather than delete a work location that has history.
- Build every flow as a loop around reads that tell you what is left: make a change, read the state again (readiness.missing for onboarding, a run's blockers and the requirements behind them for payroll, a funding's status and resolutionInstructions), and act on what is left. Never hard-code the steps: codes appear and disappear. Map each code you know to a screen, and show resolutionInstructions for any you don't. Use webhooks (company-onboarding.status-changed, requirement.created, payroll-run.status-changed) to know when to read again, not instead of the read. A requirement does NOT open when a worker is created or changed: it opens only when a payroll calculation or a returned deposit finds the problem, so calculate runs early.
- Base URL https://api.everee.com/integration/v1. The partner key is the HTTP Basic user name for the Company Onboarding API: the test key (zk_test_...) creates and reaches only Sandbox companies and the production key (zk_prod_...), issued after Everee approves the integration, only Production companies. A company in the other environment returns 404. The company key (tsk_...) is the HTTP Basic user name for everything else, plus an x-everee-tenant-id header holding the company's id.
- Keep every key on the server. Everee rejects browser requests. Read keys from a secrets store, never log them, never hard-code them.
- Rate limit: 100 operations per 5 seconds per key (see the RateLimit-Policy header). Back off on 429.
- Only payables and payroll run items have an idempotency key (externalId). Make other creates safe yourself: look first, keep the Everee ID next to your own record.
- Test against a sandbox instance (tsk_test_... keys) before production. Nothing in a URL selects the environment; the key does. Sandbox company creation is limited (25 alive at once, 50 created in any rolling 7 days; evaluation access before the agreement is signed: 1 and 2, 14 days, companies created without an agreement), and each Sandbox company is limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours: a refused request returns 429 with when the next can be created, and a sandbox company you no longer need can be retired.
DONE WHEN
- Every record I create appears in the matching list call, and my database holds the Everee ID for each.
- Creating a worker or an hour that refers to a missing record is blocked in my UI before it reaches the API.
TESTS TO WRITE
- Records are created in dependency order, and running the setup twice creates no duplicates.
- A pay code key with a lowercase letter or space is rejected by your form before the API call.
- Archiving a work location with history uses the archive call, not a delete.
- Every Everee ID is persisted next to the matching record of yours.
If a fact you need isn't in the docs, ask me. Don't guess endpoint paths, field names or business rules.| Order | Record | Why it matters | API |
|---|---|---|---|
| 1 | Work locations | A wage is taxed where it was earned. The address decides the tax jurisdictions and which leave rules apply. | Create a work location |
| 2 | Payroll calendars | Sets how often workers are paid and when pay periods start. | Create a payroll calendar |
| 3 | Approval groups | A set of workers managed together: who can see and approve them, and how their pay is coded in your books. | Create an approval group |
| 4 | Cost centers | Up to three categories, like client, job or department, to tag wages for cost allocation. | Create a cost center |
| 5 | Pay codes | The categories wages, reimbursements and one-time deductions go into. Everee provides defaults such as REGULAR_HOURLY and BONUS. | Create a pay code |
| 6 | Leave types and policies | Only if you administer paid time off. See area 4. | Leave Accrual API |
curl -X POST "https://api.everee.com/integration/v1/work-locations" \
-u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID" \
-H "Content-Type: application/json" \
-d '{
"name": "Salt Lake Office", "line1": "100 S Main St",
"city": "Salt Lake City", "state": "UT", "postalCode": "84101",
"effectiveDate": "2026-01-01", "externalId": "site-0042"
}'curl -X POST "https://api.everee.com/integration/v1/payroll-calendar" \
-u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID" \
-H "Content-Type: application/json" \
-d '{
"displayName": "Clinic staff", "payPeriodType": "BI_WEEKLY",
"weeklyStartDay": "MONDAY", "effectiveDate": "2026-11-02"
}'Every wage is assigned to a location, explicitly on the shift or payable or by default from the worker's profile. Staffing and multi-site employers should assign one every time: a wage at the wrong location is taxed in the wrong jurisdiction.
externalId to match your own sites.A calendar's effectiveDate must be tomorrow or later. Workers you don't assign go on the company's default calendar. Contractors aren't paid on a calendar. Renaming is the only change you can make, and deleting archives a calendar that workers use.
Up to three active types, one per slot. A type has a case-sensitive key, like clientId, that can't change. Values are created the first time you use them. Create the types before you send wages that use them, because an unknown or archived key rejects the whole request.
| payPeriodType | Send | Not allowed |
|---|---|---|
WEEKLY, BI_WEEKLY | weeklyStartDay (MONDAY to SUNDAY) | monthlyStartDay |
SEMI_MONTHLY | monthlyStartDay, 1 to 13 | weeklyStartDay |
MONTHLY | monthlyStartDay, 1 to 28 | weeklyStartDay |
| payCodeType | Use it for |
|---|---|
TAXABLE_PAY | Wages and contractor pay |
NON_TAXABLE_PAY | Reimbursements and other non-wage amounts |
DEDUCTION | One-time post-tax deductions. It doesn't create a recurring deduction. |
Pick carefully: the type decides tax treatment. Keys use only uppercase letters, numbers and underscores. Guide to the Pay Codes API
Every worker belongs to at most one group. Groups are quick to set up but decide a lot downstream, so assign the right one when you create the worker.
Group workers by branch, client site or department, and filter payments and reports by group.
Wages are coded to the group of the worker's earnings. If you scope GL mappings by approval group, each group posts to its own codes, and reports can be filtered by group. Employer taxes and benefit costs follow the wages into the same group.
id, not its name.approvalGroupId when you create a worker, or later with Update approval group (send null to remove it).Store the Everee ID of every record next to your own, so later requests need no lookup.
| Everee record | Where you'll use its ID |
|---|---|
| Work location | workLocationId on workers and payroll run items |
| Payroll calendar | payrollCalendarId when creating or updating a worker |
| Approval group | approvalGroupId when creating or updating a worker |
| Cost center | the type key in costCenters on workers and payroll run items |
| Pay code | the apiKey as payCode on payroll run items and deductions |
| Method | Endpoint | What it does | Docs |
|---|---|---|---|
| POST | /integration/v1/work-locations | Create a work location | Reference |
| GET | /integration/v1/work-locations | List work locations | Reference |
| DELETE | /integration/v1/work-locations/{workLocationId} | Archive a work location | Reference |
| POST | /integration/v1/payroll-calendar | Create a payroll calendar | Reference |
| GET | /integration/v1/payroll-calendar | List payroll calendars | Reference |
| POST | /integration/v1/approval-groups | Create an approval group | Reference |
| GET | /integration/v1/approval-groups | List approval groups | Reference |
| POST | /integration/v1/cost-centers | Create a cost center | Reference |
| POST | /integration/v1/pay-codes | Create a pay code | Reference |
| GET | /integration/v1/pay-codes | List pay codes | Reference |
| GET | /integration/v1/workers-comp | List workers' comp classes | Reference |
Create complete worker records, and keep them in sync with your records.
A worker must finish onboarding before Everee can pay them. In Payroll Infrastructure you collect the worker's information in your own product and send Everee a complete record: taxpayer identifier, date of birth, addresses, bank account and tax settings. Marking the record complete lets the worker be paid once their hire date arrives.
A worker profile with demographic and position fields, a hire date, and a termination action. The prose below covers the full workflow; this is the kind of experience you build.
Copy this into your coding agent, or point the agent at this page and it can read the prompt directly. It names the docs to read first, the operations to call, the rules that matter for this area, and the tests to write. Open as Markdown
GOAL
Build worker management: add employees and contractors as complete records, show and edit their profiles, and handle separation, rehire and deletion.
READ FIRST (each page also has a Markdown version at the same URL with .md added; the docs index is https://developer.everee.com/llms.txt)
- https://developer.everee.com/docs/managing-workers
- https://developer.everee.com/docs/worker-data-and-onboarding
- https://developer.everee.com/reference/look-up-hiring-status-for-a-worker
- https://developer.everee.com/reference/add-a-complete-employee-record
- https://developer.everee.com/reference/add-a-complete-contractor-record
- https://developer.everee.com/reference/retrieve-a-worker
- https://developer.everee.com/reference/update-payment-preferences
- https://developer.everee.com/reference/separate-an-employee
- https://developer.everee.com/reference/rehire-a-worker
BUILD
- Before every create, POST /worker-hiring-status/search to learn whether the person already exists, was hired before or is a rehire, and follow the answer.
- A profile form that collects the full record (legal name, date of birth, contact, home address, tax identifiers, position, pay rate, hire date, work location, approval group, payroll calendar) and sends it to POST /workers/employee or /workers/contractor.
- A worker list and detail screen from GET /workers and /workers/{id}, edits through the update calls, a 'Process termination' action (PUT /workers/{id}/separate-employee), rehire, and delete only while still in onboarding.
- Handle worker.onboarding-completed, worker.profile-updated, worker.created and tin-verification-status-changed events by re-reading the worker.
OPERATIONS (all paths are under https://api.everee.com/integration/v1; each reference page, with .md added, lists its request and response fields)
- POST /worker-hiring-status/search | operationId post_integrationv1worker-hiring-statussearch | https://developer.everee.com/reference/look-up-hiring-status-for-a-worker.md
- POST /workers/employee | operationId add-a-complete-employee-record | https://developer.everee.com/reference/add-a-complete-employee-record.md
- POST /workers/contractor | operationId add-a-complete-contractor-record | https://developer.everee.com/reference/add-a-complete-contractor-record.md
- GET /workers | operationId list-workers | https://developer.everee.com/reference/list-workers.md
- GET /workers/{id} | operationId retrieve-a-worker | https://developer.everee.com/reference/retrieve-a-worker.md
- PUT /workers/{id}/payment-info | operationId update-payment-preferences | https://developer.everee.com/reference/update-payment-preferences.md
- PUT /workers/{id}/separate-employee | operationId separate-an-employee | https://developer.everee.com/reference/separate-an-employee.md
- POST /workers/{id}/rehire | operationId rehire-a-worker | https://developer.everee.com/reference/rehire-a-worker.md
- DELETE /workers/{id} | operationId delete-a-worker-in-onboarding | https://developer.everee.com/reference/delete-a-worker-in-onboarding.md
RULES
- Workers have no Everee account, claim, password or invitation (the invitation endpoint returns 403 and accountSetupEnabled is forced off in component sessions). Everee does not email or text them. Workers are paid by direct deposit only: the pay card components return 403, so offer no pay card option.
- Payroll Infra uses the full-record flow only (add-a-complete-employee-record and add-a-complete-contractor-record, with onboardingComplete true). Supply a stable externalWorkerId from my system and store Everee's worker id next to it.
- Effective dates matter: a hire date in the future or a change effective later must be respected, not applied now.
- A worker with any transacted payment can't be deleted, only separated.
- Build every flow as a loop around reads that tell you what is left: make a change, read the state again (readiness.missing for onboarding, a run's blockers and the requirements behind them for payroll, a funding's status and resolutionInstructions), and act on what is left. Never hard-code the steps: codes appear and disappear. Map each code you know to a screen, and show resolutionInstructions for any you don't. Use webhooks (company-onboarding.status-changed, requirement.created, payroll-run.status-changed) to know when to read again, not instead of the read. A requirement does NOT open when a worker is created or changed: it opens only when a payroll calculation or a returned deposit finds the problem, so calculate runs early.
- Base URL https://api.everee.com/integration/v1. The partner key is the HTTP Basic user name for the Company Onboarding API: the test key (zk_test_...) creates and reaches only Sandbox companies and the production key (zk_prod_...), issued after Everee approves the integration, only Production companies. A company in the other environment returns 404. The company key (tsk_...) is the HTTP Basic user name for everything else, plus an x-everee-tenant-id header holding the company's id.
- Keep every key on the server. Everee rejects browser requests. Read keys from a secrets store, never log them, never hard-code them.
- Rate limit: 100 operations per 5 seconds per key (see the RateLimit-Policy header). Back off on 429.
- Only payables and payroll run items have an idempotency key (externalId). Make other creates safe yourself: look first, keep the Everee ID next to your own record.
- Test against a sandbox instance (tsk_test_... keys) before production. Nothing in a URL selects the environment; the key does. Sandbox company creation is limited (25 alive at once, 50 created in any rolling 7 days; evaluation access before the agreement is signed: 1 and 2, 14 days, companies created without an agreement), and each Sandbox company is limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours: a refused request returns 429 with when the next can be created, and a sandbox company you no longer need can be retired.
DONE WHEN
- A sandbox employee is created, edited, separated and rehired from my UI, with no duplicate created by retries.
- A failed TIN verification event surfaces a clear fix-it prompt to the user.
TESTS TO WRITE
- The hiring-status lookup always runs before a create, and a status of ACTIVE links the existing worker instead of creating one.
- Retrying a create with the same externalWorkerId creates no second worker.
- A future hire date is kept as a future date.
- A worker with a transacted payment can't be deleted in your UI, only separated.
- A tin-verification-status-changed event with VERIFICATION_FAILED shows the user what to fix.
If a fact you need isn't in the docs, ask me. Don't guess endpoint paths, field names or business rules.403, and accountSetupEnabled is forced off in component sessions. Everee doesn't email or text them either (no invitations, onboarding reminders, payment notices or rehire messages). Workers are paid by direct deposit only, because the pay card components return 403. You tell workers about their pay, fix returned deposits, and deliver pay statements and tax forms through the API.| Employee (W-2) | Contractor (1099) | |
|---|---|---|
| Taxes | Withheld and remitted for you, with the employer's share | The contractor handles their own taxes |
| Tax form collected | W-4 and state forms, plus a Form I-9 if the company's setup calls for one | W-9 |
| Year-end form | W-2 | 1099 |
| Paid | In a payroll run, on the company's payroll calendar or off-cycle | In a payroll run |
| Hours | Not tracked by Everee. Send the pay as items in a payroll run. | Not tracked by Everee. Send what they're owed as items in a payroll run. |
After payroll, Everee leaves telling workers to you. Everee's tax operations team calculates and remits taxes, files quarterly and annual forms and issues W-2 and 1099 forms, so none of it is built into your integration. Managing workers · Guide: onboarding and managing workers
A duplicate profile causes payroll and tax filing problems. Send as much as you have; the SSN is the most reliable. If you send an externalWorkerId the lookup also checks it against the matched worker.
| hiringScenario | What to do |
|---|---|
NEW_HIRE | Create a profile. |
ACTIVE | Don't create one. Link the existing worker to your record using the workerId returned. |
ELIGIBLE_FOR_REHIRE | Rehire the worker instead of creating a profile. The rehire date can't be earlier than earliestValidHireDate. |
NOT_ELIGIBLE_FOR_REHIRE | Don't create a profile. The company marked this person not eligible. |
Send everything Everee needs in one request, with your own ID as externalWorkerId, and set onboardingComplete to true. Leave it false only if the worker still has data to provide.
| Data area | What Everee needs | What you send in the complete record |
|---|---|---|
| Identity | Name, date of birth, phone, email | All four. dateOfBirth is required. |
| Taxpayer identifier | SSN or other; checked against IRS and SSA records | Employee: taxpayerIdentifier. Contractor: socialSecurityNumber or employerIdentificationNumber in w9FormResponse. |
| Home address | Residence, for tax and forms | homeAddress |
| Work location | Default legal work address | legalWorkAddress |
| Position and pay | Pay type, rate, weekly hours, hire date (contractors: start date) | On the same request |
| Payment method | A bank account, unless the worker is paid outside Everee | bankAccount |
| Tax forms | W-4 and state forms, or a W-9 | Employee: withholdingSettings. Contractor: w9FormResponse. |
| Onboarding | Marked complete so the worker can be paid | onboardingComplete: true |
worker.createdonboardingComplete: trueWages and payables sent before the worker becomes payable are held and released when they do. Store the Everee workerId from worker.created against your own record.
Send w9FormResponse with the taxpayer identifier, and Everee treats the W-9 as complete. Everee captures no signature for it, so if you need a signed W-9 on file, capturing and storing it is up to you.
Mark them with externallyPaid: true in payment preferences. No bank account is needed, no money moves, and the setting can't be combined with direct deposit. To switch back, send externallyPaid: false with a payment method.
Your product is the source of truth. Store your own ID as externalWorkerId, push each change with its endpoint, and subscribe to worker.profile-updated, a catch-all with only IDs, to learn when something changed in Everee. Then retrieve the worker and update your copy.
| Change | Endpoint |
|---|---|
| Name, email, phone, date of birth | Update personal information |
| Home address | Update home address |
| Title, pay rate, pay type, weekly hours, default cost centers | Update position and compensation |
| Default work location | Update work location |
| Approval group | Update approval group |
| Payroll calendar | Update payroll calendar |
| Payment preferences | Update payment preferences |
| Bank accounts and splits | Worker Direct Deposit API |
| Taxpayer identifier | Update taxpayer identifier |
| Hire date | Update start date |
Separate an employee with a date, rehire eligibility, severance, benefits end date and leave payout. eligibleForRehire is what a later hiring status search returns. Rehire when the status is ELIGIBLE_FOR_REHIRE. If the worker type changes, create a new profile instead.
Update a wrong hire date. Delete a worker only while nothing beyond onboarding data exists under it. A duplicate that already has payroll data needs support. If a call fails, see Diagnosing a failed request.
| Method | Endpoint | What it does | Docs |
|---|---|---|---|
| POST | /integration/v1/worker-hiring-status/search | Look up hiring status | Reference |
| POST | /integration/v1/workers/employee | Create a complete employee record | Reference |
| POST | /integration/v1/workers/contractor | Create a complete contractor record | Reference |
| GET | /integration/v1/workers | List workers | Reference |
| GET | /integration/v1/workers/{id} | Retrieve a worker | Reference |
| PUT | /integration/v1/workers/{id}/payment-info | Update payment preferences | Reference |
| PUT | /integration/v1/workers/{id}/separate-employee | Separate an employee | Reference |
| POST | /integration/v1/workers/{id}/rehire | Rehire a worker | Reference |
| DELETE | /integration/v1/workers/{id} | Delete a worker still in onboarding | Reference |
Recurring deductions, paid leave policies and garnishments, each applied with an effective date.
Settings change what a worker takes home: recurring deductions, garnishments, and paid leave. Each is sent with an effective date, so Everee applies it to the right payroll without rewriting past ones.
One employee's benefit-enrollment deduction rules, each with an effective date. The prose below covers the full workflow; this is the kind of experience you build.
MEDICAL_INSURANCEHSAERISA_401KDENTAL_INSURANCECopy this into your coding agent, or point the agent at this page and it can read the prompt directly. It names the docs to read first, the operations to call, the rules that matter for this area, and the tests to write. Open as Markdown
GOAL
Build the screens and sync for each worker's payroll settings: benefit, retirement and other deductions, garnishments and child-support orders, and paid leave (types, policies, enrollment, balances).
READ FIRST (each page also has a Markdown version at the same URL with .md added; the docs index is https://developer.everee.com/llms.txt)
- https://developer.everee.com/reference/deductions-api-guide
- https://developer.everee.com/reference/apply-benefit-deduction
- https://developer.everee.com/reference/apply-retirement-deduction
- https://developer.everee.com/reference/apply-other-deduction
- https://developer.everee.com/reference/get-deduction-reconciliation
- https://developer.everee.com/reference/list-leave-types
- https://developer.everee.com/reference/create-leave-policy
- https://developer.everee.com/reference/enroll-workers-in-leave-policy
BUILD
- An elections table per worker like a benefits screen: each row posts to POST /deductions/benefits, /retirement or /other to start, change or end it, with an effective date and employee and employer amounts or percentages (including 401(k) match tiers).
- A reconciliation view from GET /deductions/reconciliation showing what payroll actually deducted for a pay period, to compare with the elections.
- Leave: manage types, policies, enrollment and balances (GET/POST /leave/types, /leave/policies, enrollments, worker balances, award rules).
- Garnishments and income-withholding orders are multipart POSTs (/garnishments, /income-withholding-orders): upload the order document with the terms.
OPERATIONS (all paths are under https://api.everee.com/integration/v1; each reference page, with .md added, lists its request and response fields)
- POST /deductions/benefits | operationId apply-benefit-deduction | https://developer.everee.com/reference/apply-benefit-deduction.md
- POST /deductions/retirement | operationId apply-retirement-deduction | https://developer.everee.com/reference/apply-retirement-deduction.md
- POST /deductions/other | operationId apply-other-deduction | https://developer.everee.com/reference/apply-other-deduction.md
- GET /deductions/reconciliation | operationId get_deduction_reconciliation | https://developer.everee.com/reference/get-deduction-reconciliation.md
- GET /leave/types | operationId list-leave-types | https://developer.everee.com/reference/list-leave-types.md
- POST /leave/types | operationId create-leave-type | https://developer.everee.com/reference/create-leave-type.md
- DELETE /leave/types/{leaveTypeName} | operationId delete-leave-type | https://developer.everee.com/reference/delete-leave-type.md
- GET /leave/policies | operationId list-leave-policies | https://developer.everee.com/reference/list-leave-policies.md
- POST /leave/policies | operationId create-leave-policy | https://developer.everee.com/reference/create-leave-policy.md
- PUT /leave/policies/{policyId} | operationId update-leave-policy | https://developer.everee.com/reference/update-leave-policy.md
- DELETE /leave/policies/{policyId} | operationId delete-leave-policy | https://developer.everee.com/reference/delete-leave-policy.md
- GET /leave/policies/unenrolled | operationId list-unenrolled-workers | https://developer.everee.com/reference/list-unenrolled-workers.md
- POST /leave/policies/{policyId}/enrollments | operationId enroll-workers-in-leave-policy | https://developer.everee.com/reference/enroll-workers-in-leave-policy.md
- POST /leave/policies/{policyId}/unenroll | operationId unenroll-workers-from-leave-policy | https://developer.everee.com/reference/unenroll-workers-from-leave-policy.md
- GET /workers/{workerId}/leave/balances | operationId get-worker-leave-balances | https://developer.everee.com/reference/get-worker-leave-balances.md
- PUT /workers/{workerId}/leave/balances/{leaveTypePayCode} | operationId update-worker-leave-balance | https://developer.everee.com/reference/update-worker-leave-balance.md
- PUT /workers/{workerId}/leave/award-rules | operationId update-worker-leave-award-rules | https://developer.everee.com/reference/update-worker-leave-award-rules.md
- POST /garnishments | operationId (see page)
- POST /income-withholding-orders | operationId (see page)
RULES
- Changes apply from an effective date and never change past payrolls. Show the effective date and don't offer back-dating that Everee would reject.
- Everee calculates garnishment limits and handles remittance. Send the order, never calculate or remit it yourself.
- Build every flow as a loop around reads that tell you what is left: make a change, read the state again (readiness.missing for onboarding, a run's blockers and the requirements behind them for payroll, a funding's status and resolutionInstructions), and act on what is left. Never hard-code the steps: codes appear and disappear. Map each code you know to a screen, and show resolutionInstructions for any you don't. Use webhooks (company-onboarding.status-changed, requirement.created, payroll-run.status-changed) to know when to read again, not instead of the read. A requirement does NOT open when a worker is created or changed: it opens only when a payroll calculation or a returned deposit finds the problem, so calculate runs early.
- Base URL https://api.everee.com/integration/v1. The partner key is the HTTP Basic user name for the Company Onboarding API: the test key (zk_test_...) creates and reaches only Sandbox companies and the production key (zk_prod_...), issued after Everee approves the integration, only Production companies. A company in the other environment returns 404. The company key (tsk_...) is the HTTP Basic user name for everything else, plus an x-everee-tenant-id header holding the company's id.
- Keep every key on the server. Everee rejects browser requests. Read keys from a secrets store, never log them, never hard-code them.
- Rate limit: 100 operations per 5 seconds per key (see the RateLimit-Policy header). Back off on 429.
- Only payables and payroll run items have an idempotency key (externalId). Make other creates safe yourself: look first, keep the Everee ID next to your own record.
- Test against a sandbox instance (tsk_test_... keys) before production. Nothing in a URL selects the environment; the key does. Sandbox company creation is limited (25 alive at once, 50 created in any rolling 7 days; evaluation access before the agreement is signed: 1 and 2, 14 days, companies created without an agreement), and each Sandbox company is limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours: a refused request returns 429 with when the next can be created, and a sandbox company you no longer need can be retired.
DONE WHEN
- A deduction can be started, changed and ended in sandbox, and reconciliation matches the election after a sandbox payroll.
- Leave balances shown to users come from the API, not a local calculation.
TESTS TO WRITE
- Start, change and end a deduction each send the right effective date, and a past end date is blocked in your UI.
- After a sandbox payroll, the reconciliation endpoint totals match the elections, or the screen shows the difference.
- A garnishment or income-withholding order is sent as multipart with its document.
- Leave balances on screen come from the API, never from a local calculation.
If a fact you need isn't in the docs, ask me. Don't guess endpoint paths, field names or business rules.If you administer benefits or retirement plans, you hold what each participant elected. Everee holds the payroll that deducts it.
| Endpoint | Use it for |
|---|---|
| Apply benefit deduction | Medical, dental, vision, HSA, FSA, life, disability and similar |
| Apply retirement deduction | 401(k), Roth 401(k), 403(b), IRAs and state retirement plans, with employer match tiers |
| Apply other deduction | Dues, savings and loan repayments |
A deduction is identified by the worker and the pay code, so you never store an Everee deduction ID. Other deductions also take your own externalId.
| You send | What happens |
|---|---|
effectiveDate | The deduction is created, or updated if it exists |
effectiveDate and effectiveEndDate | The same, with an end date |
Only effectiveEndDate | The existing deduction is ended |
| Neither | Rejected with 422 |
curl -X POST "https://api.everee.com/integration/v1/deductions/retirement" \
-u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID" \
-H "Content-Type: application/json" \
-d '{
"workerId": "emp-1042", "payCode": "ERISA_401K",
"deductionPercentage": { "employeePercentage": 0.05 },
"employerMatchTiers": [
{ "matchRate": 1.0, "percentOfWages": 0.03 },
{ "matchRate": 0.5, "percentOfWages": 0.02 } ],
"effectiveDate": "2027-01-01"
}'0.05 for 5%.deductionAmount or deductionPercentage. Fixed amounts need a periodType.hsaLimitType. State retirement Roth 401(k) pay codes need a state prefix such as CA_STATE_RETIREMENT_PLAN_ROTH_401K. Custom pay codes work too.Guide to the Deductions API · Guide: syncing deductions · Get deduction reconciliation
TIME_OFF_TYPE_JURYDUTY. Pass state for sick leave that accrues only on wages in one state (not available to every company yet; best-match accrual applies).timeOffPolicyId when you create an employee.| List in a policy | How it's earned | Pays out |
|---|---|---|
accruedLeaveTypes | A little at a time as workers work, such as 1 hour per 30 worked | Yes |
frontLoadedLeaveTypes | A lump of hours at the start of each year, quarter or month | Yes |
unpaidFrontLoadedLeaveTypes | The same, for unpaid leave | No |
| A leave payout is a payable | |
|---|---|
payCode | The leave type's pay code, always starting TIME_OFF_TYPE_ |
unitCount | Required. The hours paid out. The request is rejected without it. |
amount | You calculate it, as with any payable. |
| Balance check | If the worker is enrolled, the hours can't exceed the available balance. Check balances first. |
| Cost centers | Use the costCenters on the payable. Leave Everee generates uses the worker's default cost centers. |
Deleting a leave type or policy removes it if unused and archives it otherwise. A policy with active enrollments can't be removed. Contractors can't be enrolled. Guide to the Leave Accrual API · Guide: managing leave and PTO
Everee automatically calculates each garnishment against the applicable limits and handles remittance, so you send the order, not the math. Garnishment and child support income withholding order endpoints exist, but their reference pages are still to come. Ask your Everee contact before building against them.
| Method | Endpoint | What it does | Docs |
|---|---|---|---|
| POST | /integration/v1/deductions/benefits | Start, change or end a benefit deduction | Reference |
| POST | /integration/v1/deductions/retirement | Start, change or end a retirement deduction | Reference |
| POST | /integration/v1/deductions/other | Start, change or end another deduction | Reference |
| GET | /integration/v1/deductions/reconciliation | What payroll deducted for a pay period | Reference |
| GET | /integration/v1/leave/types | List leave types | Reference |
| POST | /integration/v1/leave/types | Create a leave type | Reference |
| DELETE | /integration/v1/leave/types/{leaveTypeName} | Delete or archive a leave type | Reference |
| GET | /integration/v1/leave/policies | List leave policies | Reference |
| POST | /integration/v1/leave/policies | Create a leave policy | Reference |
| PUT | /integration/v1/leave/policies/{policyId} | Update name and description | Reference |
| DELETE | /integration/v1/leave/policies/{policyId} | Delete or archive a policy | Reference |
| GET | /integration/v1/leave/policies/unenrolled | Workers with no policy | Reference |
| POST | /integration/v1/leave/policies/{policyId}/enrollments | Enroll workers | Reference |
| POST | /integration/v1/leave/policies/{policyId}/unenroll | Unenroll workers | Reference |
| GET | /integration/v1/workers/{workerId}/leave/balances | A worker's balances | Reference |
| PUT | /integration/v1/workers/{workerId}/leave/balances/{leaveTypePayCode} | Set a balance | Reference |
| PUT | /integration/v1/workers/{workerId}/leave/award-rules | Change one worker's award rules | Reference |
| POST | /integration/v1/garnishments | Apply or end a garnishment (multipart) | Docs coming |
| POST | /integration/v1/income-withholding-orders | Apply or end a child support order (multipart) | Docs coming |
Add pay to a payroll run, calculate it, fix what blocks it, approve it, and follow the money.
A payroll run is one payroll for a company. You add each worker's pay as items, Everee calculates taxes and net pay, and you approve the run through the API. Nobody needs an Everee sign-in. Everee then funds the run from the company's funding account and pays the workers. Nothing moves until the run is approved, so it's always safe to add and change items early and often.
Copy this into your coding agent, or point the agent at this page and it can read the prompt directly. It names the docs to read first, the operations to call, the rules that matter for this area, and the tests to write. Open as Markdown
GOAL
Build the payroll-run experience: show each company's runs, add pay as items, calculate, resolve blockers, approve, and follow the funding and payouts until workers are paid.
READ FIRST (each page also has a Markdown version at the same URL with .md added; the docs index is https://developer.everee.com/llms.txt)
- https://developer.everee.com/docs/running-payroll
- https://developer.everee.com/docs/funding-payroll
- https://developer.everee.com/docs/corrections-and-off-cycle-runs
- https://developer.everee.com/docs/after-payroll
- https://developer.everee.com/reference/payroll-run-api-guide
- https://developer.everee.com/docs/gross-pay-basics
- https://developer.everee.com/reference/add-payroll-run-items
- https://developer.everee.com/reference/list-payroll-run-blockers
- https://developer.everee.com/reference/approve-payroll-run
- https://developer.everee.com/reference/retrieve-payroll-run-funding
- https://developer.everee.com/reference/net-payouts-api-guide
- https://developer.everee.com/reference/requirements-api-guide
- https://developer.everee.com/docs/payroll-run-events
- Reference implementation: the Payroll Run Simulator at https://files.everee.com/simulators/payroll-run.html. Walk it before you design the screens. Its developer console shows each call, the live run JSON, the signed webhooks and the code, and its API notes map each part of the screen to the fields behind it. Match its behavior, not its look.
BUILD
- Runs: list them (GET /payroll-runs), open a regular run with a target pay date (POST /payroll-runs/{id}/open), or create an off-cycle run (POST /payroll-runs/off-cycle). Offer only the dates from GET /payroll-runs/{id}/pay-dates (or GET /payroll-runs/off-cycle/pay-dates before creating an off-cycle run), read when the choice is shown: earliestPayDate and earliestPayDateUntil (when it moves later), options in a 30-day window (each payDate with its fundingDate and approvalDeadline, to show before the user picks), and holidays to explain missing weekdays. If opening returns 400 because the earliest date moved, read the dates again. Show dates and times in the user's own time zone; the API sends UTC.
- Pay: POST /payroll-runs/{id}/items with a body of {"items": [...]}: each item has your own externalId, the worker (externalWorkerId or workerId), label, payCode and amount, plus unitCount and unitRate for pay per unit. Everee sets type, payableModel and earningTimestamp (the run's periodEnd) and ignores them if sent. Up to 1,000 items per request, under the right pay codes. Remove an item with DELETE, or exclude a worker's payment.
- Calculate (POST /payroll-runs/{id}/calculate), then show blockers (GET /payroll-runs/{id}/blockers) with their resolutionInstructions, and the payments (GET /payroll-runs/{id}/payments) for review.
- Approve (POST /payroll-runs/{id}/approve) before the run's approvalDeadline, with a reopen action until reopenDeadline.
- Funding and payouts: the run's fundingDate (debit day) and expectedPaidDate (while PROCESSING), GET /payroll-runs/{id}/funding, a retry action (POST /payroll-runs/{id}/funding/retry) when funding needs action, and net payouts for each worker with their sendDate and expectedClearingDate. Show every date from these fields; never work one out.
OPERATIONS (all paths are under https://api.everee.com/integration/v1; each reference page, with .md added, lists its request and response fields)
- GET /payroll-runs | operationId list-payroll-runs | https://developer.everee.com/reference/list-payroll-runs.md
- GET /payroll-runs/{id} | operationId retrieve-payroll-run | https://developer.everee.com/reference/retrieve-payroll-run.md
- GET /payroll-runs/off-cycle/pay-dates | operationId list-off-cycle-pay-dates | https://developer.everee.com/reference/list-off-cycle-pay-dates.md
- POST /payroll-runs/off-cycle | operationId create-off-cycle-payroll-run | https://developer.everee.com/reference/create-off-cycle-payroll-run.md
- GET /payroll-runs/{id}/pay-dates | operationId list-payroll-run-pay-dates | https://developer.everee.com/reference/list-payroll-run-pay-dates.md
- POST /payroll-runs/{id}/open | operationId open-payroll-run | https://developer.everee.com/reference/open-payroll-run.md
- PUT /payroll-runs/{id}/pay-date | operationId update-payroll-run-pay-date | https://developer.everee.com/reference/update-payroll-run-pay-date.md
- GET /payroll-runs/{id}/items | operationId list-payroll-run-items | https://developer.everee.com/reference/list-payroll-run-items.md
- POST /payroll-runs/{id}/items | operationId add-payroll-run-items | https://developer.everee.com/reference/add-payroll-run-items.md
- DELETE /payroll-runs/{id}/items/{itemId} | operationId remove-payroll-run-item | https://developer.everee.com/reference/remove-payroll-run-item.md
- GET /payroll-runs/{id}/payments | operationId list-payroll-run-payments | https://developer.everee.com/reference/list-payroll-run-payments.md
- POST /payroll-runs/{id}/payments/{paymentId}/exclude | operationId exclude-payroll-run-payment | https://developer.everee.com/reference/exclude-payroll-run-payment.md
- POST /payroll-runs/{id}/calculate | operationId calculate-payroll-run | https://developer.everee.com/reference/calculate-payroll-run.md
- GET /payroll-runs/{id}/blockers | operationId list-payroll-run-blockers | https://developer.everee.com/reference/list-payroll-run-blockers.md
- POST /payroll-runs/{id}/approve | operationId approve-payroll-run | https://developer.everee.com/reference/approve-payroll-run.md
- POST /payroll-runs/{id}/reopen | operationId reopen-payroll-run | https://developer.everee.com/reference/reopen-payroll-run.md
- GET /payroll-runs/{id}/funding | operationId retrieve-payroll-run-funding | https://developer.everee.com/reference/retrieve-payroll-run-funding.md
- POST /payroll-runs/{id}/funding/retry | operationId retry-payroll-run-funding | https://developer.everee.com/reference/retry-payroll-run-funding.md
RULES
- Payroll runs are the only way to pay workers in Payroll Infrastructure. The Payables and Timesheets endpoints that create pay return 400.
- The externalId on an item is its idempotency key. Build it from stable data, never a timestamp or random value, and reuse it on a retry. Adding items is all-or-nothing: if any item fails, nothing is saved and the 400 lists every failing item.
- Read approvalDeadline, reopenDeadline and processingBlockedDeadline from the run. Never work deadlines out yourself. Every change sends payroll-run.status-changed: wait for it instead of polling, and calculate again after any change before approving. A request the run's status doesn't allow returns 409.
- Correct pay that has already been paid by resending the item to a later run with the same externalId, the FULL corrected amount (not the difference), and correction-authorized=true.
- Everee does not contact workers. Your product tells them about their pay (net-payout.paid carries each payout), fixes returned deposits (net-payout.returned, then update the bank account and Everee retries), and delivers pay statements (Worker Payment History API) and W-2s and 1099s (list-files with document-type=TAXES). Workers are paid by direct deposit only.
- Lists are cursor-paginated: send nextCursor as after until hasNextPage is false. Don't send page, size or sort.
- When funding needs action, show resolutionInstructions and offer the retry before processingBlockedDeadline. A returned debit after workers were paid means no run can be approved until it is repaid: tell the user to contact Everee Customer Success. Never collect bank credentials yourself.
- Build every flow as a loop around reads that tell you what is left: make a change, read the state again (readiness.missing for onboarding, a run's blockers and the requirements behind them for payroll, a funding's status and resolutionInstructions), and act on what is left. Never hard-code the steps: codes appear and disappear. Map each code you know to a screen, and show resolutionInstructions for any you don't. Use webhooks (company-onboarding.status-changed, requirement.created, payroll-run.status-changed) to know when to read again, not instead of the read. A requirement does NOT open when a worker is created or changed: it opens only when a payroll calculation or a returned deposit finds the problem, so calculate runs early.
- Base URL https://api.everee.com/integration/v1. The partner key is the HTTP Basic user name for the Company Onboarding API: the test key (zk_test_...) creates and reaches only Sandbox companies and the production key (zk_prod_...), issued after Everee approves the integration, only Production companies. A company in the other environment returns 404. The company key (tsk_...) is the HTTP Basic user name for everything else, plus an x-everee-tenant-id header holding the company's id.
- Keep every key on the server. Everee rejects browser requests. Read keys from a secrets store, never log them, never hard-code them.
- Rate limit: 100 operations per 5 seconds per key (see the RateLimit-Policy header). Back off on 429.
- Only payables and payroll run items have an idempotency key (externalId). Make other creates safe yourself: look first, keep the Everee ID next to your own record.
- Test against a sandbox instance (tsk_test_... keys) before production. Nothing in a URL selects the environment; the key does. Sandbox company creation is limited (25 alive at once, 50 created in any rolling 7 days; evaluation access before the agreement is signed: 1 and 2, 14 days, companies created without an agreement), and each Sandbox company is limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours: a refused request returns 429 with when the next can be created, and a sandbox company you no longer need can be retired.
DONE WHEN
- In a sandbox company, I can open a run, add items, calculate, fix a blocker, approve, reopen, and see its funding, from my UI.
- Retrying an items request creates no duplicate, and every failing item in a rejected request is shown to the user.
TESTS TO WRITE
- Sending the same items twice with the same externalId results in one set of items on the run (a unit test on the externalId builder, and a call to GET /payroll-runs/{id}/items).
- The externalId is built from stable data: the same inputs always give the same id.
- A rejected items request (400) shows every failing item with its errorCode and saves nothing, so the corrected request can be resent whole.
- Any change after a calculation sends the run back to OPEN, and the screen requires a new calculation before it offers Approve.
- A 409 from a status the run doesn't allow is shown to the user, not retried blindly.
- A funding that needs action shows its resolutionInstructions, and the retry action is offered only before processingBlockedDeadline.
If a fact you need isn't in the docs, ask me. Don't guess endpoint paths, field names or business rules.400, and payments can't be approved outside a run. Hours, overtime, bonuses and reimbursements all go in as items under pay codes. See Pay codes and gross pay basics.approvalDeadlineWhen the company's payroll calendar creates a pay period, Everee creates its run as UNOPENED and sends payroll-run.created. Open it with the date workers should be paid. To offer the choice, list the run's pay dates when you show it: Everee returns the earliest pay date and earliestPayDateUntil, when it moves later; every pay date the run can take in the next 30 days, each with its fundingDate and approvalDeadline; and the bank holidays in that window, so you can say why a weekday isn't offered. Offer only those dates, and show what each one means before the user picks it. If opening returns 400, list the dates again. Show dates and times in your users' own time zone. Opening sets the run's approvalDeadline: approve by then for workers to be paid on the pay date. Read every deadline from the run, never work it out yourself.
For an extra payroll such as a bonus run or a final paycheck, list the off-cycle pay dates, then create an off-cycle run instead. It starts OPEN.
curl -X POST "https://api.everee.com/integration/v1/payroll-runs/4821/open" \
-u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID" \
-H "Content-Type: application/json" \
-d '{ "targetPayDate": "2026-11-20" }'An item is one amount for one worker under a pay code. You calculate the amount; Everee calculates taxes, deductions and net pay. externalId is the item's idempotency key: build it from stable data, never a timestamp or random value. Sending it again updates the item, so retrying is safe. Send the worker, a label, a payCode and an amount, plus unitCount and unitRate for pay per unit such as hours. Everee sets the item's type, payableModel and earningTimestamp (the last day of the run's pay period) and ignores them if you send them.
Send up to 1,000 items per request, and as many requests as you need. Everee checks every item before saving any: if some can't be accepted, nothing is saved and the 400 lists every failing item, so you can fix them all and send the request again.
curl -X POST "https://api.everee.com/integration/v1/payroll-runs/4821/items" \
-u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID" \
-H "Content-Type: application/json" \
-d '{
"items": [ {
"externalId": "shift-88213",
"externalWorkerId": "emp-1042",
"label": "Regular hours, Nov 3",
"payCode": "REGULAR_HOURLY",
"amount": { "amount": "200.00", "currency": "USD" },
"unitCount": 8,
"unitRate": { "amount": "25.00", "currency": "USD" }
} ]
}'Calculation runs in the background and the run moves to CALCULATING. Wait for the payroll-run.status-changed event rather than polling. The run ends up READY when nothing blocks it, BLOCKED when something does, or back at OPEN when items arrived during the calculation. Any change after a calculation (an item added, updated or removed, or a payment excluded) sends the run back to OPEN, so calculate again before approving.
curl -X POST "https://api.everee.com/integration/v1/payroll-runs/4821/calculate" \ -u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID"
List the run's blockers. Each one says what it's about (subjectType and subjectId), its type, and resolutionInstructions for fixing it. Most come from a requirement. A requirement opens only when a payroll calculation or a returned deposit finds the problem, never when a worker is created or changed, so calculate runs early to find them well before the approval deadline. When the last blocker is resolved the run goes back to OPEN: calculate again. If a worker can't be fixed in time, exclude their payment so the rest of the run can be paid.
curl -X GET "https://api.everee.com/integration/v1/payroll-runs/4821/blockers" \ -u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID"
List the run's payments to show each worker's wages, taxes, deductions, employer costs and net pay before anyone approves. Approve a READY run before its approvalDeadline. It moves to APPROVING, then APPROVED. Until reopenDeadline you can reopen it: its payments are unapproved and it goes back to OPEN. Approval is refused with 409 while a funding debit returned after workers were paid hasn't been repaid.
curl -X POST "https://api.everee.com/integration/v1/payroll-runs/4821/approve" \ -u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID"
The run's fundingDate is the day the company's account is debited, from the moment it has a pay date. Once a run is approved, retrieve its funding to see the amount and the status. Each worker's net pay then goes out as one or more net payouts, by direct deposit (workers are paid by direct deposit only). A returned payout can be retried. The run is PAID when every payout has gone out and PARTIALLY_PAID when some didn't reach the worker. Each payout has a sendDate, normally the pay date, and an expectedClearingDate. A direct deposit counts as delivered two banking days after it's sent, if it hasn't come back, and while the run is PROCESSING its expectedPaidDate says when Everee expects to mark it PAID.
curl -X GET "https://api.everee.com/integration/v1/payroll-runs/4821/funding" \ -u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID"
Every change sends a payroll-run.status-changed event with the run and its previous status. A request the run's status doesn't allow returns 409.
| Status | What it means | What you can do |
|---|---|---|
UNOPENED | A regular run waiting for its pay date | Open it |
OPEN | Taking items | Add, update and remove items, exclude payments, change the pay date, calculate |
CALCULATING | Everee is calculating its payments | Wait for the status-changed event. Calculating again is safe |
BLOCKED | Calculated, but something must be fixed first | Read the blockers, fix them, calculate again |
READY | Calculated, nothing blocks it | Approve it. Any change sends it back to OPEN |
APPROVING then APPROVED | Your approval is being processed, then done | Reopen it before reopenDeadline |
PROCESSING | Everee is moving the run's money | Wait |
PROCESSING_BLOCKED | The run's funding needs your action | Fix it and retry the funding before processingBlockedDeadline |
PAID or PARTIALLY_PAID | Every payout went out, or some didn't reach the worker | Check the net payouts |
Each item has your externalId. What happens depends on whether Everee has seen it before.
The item's externalId is... | What happens |
|---|---|
| New | The item is added to the worker's payment in the run. One worker never has two payments in one run. |
| Already an item of this run | The item is updated, and the difference added to the worker's payment |
| On a payment you excluded | The item moves to this run |
| On a payment that's been paid | Rejected with PAYABLE_ALREADY_PAID, unless you send correction-authorized=true. Resend the item to a later run with the same externalId and the full corrected amount, not the difference. This item then corrects the paid one |
| On another unpaid payment | Rejected with PAYABLE_ON_ANOTHER_PAYMENT. Remove it there first |
Items carry the worker as workerId and externalWorkerId. Every list is cursor-paginated: send each page's nextCursor as after until hasNextPage is false.
| To... | Use | While the run is |
|---|---|---|
| Move the pay date | Change the pay date | OPEN, READY, BLOCKED |
| Add or update pay | Add items | OPEN, CALCULATING, READY, BLOCKED |
| Remove pay | Remove an item | OPEN, READY, BLOCKED |
| Leave a worker out | Exclude a payment | OPEN, CALCULATING, READY, BLOCKED |
| Take back an approval | Reopen the run | APPROVED, before reopenDeadline |
| Correct pay that's been paid | Add items with correction-authorized=true, the same externalId and the full corrected amount | A later run that takes items |
Everee may hold a run's funding before sending it, for example when the funding account lacks the money or the run is funded by wire. A funding that needs action puts the run in PROCESSING_BLOCKED. Do what resolutionInstructions says, then retry the funding before processingBlockedDeadline. If the deadline passes first, the run goes back to OPEN: approve it again for a later pay date. A balance too low to cover a run blocks it with INSUFFICIENT_FUNDS when it is calculated.
| Funding status | Meaning |
|---|---|
PENDING | Not sent yet. The amount and date are what Everee expects to debit |
UNDER_REVIEW | Everee is reviewing it before sending it |
NEEDS_ACTION | You need to act. resolutionInstructions says what to do |
FUNDED | The money was collected |
FAILED | The debit failed or was returned |
Subscribe a webhook endpoint instead of polling. Each event carries the same object the API returns. Payroll run events
| Event | Use it to |
|---|---|
payroll-run.created | Find each new run to open |
payroll-run.status-changed | Know when a calculation finishes, an approval is processed, a run is blocked or paid. Carries previousStatus |
payroll-run.funded, payroll-run.funding-failed | Follow the run's funding |
requirement.created, requirement.resolved | Prompt someone to fix a requirement, and know when it's fixed |
net-payout.paid, net-payout.returned, net-payout.retried | Tell workers they've been paid, and follow returned deposits. |
| When a funding debit is returned | What happens |
|---|---|
| Before workers were paid | The run goes back to OPEN with a FUNDING_FAILED blocker. Make sure the account has the money, then calculate and approve again |
| After workers were paid | The company gets a FUNDING_FAILED requirement, and no run can be approved until the debit is repaid. Transfer it to Everee Customer Success |
Everee doesn't contact Payroll Infrastructure workers, so your product is where they see what they were paid.
| To | Use |
|---|---|
| Tell a worker they've been paid | Net payouts and the net-payout.paid event |
| Handle a returned deposit | On net-payout.returned, tell the worker and ask for correct bank details. Update the account with the Worker Direct Deposit API. Everee retries and sends net-payout.retried |
| Show pay history and pay statements | Worker Payment History API |
| Give a worker their W-2 or 1099 | List worker files with document-type=TAXES |
| Reconcile and post to the GL | See area 6. After payroll |
externalId. Approving without calculating again after a change. Working out deadlines instead of reading them from the run. Polling instead of using payroll-run.status-changed. Retrying funding after processingBlockedDeadline. Not setting workLocationId, so wages are taxed in the wrong place.| Method | Endpoint | What it does | Docs |
|---|---|---|---|
| GET | /integration/v1/payroll-runs | List payroll runs | Reference |
| GET | /integration/v1/payroll-runs/{id} | Retrieve a payroll run | Reference |
| GET | /integration/v1/payroll-runs/off-cycle/pay-dates | List off-cycle pay dates | Reference |
| POST | /integration/v1/payroll-runs/off-cycle | Create an off-cycle run | Reference |
| GET | /integration/v1/payroll-runs/{id}/pay-dates | List a run's pay dates | Reference |
| POST | /integration/v1/payroll-runs/{id}/open | Open a run | Reference |
| PUT | /integration/v1/payroll-runs/{id}/pay-date | Change the pay date | Reference |
| GET | /integration/v1/payroll-runs/{id}/items | List items | Reference |
| POST | /integration/v1/payroll-runs/{id}/items | Add or update items | Reference |
| DELETE | /integration/v1/payroll-runs/{id}/items/{itemId} | Remove an item | Reference |
| GET | /integration/v1/payroll-runs/{id}/payments | List payments | Reference |
| POST | /integration/v1/payroll-runs/{id}/payments/{paymentId}/exclude | Exclude a payment | Reference |
| POST | /integration/v1/payroll-runs/{id}/calculate | Calculate | Reference |
| GET | /integration/v1/payroll-runs/{id}/blockers | List blockers | Reference |
| POST | /integration/v1/payroll-runs/{id}/approve | Approve | Reference |
| POST | /integration/v1/payroll-runs/{id}/reopen | Reopen | Reference |
| GET | /integration/v1/payroll-runs/{id}/funding | Retrieve funding | Reference |
| POST | /integration/v1/payroll-runs/{id}/funding/retry | Retry funding | Reference |
Payment data, cost segments, the payroll journal with GL codes, and reports.
After payroll runs, Everee gives you three views of the same payments plus on-demand reports. They aren't meant to match one for one: the journal groups by funding date, the segments by earning or pay date, the payment data by pay date. Use the journal for the books and the segments for analysis.
Journal lines ready to post, and file-based reports a finance user can download. The prose below covers the full workflow; this is the kind of experience you build.
REGULAR_HOURLYFIELD_HOURSMEDICAL_INSURANCEMEDICAL_INSURANCEMEDICAL_INSURANCECopy this into your coding agent, or point the agent at this page and it can read the prompt directly. It names the docs to read first, the operations to call, the rules that matter for this area, and the tests to write. Open as Markdown
GOAL
Build financial reporting for the company's finance users: payments, payroll cost, a balanced payroll journal ready to post to a general ledger, and file-based reports.
READ FIRST (each page also has a Markdown version at the same URL with .md added; the docs index is https://developer.everee.com/llms.txt)
- https://developer.everee.com/docs/after-payroll
- https://developer.everee.com/reference/get-payment-data
- https://developer.everee.com/reference/list-payroll-journal-fundings
- https://developer.everee.com/reference/get-payroll-journal-for-funding
- https://developer.everee.com/reference/upsert-gl-mappings
- https://developer.everee.com/reference/reports-api-guide
- https://developer.everee.com/reference/retrieve-report-run
- https://developer.everee.com/reference/get-payroll-cost-segments-by-period
BUILD
- A journal screen: list fundings (GET /payroll-costs/journal/fundings), open one (/fundings/{id}) to show balanced debit and credit lines by category, type, GL code and account, and a GL-mapping editor (GET/PUT /payroll-costs/journal/gl-mappings and /options).
- Cost views from /payroll-costs/segments/by-period and /by-cost-centers, payment data from GET /payment-data, a worker pay history, and deduction reconciliation.
- A reports screen: request a report run (POST /reports/{report-type}), wait for the report.completed webhook, then retrieve the run for a download link. Also list worker files and company tax files.
OPERATIONS (all paths are under https://api.everee.com/integration/v1; each reference page, with .md added, lists its request and response fields)
- GET /payment-data | operationId get_payment_data | https://developer.everee.com/reference/get-payment-data.md
- GET /payroll-costs/segments/by-period | operationId get_payroll_cost_segments_by_period | https://developer.everee.com/reference/get-payroll-cost-segments-by-period.md
- GET /payroll-costs/segments/by-cost-centers | operationId get_payroll_cost_segments_by_cost_centers | https://developer.everee.com/reference/get-payroll-cost-segments-by-cost-centers.md
- GET /payroll-costs/journal/fundings | operationId list_payroll_journal_fundings | https://developer.everee.com/reference/list-payroll-journal-fundings.md
- GET /payroll-costs/journal/fundings/{fundingId} | operationId get_payroll_journal_for_funding | https://developer.everee.com/reference/get-payroll-journal-for-funding.md
- PUT /payroll-costs/journal/gl-mappings | operationId upsert_payroll_journal_gl_mappings | https://developer.everee.com/reference/upsert-gl-mappings.md
- GET /payroll-costs/journal/gl-mappings | operationId list_payroll_journal_gl_mappings | https://developer.everee.com/reference/list-gl-mappings.md
- GET /payroll-costs/journal/gl-mappings/options | operationId list_payroll_journal_gl_mapping_options | https://developer.everee.com/reference/list-gl-mapping-options.md
- POST /reports/{report-type} | operationId create-report-run-{report-type} | https://developer.everee.com/reference/reports-api-guide.md
- GET /reports/{id} | operationId retrieve-report-run | https://developer.everee.com/reference/retrieve-report-run.md
- GET /deductions/reconciliation | operationId get_deduction_reconciliation | https://developer.everee.com/reference/get-deduction-reconciliation.md
- GET /workers/{id}/payment-history | operationId retrieve-a-workers-pay-history | https://developer.everee.com/reference/retrieve-a-workers-pay-history.md
- GET /workers/files | operationId list-files | https://developer.everee.com/reference/list-files.md
- GET /company-files/tax/{taxYear} | operationId list-company-tax-files | https://developer.everee.com/reference/list-company-tax-files.md
RULES
- Journal lines must balance. If they don't, show the discrepancy instead of posting it.
- Report download links expire. Retrieve the run again for a fresh link instead of storing the link.
- Don't recompute payroll cost. Show Everee's numbers and let finance users export them.
- Build every flow as a loop around reads that tell you what is left: make a change, read the state again (readiness.missing for onboarding, a run's blockers and the requirements behind them for payroll, a funding's status and resolutionInstructions), and act on what is left. Never hard-code the steps: codes appear and disappear. Map each code you know to a screen, and show resolutionInstructions for any you don't. Use webhooks (company-onboarding.status-changed, requirement.created, payroll-run.status-changed) to know when to read again, not instead of the read. A requirement does NOT open when a worker is created or changed: it opens only when a payroll calculation or a returned deposit finds the problem, so calculate runs early.
- Base URL https://api.everee.com/integration/v1. The partner key is the HTTP Basic user name for the Company Onboarding API: the test key (zk_test_...) creates and reaches only Sandbox companies and the production key (zk_prod_...), issued after Everee approves the integration, only Production companies. A company in the other environment returns 404. The company key (tsk_...) is the HTTP Basic user name for everything else, plus an x-everee-tenant-id header holding the company's id.
- Keep every key on the server. Everee rejects browser requests. Read keys from a secrets store, never log them, never hard-code them.
- Rate limit: 100 operations per 5 seconds per key (see the RateLimit-Policy header). Back off on 429.
- Only payables and payroll run items have an idempotency key (externalId). Make other creates safe yourself: look first, keep the Everee ID next to your own record.
- Test against a sandbox instance (tsk_test_... keys) before production. Nothing in a URL selects the environment; the key does. Sandbox company creation is limited (25 alive at once, 50 created in any rolling 7 days; evaluation access before the agreement is signed: 1 and 2, 14 days, companies created without an agreement), and each Sandbox company is limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours: a refused request returns 429 with when the next can be created, and a sandbox company you no longer need can be retired.
DONE WHEN
- A sandbox funding's journal renders balanced and can be exported or posted with my GL mapping.
- A requested report completes via webhook and downloads with a fresh link.
TESTS TO WRITE
- A journal's debits equal its credits, otherwise the screen shows the difference instead of posting it.
- An expired report link is refreshed by retrieving the run again.
- The report.completed webhook triggers the retrieval, and a duplicate event doesn't download twice.
- A GL mapping saved with PUT reads back identically with GET.
- Cost and payment totals on screen equal the API's numbers.
If a fact you need isn't in the docs, ask me. Don't guess endpoint paths, field names or business rules.| You want to... | Use | Organized by |
|---|---|---|
| Post payroll to your general ledger | Payroll journal | Funding, as balanced debits and credits with your GL codes |
| Bill clients or report cost by job | Cost segments | Cost center, fully loaded with taxes and benefit costs |
| Check individual payments | Payment data | Payment, one per worker per pay period, every line itemized |
A funding is the transfer of money that covers one or more payments. Each funding's journal balances on its own: totalDebits equals totalCredits. Run the loop daily, or when payment.paid arrives.
FUNDEDcurl -X GET "https://api.everee.com/integration/v1/payroll-costs/journal/fundings?start-date=2026-10-01&end-date=2026-10-31" \ -u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID"
fundingId and cursors as opaque.FUNDED if you want certainty.group-by to split lines by fewer fields. The journal balances either way.Guide to the payroll journal · Guide: reconciling payroll and the GL
A mapping works at three levels of detail: category, type and detail. The most specific match wins. Sending your whole set on every sync is safe.
FIELD_HOURS with the detail "Night Field Hours".FIELD_HOURS lines, whatever the detail.null: post it to a suspense account, don't skip it.curl -X PUT "https://api.everee.com/integration/v1/payroll-costs/journal/gl-mappings" \
-u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID" \
-H "Content-Type: application/json" \
-d '[
{ "category": "GrossPay", "glCode": "6000" },
{ "category": "GrossPay", "transactionType": "FIELD_HOURS", "glCode": "6010" },
{ "category": "EmployerTaxes", "glCode": "6200" },
{ "category": "Withholdings", "glCode": "2100" },
{ "category": "Liabilities", "glCode": "2110" },
{ "category": "PayrollFunding", "glCode": "1000" }
]'If approval groups or work locations need different codes, scope your mappings by one of them. A scoped group's own mappings are checked first, even over a more specific master mapping. Guide to GL mappings
Each report has its own endpoint. Most take a date range or a year and quarter. Some take none: send an empty object. Reports are Excel files. Payroll Review refuses to run while payments are calculating (412 with Retry-After).
SUBMITTEDdownloadUrl once COMPLETEDPOST /reports/payroll-reviewReferencePOST /reports/payments-by-pay-periodReferencePOST /reports/payments-by-pay-dateReferencePOST /reports/fundingReferencePOST /reports/pay-correction-by-earning-periodReferencePOST /reports/pay-correction-by-corrected-periodReferencePOST /reports/pay-correction-outstanding-repaymentReferencePOST /reports/benefits-and-deductionsReferencePOST /reports/garnishment-withholdingReferencePOST /reports/negative-balancesReferencePOST /reports/workers-compReferencePOST /reports/outstanding-paid-leave-liabilityReferencePOST /reports/w2-detailsReferencePOST /reports/1099-detailsReferencePOST /reports/940-detailsReferencePOST /reports/941-detailsReferencePOST /reports/w4-electionsReferencePOST /reports/worker-censusReferencePOST /reports/employee-navigator-demographicReferencePOST /reports/employee-navigator-deductionReferencecurl -X GET "https://api.everee.com/integration/v1/payroll-costs/segments/by-period?min-earning-date=2026-10-05&max-earning-date=2026-10-11" \ -u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID"
curl -X GET "https://api.everee.com/integration/v1/payment-data?pay-period-start-date=2026-10-05&pay-period-end-date=2026-10-11" \ -u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID"
Retrieve once a pay date has finished processing, and page in one pass. Send either pay-date or both pay period dates. Payment Data API · Payroll Cost API
| Document | Where |
|---|---|
| Worker pay history and pay statements | Worker Payment History API |
| Worker tax files such as W-2 and 1099 | List worker files |
| Company tax files for a tax year | List company tax files |
| Detail behind Forms 940 and 941 | Reports API |
payment.paidList fundings and post the new FUNDED ones to your GL.| Method | Endpoint | What it does | Docs |
|---|---|---|---|
| GET | /integration/v1/payment-data | Payments by pay date or pay period | Reference |
| GET | /integration/v1/payroll-costs/segments/by-period | Cost segments by period | Reference |
| GET | /integration/v1/payroll-costs/segments/by-cost-centers | Cost segments by cost center | Reference |
| GET | /integration/v1/payroll-costs/journal/fundings | List fundings | Reference |
| GET | /integration/v1/payroll-costs/journal/fundings/{fundingId} | Get a funding's journal | Reference |
| PUT | /integration/v1/payroll-costs/journal/gl-mappings | Create or update GL mappings | Reference |
| GET | /integration/v1/payroll-costs/journal/gl-mappings | List GL mappings | Reference |
| GET | /integration/v1/payroll-costs/journal/gl-mappings/options | Suggested transaction types | Reference |
| POST | /integration/v1/reports/{report-type} | Request a report run | Reference |
| GET | /integration/v1/reports/{id} | Retrieve a report run | Reference |
| GET | /integration/v1/deductions/reconciliation | Deduction reconciliation | Reference |
| GET | /integration/v1/workers/{id}/payment-history | Worker pay history | Reference |
| GET | /integration/v1/workers/files | List worker files | Reference |
| GET | /integration/v1/company-files/tax/{taxYear} | List company tax files | Reference |
Keys, sandbox instances, embedded components, multiple EINs, webhooks, errors and limits, and effective dates.
Copy this into your coding agent, or point the agent at this page and it can read the prompt directly. It names the docs to read first, the operations to call, the rules that matter for this area, and the tests to write. Open as Markdown
GOAL
Build the shared foundation every Everee area depends on: a server-side API client, secrets handling, a webhook receiver, and an error and retry policy.
READ FIRST (each page also has a Markdown version at the same URL with .md added; the docs index is https://developer.everee.com/llms.txt)
- https://developer.everee.com/docs/getting-your-partner-api-key
- https://developer.everee.com/docs/authentication-api-tokens
- https://developer.everee.com/docs/support-and-operations
- https://developer.everee.com/docs/rate-limits
- https://developer.everee.com/docs/requests-responses
- https://developer.everee.com/docs/events-overview
- https://developer.everee.com/docs/authenticating-events
- https://developer.everee.com/docs/securing-your-handler
- https://developer.everee.com/docs/sandbox-and-production
- https://developer.everee.com/docs/multiple-ein-company-instances
BUILD
- One API client with two credentials: partner keys (a test key zk_test_... and a production key zk_prod_...) for the Company Onboarding API, and a per-company key (tsk_...) with the x-everee-tenant-id header for everything else. Store a key and company id per company (one per EIN).
- A webhook receiver: read the raw body, verify the HMAC-SHA256 signature of timestamp + '.' + raw body against the x-everee-webhook-signature header (it may carry several v1= signatures during a key rotation: accept any), check the timestamp, return 2xx quickly and process asynchronously.
- Store each delivery's id and ignore repeats. Events can arrive more than once and out of order, so treat an event as a nudge and read current state from the API.
- Manage endpoints and keys through the API: Webhook Endpoints API (up to three endpoints per company, rotate signing key, send test event) and Company API keys (rotate, expire; shown once).
- Error handling: surface 4xx messages to the user, retry 5xx and 429 with backoff, and log the X-Request-ID response header with every failure so Everee support can trace it.
OPERATIONS (all paths are under https://api.everee.com/integration/v1; each reference page, with .md added, lists its request and response fields)
- GET /webhook-endpoints | operationId list-webhook-endpoints | https://developer.everee.com/reference/list-webhook-endpoints.md
- POST /webhook-endpoints | operationId create-webhook-endpoint | https://developer.everee.com/reference/create-webhook-endpoint.md
- PUT /webhook-endpoints/{id} | operationId update-webhook-endpoint | https://developer.everee.com/reference/update-webhook-endpoint.md
- DELETE /webhook-endpoints/{id} | operationId delete-webhook-endpoint | https://developer.everee.com/reference/delete-webhook-endpoint.md
- POST /webhook-endpoints/{id}/rotate-signing-key | operationId rotate-webhook-endpoint-signing-key | https://developer.everee.com/reference/rotate-webhook-endpoint-signing-key.md
- POST /webhook-endpoints/{id}/test | operationId send-test-webhook-event | https://developer.everee.com/reference/send-test-webhook-event.md
- GET /partner/companies/{companyId}/api-keys | operationId list-partner-company-api-keys | https://developer.everee.com/reference/list-partner-company-api-keys.md
- POST /partner/companies/{companyId}/api-keys | operationId create-partner-company-api-key | https://developer.everee.com/reference/create-partner-company-api-key.md
- POST /partner/companies/{companyId}/api-keys/{keyId}/rotate | operationId rotate-partner-company-api-key | https://developer.everee.com/reference/rotate-partner-company-api-key.md
- PUT /partner/companies/{companyId}/api-keys/{keyId}/expiration | operationId set-partner-company-api-key-expiration | https://developer.everee.com/reference/set-partner-company-api-key-expiration.md
- DELETE /partner/companies/{companyId}/api-keys/{keyId}/expiration | operationId cancel-partner-company-api-key-expiration | https://developer.everee.com/reference/cancel-partner-company-api-key-expiration.md
RULES
- Build every flow as a loop around reads that tell you what is left: make a change, read the state again (readiness.missing for onboarding, a run's blockers and the requirements behind them for payroll, a funding's status and resolutionInstructions), and act on what is left. Never hard-code the steps: codes appear and disappear. Map each code you know to a screen, and show resolutionInstructions for any you don't. Use webhooks (company-onboarding.status-changed, requirement.created, payroll-run.status-changed) to know when to read again, not instead of the read. A requirement does NOT open when a worker is created or changed: it opens only when a payroll calculation or a returned deposit finds the problem, so calculate runs early.
- Base URL https://api.everee.com/integration/v1. The partner key is the HTTP Basic user name for the Company Onboarding API: the test key (zk_test_...) creates and reaches only Sandbox companies and the production key (zk_prod_...), issued after Everee approves the integration, only Production companies. A company in the other environment returns 404. The company key (tsk_...) is the HTTP Basic user name for everything else, plus an x-everee-tenant-id header holding the company's id.
- Keep every key on the server. Everee rejects browser requests. Read keys from a secrets store, never log them, never hard-code them.
- Rate limit: 100 operations per 5 seconds per key (see the RateLimit-Policy header). Back off on 429.
- Only payables and payroll run items have an idempotency key (externalId). Make other creates safe yourself: look first, keep the Everee ID next to your own record.
- Test against a sandbox instance (tsk_test_... keys) before production. Nothing in a URL selects the environment; the key does. Sandbox company creation is limited (25 alive at once, 50 created in any rolling 7 days; evaluation access before the agreement is signed: 1 and 2, 14 days, companies created without an agreement), and each Sandbox company is limited to 250 workers, 100 off-cycle runs in 7 days and 100 payroll calculations in 24 hours: a refused request returns 429 with when the next can be created, and a sandbox company you no longer need can be retired.
DONE WHEN
- A signed test event from 'Send a test event' is accepted, and the same body with a tampered byte is rejected.
- A sandbox call with the company key and tenant header succeeds, and a call from a browser is not possible.
TESTS TO WRITE
- A signed test event from 'Send a test event' is accepted, and the same body with one byte changed is rejected.
- A delivery whose header carries two v1 signatures (during a key rotation) is accepted when either matches.
- The same event id delivered twice is processed once.
- A 429 or 5xx is retried with backoff, and a 4xx message reaches the user.
- No log line, error report or response ever contains a key. Assert it with a redaction test.
If a fact you need isn't in the docs, ask me. Don't guess endpoint paths, field names or business rules.Payroll Infrastructure is managed. You build the experience and Everee runs the payroll and the compliance.
| You build | Everee handles |
|---|---|
| Onboarding, worker management and payroll approval screens inside your product | Tax rule updates, tax remittance and filing, and the forms (941, 940, W-2, 1099) |
| The hours and pay items you send each cycle | Gross-to-net pay, garnishment and retirement remittance, and paying workers |
| Reporting and ledger posting for your customers | New hire and termination reporting, and payroll support workflows for your customers |
Keep every key on your servers. Everee rejects requests made from browsers.
| Partner key | Company key | Webhook signing key | |
|---|---|---|---|
| Looks like | zk_test_… (test) or zk_prod_… (production) | tsk_prod_… or tsk_test_… | Per endpoint |
| Comes from | Claimed by your technical contact; Everee never sees it. A test key first, and a production key after Everee approves your integration | Returned once when you create the company. Your partner key can then list, add, rotate and expire the company's keys, and each new key is shown once. Your sandbox instances have tsk_test_… keys. | Shown once when you create an endpoint or rotate its key, masked after that |
| Used for | The Company Onboarding API | Everything inside an approved company | Verifying webhook deliveries |
| How it's sent | HTTP Basic, key as user name | HTTP Basic, plus the x-everee-tenant-id header on every request | HMAC-SHA256 of timestamp + body |
| Tenant ID | Not used | The company's id from the create response | Not used |
| API key | API key ID | |
|---|---|---|
| What it is | The secret credential, such as tsk_prod_… | A public identifier for one key. It is the id on each key record that Everee returns, and the keyId you use to rotate or expire that key. |
| What it's for | Authenticates requests. Send it as an HTTP Basic credential. | Refers to one specific key without exposing it. Filter the Request Log API by api-key-id to see everything that key has done, or tell Everee support which key you mean. |
| Is it secret? | Yes. Keep it on your servers and never log it. | No. It is safe to store and log. |
| Can it authenticate? | Yes | Never |
| Shown | Once, when the key is created. It can't be shown again. | Returned with the key, and again when you list the company's keys (redacted). |
Your partner key manages the keys of the companies you created. List them (redacted, whoever made them), add another for a separate integration, rotate one, or schedule one to stop. Rotate and expiry take expireInHours from 0 to 24, and the old key keeps working during that window so you can switch without an outage. An expired key returns 401. Company API keys
Partners get sandbox instances as a development and testing tool, and keep them for ongoing testing. Company customers don't get sandbox instances in Payroll Infrastructure. Your test key creates sandbox companies and your production key creates production companies, and each key reaches only its own environment (a company in the other one returns 404). Sandbox creation is limited to 25 alive at once and 50 created in any rolling 7 days (evaluation access, before your agreement is signed, is 1 and 2, lasts 14 days and needs no agreement), and a refused request returns 429 with when the next can be created; each Sandbox company is also limited to 250 workers, 100 off-cycle payroll runs in 7 days and 100 payroll calculations in 24 hours; retire a sandbox company you no longer need to free a slot. Nothing in a URL selects the environment: the key and tenant ID you send decide which instance a request acts on, so check the tenant ID before you test and the companyId on every webhook.
| Sandbox instance (for you) | Production company | |
|---|---|---|
| Who gets one | You, for development and ongoing testing | Each customer company you onboard |
| Created with | Your test key (zk_test_…) | Your production key (zk_prod_…) |
| Keys | tsk_test_… | tsk_prod_… |
| API domain | https://api.everee.com | https://api.everee.com |
| Tenant ID, key, webhooks, signing keys, data | Its own | Its own |
| Money | No real money moves | Real money moves |
In a sandbox instance, the bank step of contract signing uses Plaid's sandbox: choose the test institution and sign in with user_good and pass_good.
Every company-level action happens in your product, driving Everee's API. Everee's own screens appear only as embedded experiences, and nobody signs in to Everee.
| Component | When | What it is |
|---|---|---|
COMPANY_CONTRACT | During onboarding | The company's signer reviews the agreements, connects the funding bank account and signs. Create it with the contract signing session. Signing the agreements |
FUNDING_BANK_ACCOUNT | After onboarding | The company connects the bank account Everee debits to fund payroll, so you never handle its bank credentials. Create a session with experience set to FUNDING_BANK_ACCOUNT and no worker ID. Coming soon Funding bank account |
Each legal entity runs in its own company instance, with its own API key and tenant ID. Store a key and an ID per EIN and pick the right pair per request. Link your own worker and wage records to the EIN. Company instances and multiple EINs
| Event | When it fires |
|---|---|
| Company onboarding | |
company-onboarding.status-changed | The status changed: submitted, approved, declined or withdrawn. |
company-onboarding.signature-requested | The signer can sign. Create a signing session. |
company-onboarding.contract-signed | The signer signed the agreements. |
company-onboarding.contract-executed | Everee countersigned. The executed documents are ready. |
company-onboarding.contract-voided | A signature was voided because documented data changed. A new request follows. |
company-onboarding.request-created | Everee needs something from you during review. |
company-onboarding.request-resolved | A request was answered or no longer needed. |
company-onboarding.identity-verification-changed | A person's identity check changed status. |
| Workers | |
worker.created | A worker profile exists. Store the Everee workerId. |
worker.profile-updated | Something on the profile changed. Retrieve the worker and re-sync. |
worker.deleted | A worker profile was deleted. |
worker.onboarding-completed | The worker finished onboarding and can be paid. |
worker.updated-payment-method | The worker's preferred payment method changed (direct deposit or externally paid). |
worker.new-tax-forms-available | The worker was paid in a new tax jurisdiction. New forms use default values. |
worker.tin-verification-status-changed | The taxpayer identifier did or didn't match IRS or SSA records. |
| Payments | |
payment.paid | A payment was submitted for deposit. |
payment-payables.status-changed | Payables in a payment are now PAID, or blocked in ERROR. |
payment.deposit-returned | The worker's bank returned the deposit. |
payment.deposit-retried | Everee retried the deposit under the same payment ID. |
| Reports | |
report.completed | A report you requested is ready to retrieve. |
report.errored | The report couldn't be generated. errorMessage says why. |
Each company can have up to three webhook endpoints, managed with the company key through the Webhook Endpoints API: list, add, change, switch one off, delete, and send a test event. Set the first at company creation with webhookUrl. Every event goes to every enabled endpoint. A signing key is shown once, when you create an endpoint or rotate its key. To rotate it, make one call: for the next 24 hours each delivery carries two signatures, v1=<new>,v1=<old>, so your handler can switch without missing an event. Rotating again inside those 24 hours ends the oldest key at once. Send a test event to check a handler. Everee retries a failed delivery up to 20 times over about 6.6 days. Reading delivery attempts through the API is coming soon. Make handlers idempotent: events can arrive more than once and out of order.
Events overview · Securing a handler · Authenticating events
import crypto from "node:crypto";
export function verifyEveree(rawBody, headers, signingKey) {
const timestamp = headers["x-everee-webhook-timestamp"];
const expected = crypto.createHmac("sha256", signingKey)
.update(timestamp + "." + rawBody).digest("hex");
// During a key rotation the header holds two v1 signatures: accept either.
return headers["x-everee-webhook-signature"]
.split(",").map((p) => p.split("="))
.filter(([v]) => v === "v1")
.some(([, sig]) => sig.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected)));
}| Status | Meaning |
|---|---|
400, 422 | A field or the request's state is invalid. Fix it using errorMessage. |
401, 403 | The credentials can't perform the operation. An expired key returns 401. |
404 | Something referenced doesn't exist. |
409 | A conflict with the resource's current state. |
412 | A report was requested while payments are calculating. Honor Retry-After. |
429 | Rate limit: 100 operations per 5-second window per token by default (the RateLimit-Policy header shows the policy that applied). Back off exponentially with jitter. |
5xx | Everee's side. Retry with backoff and send support the X-Request-ID. |
Send content-type and accept as application/json. Errors return errorCode, errorMessage, errorCause and path.
Idempotency. Only payables and payroll run items take an idempotency key: their externalId makes a retry safe. Other creates, such as workers and companies, have none, so after a timeout check what exists before you retry. For workers, look up hiring status first.
Diagnose a failed call. The Request Log API keeps your recent calls to /integration/v1 for 30 days, with the request body and error response, and masks sensitive values. Look one up by the request ID.
Requests and responses · Rate limits · Pagination · Diagnosing a failed request
Changes that affect pay take effect on a date, so past payrolls are never rewritten: a home address (use the next day in the worker's time zone), a new payroll calendar (tomorrow or later), deductions and leave enrollments (start tomorrow), and scheduled position changes. Corrections to paid pay are explicit and use correction-authorized=true.
Machine-readable copies of this guide, the questions to answer before building, the data to store, and a sandbox script that proves the setup.
Point an agent at the Markdown guide, or at one prompt. Each prompt names the docs to read, the operations to call with their operationIds, the rules, and the tests to write. The OpenAPI specs are reference/default.json, reference/everee-api.json and reference/everee-embed.json in the docs repository.
| Machine-readable copy | URL |
|---|---|
| Whole guide as Markdown | https://files.everee.com/everee-payroll-infrastructure-explainer.md |
| Start-here prompt | https://files.everee.com/prompts/master.md |
| Foundation: client, keys and webhooks | https://files.everee.com/prompts/foundation.md |
| Area 1: Onboard a company | https://files.everee.com/prompts/onboard.md |
| Area 2: Set up the organization | https://files.everee.com/prompts/setup.md |
| Area 3: Add and maintain workers | https://files.everee.com/prompts/workers.md |
| Area 4: Worker payroll settings | https://files.everee.com/prompts/settings.md |
| Area 5: Run payroll | https://files.everee.com/prompts/pay.md |
| Area 6: Retrieve financial data | https://files.everee.com/prompts/reporting.md |
The start-here prompt has the agent ask you these first.
Keep each Everee ID next to your own record so later requests need no lookup.
| Entity | What Everee gives you | Keep it beside |
|---|---|---|
| Company | id (this is also the tenant ID you send in x-everee-tenant-id), company API key (secret, shown once), key IDs, webhook endpoint IDs and signing keys (secret, shown once) | your customer or company record |
| Partner | partner API keys (secret): a test key and a production key | your secrets store, not a table |
| Worker | workerId (Everee) and externalWorkerId (yours) | your worker or employee record |
| Work location | workLocationId, and your own id as externalId | your site or location record |
| Payroll calendar, approval group | payrollCalendarId, approvalGroupId | your pay schedule and team records |
| Cost center, pay code | cost center key, pay code apiKey | your own client, job or earning type |
| Payable | your externalId (the only idempotency key), and the paymentId in payment data | your earning or bonus record |
| Funding and reports | fundingId, report run id | your payroll run or ledger batch record |
| Webhook delivery | the event id from the envelope | a processed-events table, for de-duplication |
A script that checks a sandbox key, creates a work location and a payroll calendar, lists pay codes, sends an idempotent payable and reads payments and fundings. It refuses to run with a production key.
#!/usr/bin/env bash
# Everee sandbox walkthrough: set up an organization, send pay, read the results.
# Needs a SANDBOX company key (tsk_test_...) and its company id. Never run this with a production key.
set -euo pipefail
: "${COMPANY_KEY:?set COMPANY_KEY to a tsk_test_ key}"
: "${COMPANY_ID:?set COMPANY_ID to the company id}"
case "$COMPANY_KEY" in tsk_test_*) ;; *) echo "Refusing: not a sandbox key" >&2; exit 1;; esac
BASE=https://api.everee.com/integration/v1
call() { # method path [json-body]
curl -sS -X "$1" "$BASE$2" -u "$COMPANY_KEY:" -H "x-everee-tenant-id: $COMPANY_ID" \
${3:+-H "Content-Type: application/json" -d "$3"} -w '\n-- HTTP %{http_code}\n'
}
echo "1. Check the key: list work locations"; call GET /work-locations
echo "2. Create a work location"
call POST /work-locations '{"name":"Salt Lake Office","line1":"100 S Main St","city":"Salt Lake City","state":"UT","postalCode":"84101","effectiveDate":"2026-01-01","externalId":"site-0042"}'
echo "3. Create a payroll calendar"
call POST /payroll-calendar '{"displayName":"Clinic staff","payPeriodType":"BI_WEEKLY","weeklyStartDay":"MONDAY","effectiveDate":"2026-11-02"}'
echo "4. List pay codes (note each apiKey)"; call GET /pay-codes
# Steps 5 to 8 need a worker and a payroll run. Create the worker with the complete employee record
# (POST /workers/employee, see the add-a-complete-employee-record reference page),
# then set EXTERNAL_WORKER_ID to the externalWorkerId you gave it.
echo "5. List payroll runs (the calendar creates one per pay period; note an UNOPENED run's id)"; call GET /payroll-runs
# Set RUN_ID to that run's id and PAY_DATE to a banking day it can be paid on.
if [ -n "${EXTERNAL_WORKER_ID:-}" ] && [ -n "${RUN_ID:-}" ] && [ -n "${PAY_DATE:-}" ]; then
echo "6. Open the run"; call POST "/payroll-runs/$RUN_ID/open" "{\"targetPayDate\":\"$PAY_DATE\"}"
echo "7. Add an item; run this twice to see the externalId make it idempotent"
call POST "/payroll-runs/$RUN_ID/items" "{\"items\":[{\"externalId\":\"walkthrough::$EXTERNAL_WORKER_ID::bonus-1\",\"externalWorkerId\":\"$EXTERNAL_WORKER_ID\",\"label\":\"Walkthrough bonus\",\"payCode\":\"BONUS\",\"amount\":{\"amount\":\"10.00\",\"currency\":\"USD\"}}]}"
echo "8. Read the items back"; call GET "/payroll-runs/$RUN_ID/items"
echo "9. Calculate, then list blockers"; call POST "/payroll-runs/$RUN_ID/calculate"; call GET "/payroll-runs/$RUN_ID/blockers"
fi
echo "10. Read payment data for a pay period"; call GET "/payment-data?pay-period-start-date=2026-10-05&pay-period-end-date=2026-10-11"
echo "11. List fundings (the payroll journal starts here)"; call GET "/payroll-costs/journal/fundings?start-date=2026-10-01&end-date=2026-10-31"Quick answers about access, onboarding, taxes, payroll runs and support.
company-onboarding.status-changed and read the onboarding status. Use the company API key once it is APPROVED.tsk_test_… company keys. Company customers don't get sandbox instances in Payroll Infrastructure.approvalDeadline. Read it from the run rather than working it out. Approve by then for workers to be paid on the pay date.PROCESSING_BLOCKED and the funding says what to do.X-Request-ID from the response, the company ID and the time of the request.