> ## Documentation Index
> Fetch the complete documentation index at: https://docs.equated.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Pay a bill (AP)

> Record what you owe a vendor and close it when the payment clears.

export const AgentChat = ({messages = []}) => <div style={{
  border: "1px solid rgba(128,128,128,0.18)",
  borderRadius: "12px",
  padding: "16px",
  background: "rgba(128,128,128,0.05)",
  display: "flex",
  flexDirection: "column",
  gap: "14px",
  fontSize: "14px",
  lineHeight: 1.5,
  color: "inherit"
}}>
    {messages.map((m, i) => m.from === "you" ? <div key={i} style={{
  alignSelf: "flex-end",
  maxWidth: "85%",
  textAlign: "right"
}}>
          <div style={{
  fontSize: "11px",
  opacity: 0.5,
  marginBottom: "3px"
}}>You</div>
          <div style={{
  display: "inline-block",
  background: "rgba(128,128,128,0.16)",
  color: "inherit",
  padding: "8px 12px",
  borderRadius: "12px 12px 2px 12px",
  whiteSpace: "pre-wrap",
  textAlign: "left"
}}>
            {m.text}
          </div>
        </div> : <div key={i} style={{
  alignSelf: "flex-start",
  maxWidth: "90%"
}}>
          <div style={{
  display: "flex",
  alignItems: "center",
  gap: "6px",
  marginBottom: "4px"
}}>
            <span style={{
  fontSize: "11px",
  opacity: 0.5
}}>Agent</span>
            {m.tool ? <span style={{
  fontSize: "11px",
  opacity: 0.6,
  background: "rgba(128,128,128,0.15)",
  borderRadius: "6px",
  padding: "1px 6px"
}}>
                used {m.tool}
              </span> : null}
          </div>
          <div style={{
  whiteSpace: "pre-wrap"
}}>{m.text}</div>
          {m.choices ? <div style={{
  display: "flex",
  flexWrap: "wrap",
  gap: "6px",
  marginTop: "10px"
}}>
              {m.choices.map((c, j) => {
  const rec = c.toLowerCase().includes("recommend");
  return <span key={j} style={{
    borderRadius: "999px",
    padding: "4px 12px",
    fontSize: "13px",
    color: "inherit",
    border: "1px solid " + (rec ? "rgba(128,128,128,0.45)" : "rgba(128,128,128,0.25)"),
    background: rec ? "rgba(128,128,128,0.12)" : "transparent",
    fontWeight: rec ? 600 : 400
  }}>
                    {c}
                  </span>;
})}
            </div> : null}
        </div>)}
  </div>;

A bill is money you owe. Recording it matters even before you pay it, because it puts the cost in the right month, not whenever the cash happens to leave.

"Accounts payable" is just the accounting term for the same question: what do we owe, to whom, and when is it due?

## Example

A subcontractor sends a \$4,200 invoice for work finished this month. You haven't paid it yet, but the cost belongs in this month. Equated records the bill now and links the bank payment later.

## Two ways to do it

<Tabs>
  <Tab title="In the app">
    <Steps>
      <Step title="Create or upload the bill">
        Upload a file, email it to [accounting@equated.co](mailto:accounting@equated.co), or enter the details by hand. The bill enters Equated with the vendor, amount, date, due date, and line details when available.

        <Frame caption="Add a bill by upload, by email, or by hand">
          <img src="https://mintcdn.com/equated/CUnJvp4mAx0B5sq7/images/workflows/resolve-bill-upload.png?fit=max&auto=format&n=CUnJvp4mAx0B5sq7&q=85&s=dd4d2511cb22e1020e40505eca6bb60d" alt="The Add document dialog for uploading or forwarding a bill" width="886" height="1000" data-path="images/workflows/resolve-bill-upload.png" />
        </Frame>
      </Step>

      <Step title="Confirm it">
        Confirming the bill records the payable in your books.
      </Step>

      <Step title="Pay it">
        When the payment shows up in your bank feed, link that transaction to the bill. Equated marks the bill paid and records any currency difference for you.

        <Frame caption="An open bill, confirmed and awaiting payment">
          <img src="https://mintcdn.com/equated/CUnJvp4mAx0B5sq7/images/workflows/resolve-bill-awaiting-payment.png?fit=max&auto=format&n=CUnJvp4mAx0B5sq7&q=85&s=04c913318f720e7f2d7a4d2904be238f" alt="Bill detail showing an open payable awaiting payment" width="1146" height="2000" data-path="images/workflows/resolve-bill-awaiting-payment.png" />
        </Frame>

        <Frame caption="Link the bank transaction that paid it">
          <img src="https://mintcdn.com/equated/CUnJvp4mAx0B5sq7/images/workflows/resolve-bill-apply-payment.png?fit=max&auto=format&n=CUnJvp4mAx0B5sq7&q=85&s=a043c2903bc4b1ab6aa6f4d946ba5320" alt="The Apply payment dialog linking a bank transaction to a bill" width="1012" height="876" data-path="images/workflows/resolve-bill-apply-payment.png" />
        </Frame>
      </Step>

      <Step title="See what's left">
        Equated marks the bill open, partly paid, or paid based on the linked payments.
      </Step>
    </Steps>
  </Tab>

  <Tab title="With your AI">
    Ask your AI to find open bills and link the payments that cleared them.

    You can also hand your AI a bill PDF or photo right in the chat. It uploads the file into Equated with any details you mention, and the bill lands in your inbox with its accounting drafted.

    Not sure what to ask? The sparkle button in the **Bills** header copies a ready-made prompt — one for reviewing what's in your inbox, one for linking unpaid bills to bank payments.

    <AgentChat
      messages={[
  { from: "you", text: "Find my open bills and link any payments that have cleared." },
  { from: "agent", tool: "equated", text: "6 open bills. One matches a payment:\n\nBill GSABQNMS-0019 ($45.13). Card payment of CA$62.39 matches (about $45.40 USD). Should I apply it?", choices: ["Apply payment", "Skip for now"] },
  { from: "you", text: "Apply it." },
  { from: "agent", tool: "equated", text: "Applied. Bill is paid. I recorded the currency difference. The other 5 bills have no matching payment yet, so they stay open." },
]}
    />
  </Tab>
</Tabs>

## Wrong type?

Vendors label almost everything "Invoice", so a receipt sometimes lands as a bill, or the reverse. Convert the document to the right type and Equated rebuilds its accounting entry. Two rules: convert before you confirm (unconfirm first if it's already on the books), and re-link anything the old type carried, such as a linked transaction or a recorded payment.

## Why it matters

Bills keep costs in the right month, and you can see what's coming due before the money leaves the bank.
