Connections

Connect LedgerIt to Zapier

Connect your books to Shopify, HubSpot, Slack and about 8,000 other apps through Zapier, with instant triggers and actions held to the books' own checks.

Zapier connects LedgerIt to the apps we have no direct connection for: a store, a CRM, a form, a spreadsheet, a chat channel. A Zap starts when something happens in one app and does something in another, such as posting in Slack when a month is closed, or adding a Shopify payout to the books as a transaction.

The LedgerIt app on Zapier is in Beta: it is built and tested on sample data, and not yet proven against live Zaps. It is listed in Zapier's directory once Zapier has reviewed it. Until then, write to support@ledgerit.ai for an invite link.

A Zap acts with an API key, so it can do what the member who made the key can do, and no more. A Zap never posts a journal entry on its own: it adds transactions that wait in review the way a bank's do, uploads documents, and writes drafts for a person to approve.

Connect LedgerIt

  1. In LedgerIt, open Settings and go to API keys. Choose Create API key, name it "Zapier" and pick the Access. Read only is enough for triggers; actions need Read and write. See API keys.
  2. Copy the key. It starts with ll_ and is shown once.
  3. In Zapier, start a Zap and pick LedgerIt as the app. When Zapier asks you to sign in, paste the key into API key.
In LedgerItCreate API keySettings › API keys. Read only, or read and write
In ZapierPick LedgerItStart a Zap and choose LedgerIt as the app
In ZapierPaste the keyInto API key. The connection takes your books' name
In your ZapTrigger or actAs the member who made the key, never more
A key made in LedgerIt, pasted into Zapier: every Zap then acts as the member who made it, in those books, and never does more.

Zapier names the connection after your books. A key belongs to one set of books, so connect each set with its own key.

Instant triggers need a key made by an owner or admin, because each one adds a webhook to your books. Revoke the key under API keys and every Zap using it stops at once.

Triggers

Instant triggers fire within about a minute of the change in LedgerIt:

  • Invoice issued: an invoice is issued to a customer.
  • New bill: a vendor bill is entered, by hand, from the bill inbox or through the API.
  • Bill approved: a bill is approved and posted, ready to pay.
  • Payment recorded: a payment from a customer or to a vendor is recorded.
  • Journal entry posted: any entry is posted to the general ledger.
  • Month closed: a month is closed, with its closing totals.
  • Receipt or document uploaded: a receipt or vendor invoice is uploaded.
  • New customer or vendor: a customer or vendor is added.
  • Any event in the books: any event you name, such as entry.reversed or period.*. The webhooks guide lists them.
  • New transaction: a bank, card or payroll transaction arrives, with the category it was filed under. Zapier checks for new ones every few minutes, depending on your Zapier plan.
Zap turned onA webhook is addedSettings › Webhooks: Zapier and the Zap's name
In LedgerItSomething happensAn invoice is issued, a month is closed
In ZapierSignature checkedAn unsigned or forged delivery is refused
Next stepGets the whole recordThe invoice with its lines and amount due

Never, from a Zap

LedgerPost a journal entry without a person: entries arrive as drafts

AccessDo more than the key's member may do

Turning an instant Zap on adds a webhook; each delivery is checked before the next step gets the whole record.

Each instant Zap you turn on adds a webhook named "Zapier" and the Zap's name under Settings › Webhooks. Turning the Zap off removes it. Each trigger hands the next step the whole record: the invoice with its lines and amount due, the bill with its vendor, the entry with every line. A set of books can hold 50 webhooks, so up to 50 instant Zaps.

Every delivery is signed, and the LedgerIt app checks the signature before it reads anything. A delivery can arrive twice, and then the Zap runs twice; a step that must not repeat should find the record first, for example with Find a customer or vendor. New transactions are read in the order they arrived, up to 200 between two checks.

Actions

  • Add a transaction: adds money no connection brings in, such as a sale or a marketplace payout. It goes the way a bank's row goes: rules and the model file it and it waits in review, unless its description names one open invoice or bill and it pays exactly what is left, which settles that document at once.
  • Upload a receipt or bill: sends a PDF or photo. A receipt is matched to its transaction; a vendor invoice becomes a bill to approve. See documents.
  • Create a bill: enters a draft bill for approval. The vendor's bill number keeps the same bill from being entered twice.
  • Create an invoice: writes a draft invoice. Issue it from Invoices when it is ready.
  • Add a customer or vendor: adds one to your customers and vendors, and finds its logo from its website.
  • Draft a journal entry: writes a draft entry. Debits must equal credits, and nothing reaches the ledger until a person posts it. See journal entries.

The books' own rules still hold. A transaction on an account that holds no money, a bill line on an account that does not exist or a draft in a closed month is refused, and Zapier shows LedgerIt's reason on the step.

Find a customer or vendor finds one by its exact name, ignoring case. In that step, tell Zapier to add the customer or vendor when none is found, and a bill or invoice never creates the same company twice.

Zaps to start with

  • Month closed → Slack: post the closing totals to your finance channel.
  • Gmail → Upload a receipt or bill: send a receipts label's attachments to the books. LedgerIt can also read receipts from your mailbox directly.
  • Shopify payout → Add a transaction: bring in a store's sales the day they are paid out.
  • Invoice issued → HubSpot: mark the deal invoiced.
  • New transaction → Google Sheets: keep a spending sheet for a team that lives in spreadsheets.

When a Zap stops

  • Zapier asks you to reconnect. The key was revoked. Make a new one and reconnect.
  • A step says the key cannot write. The key is Read only. Make one with Read and write.
  • An instant trigger cannot be turned on. The key's member is not an owner or admin, or the books already hold 50 webhooks. Remove one you no longer use under Settings › Webhooks.

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.