Connections
Connect Gusto
Sign in to Gusto and approve read access. Each processed payroll and contractor payment posts once, split by department, about a minute later.
You connect Gusto by signing in, with no key to create. You need someone who is a primary admin or a full access admin at Gusto, as Gusto only lets those roles approve an app, and an owner, admin or accountant in LedgerIt.
LedgerIt only reads from Gusto. It never runs a payroll or moves money.
The short version
In LedgerIt, open Add connection at Gusto, select Connect with Gusto, sign in at Gusto and approve access. There is no key to create, and nothing to set up for updates in real time: from then on, each payroll Gusto processes reaches your books in about a minute.
What comes in
- Each processed payroll, as one entry on its pay date. A payroll still in draft is left alone until Gusto has processed it.
- Gross wages, split by each person's department in Gusto into research and development, sales and marketing, cost of revenue for support and success teams, or general and administrative. A department LedgerIt does not recognize, or none, files under general and administrative.
- Employer taxes and benefit contributions, as payroll costs. The employee's own withholding is already inside gross wages.
- What Gusto took from your bank, credited to the bank account, so the entry matches the debit on your statement.
Unlike a bank feed, a payroll posts straight to the books, because it is final at Gusto. Each one posts once, however many times it is read.
The first sync reads up to 400 days of history, or back to the day your books start if that is later. After that, a payroll arrives about a minute after Gusto processes it, as described in Updates in real time.
- Each contractor payment, as one entry on its check date once Gusto has funded it. A Gusto connection made before LedgerIt read contractors posts them from the day it first could. Earlier ones stay as your bank feed filed them. Each contractor's pay goes to the department Gusto lists them under: a contractor in engineering goes to Engineering contractors under research and development, and anyone else to professional fees under their team. Reimbursements count as their pay, because they left the bank with it.
Updates in real time
You do not have to wait for a nightly import or press anything. When something changes at Gusto, Gusto tells LedgerIt, and LedgerIt syncs your company straight away.
Also
Every 6 hoursLedgerIt syncs anyway
ForgedRefused, changes nothing
- What starts a sync. A payroll processed, paid, reversed or cancelled, a contractor payment, a person added or moved to another department, and the moment you connect.
- Why it posts once. The message only names your company. LedgerIt reads the payroll from Gusto itself, so however many messages arrive, the entry is built once from the same data as any other sync.
A change to someone's department reaches the next payroll's split. A payroll already in the books keeps the lines it posted with.
You set nothing up for this. It works for every Gusto connection, including one made before LedgerIt had it. That connection picks it up on its next sync.
Gusto's own fee, by department
Gusto bills its own fee apart from payroll, as a bank or card charge such as GUSTO FEE 123456. After every Gusto sync, LedgerIt splits that charge across the departments your payroll paid. Each department gets its share of what payroll cost in the 31 days before the charge. With no payroll in those days, it uses the last payroll in the 3 months before.
For example, with $6,000 of engineering payroll and $3,000 of operations payroll, a $150 fee files as $100 under research and development and $50 under general and administrative. The fee stays on the account it was filed to. Only its department changes, in a second entry dated the same day, Gusto fee by department.
- A department you choose stands. Name a department on the charge yourself and LedgerIt leaves it alone, and takes back a split it already made.
- It keeps up. If the charge is filed again, or a payroll in those 31 days comes in late, the next sync reverses the split and makes it again. In a closed month it stays as it was.
- Payroll itself is not split. A charge for exactly what a payroll took from the bank, or filed to a wages, contractor or payroll-tax account, is payroll, not the fee.
Connect it in LedgerIt
- Open Add connection at Gusto. To click your way there, go to Integrations, select Add connection and, under Payroll, choose Gusto.
- Select Connect with Gusto.
- Sign in at Gusto, select the company, and approve access.
- Gusto sends you back to LedgerIt, and the connection finishes.
LedgerIt never sees your Gusto password. The first sync starts from there: see Sync and check a connection.
One set of books holds one Gusto company, because this connection carries no Label. Approving a second company in the same books replaces the first: the first company's entries stay in the books, and the second is read only from about a month before the last sync, not its full history. For another company, connect from that company's books (see Keep several companies).
What LedgerIt may read
You do not pick these. Gusto assigns scopes to LedgerIt's app, and refuses any read outside them.
| Scope | LedgerIt uses it for | Without it |
|---|---|---|
payrolls:read | Processed payrolls and each person's pay | The sync fails |
employees:read | Each person's name and department | The sync fails |
employee_benefits:read | What people and the company pay toward benefits | A payroll with benefits does not add up, and waits in the Inbox |
departments:read | Which department each contractor is in | Contractor payments are not read. Payroll still syncs |
contractors:read | Each contractor's name | Contractor payments are not read. Payroll still syncs |
contractor_payments:read | Funded contractor payments | Contractor payments are not read. Payroll still syncs |
After a sync
Each payroll posts as one entry: everyone's gross pay, the company's taxes and its share of benefits, by team. Cash goes down by exactly what Gusto took from the bank.
Gusto takes only net pay, payroll taxes, reimbursements and child support. Health premiums, 401(k) contributions and other deductions, both what people pay and what the company pays, go to the insurer or the plan directly. LedgerIt still counts them as payroll costs, and keeps them in Payroll liabilities until that payment comes out of the bank.
LedgerIt checks each payroll's lines against what Gusto took and what is paid elsewhere. A payroll whose difference is more than 5 cents is not posted, because a short entry would still balance.
A payroll refused this way, or one dated in a closed month, is listed as Payrolls not posted and appears in the Inbox as A payroll run not in the books yet. The other payrolls still post. LedgerIt reads the refused one again on every sync while its Inbox item is open, however old it is. Once the cause is fixed, it posts on the next sync and the item closes by itself. Its costs are missing until it posts. Dismiss the item only if you already recorded this payroll another way, such as a journal entry.
See where a payroll entry came from
Open a payroll's entry from the ledger. Under Where it came from, Payroll run names the Gusto payroll it was posted from. Select it to open the run's page:
- Summary: the days it paid for, the day it was paid, the entry it was posted as, Gusto's own id for the payroll, and its totals: gross pay, employee taxes, deductions, employer taxes, employer benefits, reimbursements and net pay.
- Paystubs: one row per person, as Gusto computed them, with their department and how they were paid, and a total that matches Gusto's payroll summary.
Only owners, admins and accountants see what each person was paid. Everyone else sees the totals.
LedgerIt keeps what Gusto sent for each payroll, whole, beside its entry. A payroll posted before LedgerIt kept it gets its paystubs the next time Gusto syncs, if it was paid within the month before the last sync.
A payroll read from Gusto's demo company shows Demo on its run and its entry. It posts like any other, so you can see a payroll come in end to end before connecting your real company.
Two questions may follow a sync, also in the Inbox: whether to add a team your payroll names, and whether to accrue payroll earned in one month and paid in the next.
If something goes wrong
| What you see | What it means | What to do |
|---|---|---|
| Access was not approved at Gusto | Approval was declined | Start again from Integrations, as a primary or full access admin |
| This approval link expired or was started by someone else | Too much time passed, or another person or company's books started it | Start again from Integrations |
| This token is not scoped to a company | Gusto did not grant access to one company | Start again, and select the company at Gusto |
| Last sync failed | Gusto refused the sign-in, or could not be reached | Read the Last error. Select Reconnect and sign in again |
| Everyone's wages under general and administrative | People have no department in Gusto | Set departments at Gusto. Payrolls already in the books keep their lines |
| Contractor payments missing | Gusto has not granted the contractor scopes | Select Reconnect and approve access again. Payments from that day on post. Earlier ones stay as your bank feed filed them, so none is counted twice |
| A payroll took hours to arrive, not a minute | Gusto's message did not reach LedgerIt, and the 6-hourly sync brought it instead | Nothing is lost. To bring it in now, open Gusto and select the sync icon on the connection |
| A payroll approved at Gusto is not in the books yet | Gusto has not finished processing it. Only a processed payroll posts | Wait until Gusto shows it as processed. It arrives about a minute later |
Reconnecting replaces the old sign-in rather than adding a second connection, and everything already in the books stays.
How long the sign-in lasts
You should not need to sign in again. Gusto's access lasts 2 hours and its refresh token has no expiry, and LedgerIt renews them itself. If the connection stops working, it shows Last sync failed and you select Reconnect.
Disconnect Gusto
- Open Gusto from Integrations.
- On the connection's row, open the ⋯ menu and select Disconnect, then confirm.
LedgerIt asks Gusto to withdraw its access and destroys its copy of the sign-in. Everything Gusto brought in stays in your books.
Do this through the API
Everything in this guide is also an API call, for scripts and agents. The reference lists each operation with its parameters and objects.