# Vestiarion > Vestiarion is an AI agent for bills and payments for small businesses, settled in USDC on Arc. Its API reads a workspace's signed ledger, books, counterparties, milestones, treasury and insights, each payment's evidence and receipt and the monthly close pack, and adds counterparties, invoices, milestones and payee links for the agent to decide; signed webhooks push each ledger entry. ## Docs - [Overview](https://www.vestiarion.xyz/docs.md): What Vestiarion does, where a business starts, how payments are controlled, and where developers start. - [See your first decision](https://www.vestiarion.xyz/docs/guides/try-it.md): Create a workspace, add a supplier and one of your bills, and read what the agent decided and why, before any money moves. No wallet needed. - [Find your way around a workspace](https://www.vestiarion.xyz/docs/guides/workspace.md): The sections and their groups, folding the sidebar, the header's network, payments and agent status, and the command palette's shortcuts. - [Run alongside how you pay today](https://www.vestiarion.xyz/docs/guides/shadow-mode.md): Shadow mode: keep paying your bills as you do; the agent decides on the same bills, you agree or disagree with each decision, and each payment you agree to is made in USDC on Arc testnet. - [Go live](https://www.vestiarion.xyz/docs/guides/go-live.md): Create the workspace's wallets, fund them with USDC and take the agent live, on Arc testnet or on Arc mainnet. - [Your first payment](https://www.vestiarion.xyz/docs/guides/first-payment.md): Add a counterparty and an invoice, run a cycle, and follow the payment to the explorer and the ledger. - [Pay a contractor for delivered work](https://www.vestiarion.xyz/docs/guides/pay-a-contractor.md): Add a milestone, verify the work by hand or by a merged pull request, and let the agent release the pay. - [Pay early for a discount](https://www.vestiarion.xyz/docs/guides/early-payment-offers.md): Offer a supplier payment today for a discount Vestiarion suggests from the reserve's yield, through a one-time link; if they accept, the agent pays the discounted amount the same day, after every check. - [Ask a supplier for more time](https://www.vestiarion.xyz/docs/guides/more-time.md): When a bill is held because the cash is not there, let the agent ask the supplier by email for more time, for the same amount; a supplier who agrees moves the due date, and the agent decides the bill again. - [Ask a vendor for a missing document](https://www.vestiarion.xyz/docs/guides/vendor-documents.md): When a bill waits for its purchase order or goods receipt, let Vestiarion ask the vendor for it through a one-time link, and check what comes back against the bill. A person still approves the payment. - [Pay a vendor's bank account in Mexico](https://www.vestiarion.xyz/docs/guides/bank-payouts.md): Set the workspace up with BlindPay, add a vendor's CLABE, and pay its bills in pesos over SPEI from your USDC: a person sees what the vendor receives and approves every bank payout. - [Import your bill list](https://www.vestiarion.xyz/docs/guides/import-bills.md): Import the bills you keep in a spreadsheet, in its own columns, dates, numbers and currency: see every row's fate before anything is added, and fix the rows that can't be. - [Add invoices by email](https://www.vestiarion.xyz/docs/guides/email-invoices.md): Turn on a workspace address, forward suppliers' invoices to it, and add each one from Bills & receivables with one press; nothing arrives as a payable by itself. - [Know where a payment is](https://www.vestiarion.xyz/docs/guides/where-a-payment-is.md): Follow each payment from the agent's decision to the payee's wallet and your books: its stages and their sources, an outcome not known yet, payments in flight on Treasury, and a receipt's status. - [When a payment does not settle](https://www.vestiarion.xyz/docs/guides/payment-exceptions.md): The runbook for a payment slow to confirm, of unknown outcome, failed, cancelled or not sent: who acts, what Vestiarion already did, what to do next and where the trail is, and why nothing is ever paid twice. - [Show a supplier when it will be paid](https://www.vestiarion.xyz/docs/guides/supplier-status.md): Send a vendor a link to its own bills: where each one stands, from received to paid, with each payment's transaction on Arc, and never why a bill is held. - [Get paid as a freelancer](https://www.vestiarion.xyz/docs/guides/get-paid.md): For the person being paid: add your wallet address through the link a business sent, follow each step, and check the payment on Arc. - [Plan the next two weeks of payments](https://www.vestiarion.xyz/docs/guides/payment-plan.md): See which bill leaves on which day over the next 14 days, in the order your cash allows, with the balance after each and the discounts worth taking, then approve the days the plan would move. - [Plan for clients paying late](https://www.vestiarion.xyz/docs/guides/cash-scenarios.md): Treasury's What if section: look 30, 60 or 90 days ahead, make receivables late or missing, change what bills cost, and see the first short day, the bills it touches and what the figure is built from. - [Give each project its own budget](https://www.vestiarion.xyz/docs/guides/projects.md): Make a project with a budget in USDC, put its bills, milestones and deals in it, and let the agent set each bill's money aside before paying it, holding what the budget cannot cover for a person. An earmark in Vestiarion, never money locked on chain. - [Work in your own currency](https://www.vestiarion.xyz/docs/guides/currencies.md): Each amount as written, where it came from and the rate it was converted at; totals in your reporting currency with the rates shown; the FX variance on a paid bill; and exchange rates tried in a cash scenario, saved as versions. - [Read your workspace report](https://www.vestiarion.xyz/docs/guides/report.md): What the agent did with your real bills: what it paid and with what proof, what it stopped and why, how often a person stepped in, what it was worth, and sharing a live copy by a link. - [Work across clients as an accountant](https://www.vestiarion.xyz/docs/guides/accountants.md): Invite your accountant with the accountant role: one console lists every workspace they are in and what needs attention across them, oldest first, with a month's hand-off to download and each workspace's usage and limits. - [Turn a signed deal into a collection schedule](https://www.vestiarion.xyz/docs/guides/deals.md): Confirm a deal's schedule from a deposit, milestones, a retainer or your own lines, release each line as a receivable on its day, and change the deal later without rewriting what was invoiced or paid. - [Share a statement with a customer](https://www.vestiarion.xyz/docs/guides/customer-portal.md): Send a customer a link to its own statement: it sees what it owes, pays on Arc, says it paid, promises a day or disputes an invoice, with no account or wallet, and you answer each from the Receivables tab. - [Chase what customers owe](https://www.vestiarion.xyz/docs/guides/collections.md): The next step for each receivable from what the customer said, paid and was promised: wait, ask the account owner, remind in the right tone or escalate to finance, with the reminder previewed and each customer's own rules. - [Get paid sooner when cash is short](https://www.vestiarion.xyz/docs/guides/customer-discounts.md): Let the agent offer customers a small discount, up to the most you set, to pay an open invoice within 5 days while bills are held for want of cash; a customer who accepts pays the lower amount through its pay link. - [Apply money received to invoices](https://www.vestiarion.xyz/docs/guides/apply-payments.md): One payment for several invoices, part payments, a few cents lost to a fee: apply each payment received on Arc to the right invoices, with the agent's suggestions, keep the rest as credit, and undo a mistake. - [Pay commissions on money received](https://www.vestiarion.xyz/docs/guides/commissions.md): Set what a sales partner or referrer earns on the money customers pay for your deals: a part payment earns its part, a payment undone comes off the next payout, and after a hold window one payable is paid by the agent, which the partner cannot approve. - [How payments are controlled](https://www.vestiarion.xyz/docs/guides/controls.md): What the agent decides and what it may pay: the checks in code, the limits, the people who approve, how to stop it, and where money can move. - [Try a limit before you change it](https://www.vestiarion.xyz/docs/guides/try-a-rule.md): Try a new payment limit, two-approvals figure or spending limit on the agent's past decisions, see which bills it would have held or let through, then apply it. - [Why a payment was paid](https://www.vestiarion.xyz/docs/guides/evidence.md): One payment's evidence, link by link from the purchase order to the receipt: how each fact is known, the signatures checked in your browser, the download, and who can see it. - [Share the evidence pack and receipts](https://www.vestiarion.xyz/docs/guides/evidence-and-receipts.md): For an insurer, an auditor or a payee: the payee lock's evidence pack for a period, what each insurer question is answered from, its PDF, CSV and signed JSON checked offline; and a payment's shared receipt, what the payee sees and its three checks, saved as a PDF, renewed or stopped. - [Verify an audit export](https://www.vestiarion.xyz/docs/guides/audit-export.md): Download a workspace's signed ledger and check it with a standalone verifier. - [When the model and the policy disagree](https://www.vestiarion.xyz/docs/research/model-vs-policy.md): Production decisions beside the written policy's answer to the same facts: where they differed, and where code refused the model. - [The Quality Lab](https://www.vestiarion.xyz/docs/research/quality-lab.md): Fixed scenarios, from prompt injection to a provider's lost answer, run through the real decision code on every change with the model's answers scripted: what each expected, what happened, and how a wrong payment is counted; and the team's own shadow-mode decisions replayed through the same code with the model's answers as recorded, decision by decision. - [Contracts on Arc](https://www.vestiarion.xyz/docs/contracts.md): The contracts Vestiarion deploys and the Circle contracts it calls, with their addresses. - [Every integration at a glance](https://www.vestiarion.xyz/docs/guides/integrations.md): What each connected tool brings in, what Vestiarion writes back to it and who allows that, how it stays current, and what none of them does: approve or pay. - [Bring bills in from Xero](https://www.vestiarion.xyz/docs/guides/xero.md): Connect a Xero organisation: its approved bills come in for review on Bills & receivables, go through the same check as a bill list, and become payables only when you add them. Choose the account payments made on Arc will be booked to. - [Bring bills in from QuickBooks Online](https://www.vestiarion.xyz/docs/guides/quickbooks.md): Connect a QuickBooks Online company: its open bills come in for review on Bills & receivables, go through the same check as a bill list, and become payables only when you add them. Choose the bank account payments made on Arc will be booked to. - [Bring bills in from Zoho Books](https://www.vestiarion.xyz/docs/guides/zohobooks.md): Connect a Zoho Books organization, in whichever Zoho data center it lives: its open bills come in for review on Bills & receivables, go through the same check as a bill list, and become payables only when you add them. Nothing is written to Zoho Books. - [Bring bills in from Google Drive](https://www.vestiarion.xyz/docs/guides/google-drive.md): Connect a Google account and choose one Drive folder: each PDF added to it is read into a bill that waits for review on Bills & receivables, beside the invoices that came by email. A person adds every one, and nothing is written to Google Drive. - [Bring deals in from HubSpot](https://www.vestiarion.xyz/docs/guides/hubspot.md): Connect a HubSpot account: its won deals come in with their customers under Deals on Bills & receivables, Plan collections fills in the New deal form, and a deal changed in HubSpot afterwards says so for you to act on. - [Bring deals in from Pipedrive](https://www.vestiarion.xyz/docs/guides/pipedrive.md): Connect a Pipedrive company: its won deals come in with their organizations under Deals on Bills & receivables, Plan collections fills in the New deal form, a deal changed in Pipedrive afterwards says so, and receipts from Arc mainnet go back to the deal once allowed. - [Bring deals in from Zoho CRM](https://www.vestiarion.xyz/docs/guides/zohocrm.md): Connect a Zoho CRM organization, in whichever Zoho data center it lives: its won deals come in with their accounts under Deals on Bills & receivables, Plan collections fills in the New deal form, and a deal changed in Zoho CRM afterwards says so. Nothing is written to Zoho CRM. - [Accept contractor work from Asana](https://www.vestiarion.xyz/docs/guides/asana.md): Connect Asana, link a milestone to the task its work is delivered in, write the criteria from the agreement, and accept the work once the task is completed. A task reopened or changed after acceptance, once read, is held for review before the payment is sent. - [Accept contractor work from Linear](https://www.vestiarion.xyz/docs/guides/linear.md): Connect Linear, link a milestone to the issue its work is delivered in, write the criteria from the agreement, and accept the work once the issue is done. An issue reopened, canceled or changed after acceptance, once read, is held for review before the payment is sent. - [Accept contractor work from Jira](https://www.vestiarion.xyz/docs/guides/jira.md): Connect a Jira Cloud site, link a milestone to the issue its work is delivered in, write the criteria from the agreement, and accept the work once the issue is done. An issue reopened, resolved as not done or changed after acceptance, once read, is held for review before the payment is sent. - [Show payments on GitHub](https://www.vestiarion.xyz/docs/guides/github.md): Connect GitHub so a milestone paid for a pull request gets a comment on it, pull requests in private repositories verify, and a maintainer attaches a bounty with a comment. - [Get the agent's decisions in Slack](https://www.vestiarion.xyz/docs/guides/slack.md): Connect a workspace to a Slack channel: the agent's decisions as it makes them, the bills waiting for approval with a Review button each, /vestiarion for what is safe to spend and waiting, and stopped payments decided from Slack when an owner allows it. - [Get the agent's decisions in Telegram](https://www.vestiarion.xyz/docs/guides/telegram.md): Connect your own Telegram chat to a workspace: the agent's decisions as it makes them, each bill waiting for approval with a link to review it that never approves anything, what is safe to spend and waiting, and invoices sent to the bot. - [Get bills waiting for approval in Discord](https://www.vestiarion.xyz/docs/guides/discord.md): Connect a Discord channel with a webhook: each bill the agent holds or flags for a person is posted there after the cycle, with a link to review it in Approvals that never approves anything. - [Capture invoices from Chrome](https://www.vestiarion.xyz/docs/guides/invoice-capture.md): Install Vestiarion Invoice Capture, connect it to your workspace, capture an invoice you select or choose, check its fields and send it as a draft that an owner or admin adds as a bill on Bills & receivables. It never pays. - [Developer quickstart](https://www.vestiarion.xyz/docs/get-started/quickstart.md): Create a workspace API key and make your first requests. - [TypeScript SDK](https://www.vestiarion.xyz/docs/get-started/sdk.md): A typed client for the API and its webhooks: every page, safe retries and signature checks. - [Command-line interface](https://www.vestiarion.xyz/docs/get-started/cli.md): The vestiarion command: log in once, read records and the agent's decisions, add records after a confirmation, and verify exports and webhooks offline. - [Authentication](https://www.vestiarion.xyz/docs/get-started/authentication.md): Workspace API keys: their format, scope, revocation and use. - [Use Vestiarion from Postman](https://www.vestiarion.xyz/docs/get-started/postman.md): Import the Getting Started and API reference collections, set a read-only key, make a first call, then add records with a read-and-write key. - [n8n](https://www.vestiarion.xyz/docs/get-started/n8n.md): The Vestiarion nodes for n8n: add bills for the agent to decide, read its decisions, and start a workflow on each one it signs. - [Zapier](https://www.vestiarion.xyz/docs/get-started/zapier.md): The Vestiarion integration for Zapier: start a Zap on the agent's decisions and on each bill paid, and add bills for the agent to decide. - [Add invoices from your own system](https://www.vestiarion.xyz/docs/guides/api-invoices.md): Create a read-and-write API key, add a counterparty and an invoice through the API, confirm the address, and follow the agent's decision. - [Pay for merged pull requests](https://www.vestiarion.xyz/docs/guides/api-milestones.md): Add a contractor, a payee link and a milestone through the API, and the agent pays once the pull request is merged. With a GitHub Actions workflow. - [Data delivery methods](https://www.vestiarion.xyz/docs/data-delivery.md): REST pull or webhook push: how each delivers data, and when to use which. - [Errors](https://www.vestiarion.xyz/docs/get-started/errors.md): The error codes, their HTTP statuses and the error body. - [Pagination](https://www.vestiarion.xyz/docs/get-started/pagination.md): Page through collections with limit and an opaque cursor. - [Limits](https://www.vestiarion.xyz/docs/get-started/limits.md): Page sizes, backing off on 429 and 503, and how fresh the data is. - [AI integration](https://www.vestiarion.xyz/docs/ai-integration.md): Markdown views, llms.txt and the OpenAPI document, for coding agents. - [MCP server](https://www.vestiarion.xyz/docs/ai-integration/mcp.md): Connect an AI agent to your workspace's records through MCP tools: every API read, evidence and close packs as digests, and with a read-and-write key, adding counterparties, invoices, milestones and payee links. - [Endpoint overview](https://www.vestiarion.xyz/docs/api.md): Every v1 endpoint, what it answers, and the conventions they share. - [Get workspace status](https://www.vestiarion.xyz/docs/api/get-status.md): What this workspace is, and what it can actually do. - [List ledger entries](https://www.vestiarion.xyz/docs/api/list-ledger-entries.md): The audit chain, oldest first, as a resumable stream. - [Verify the ledger](https://www.vestiarion.xyz/docs/api/verify-ledger.md): Replays signatures, body hashes and hash-chain continuity for the workspace the calling key belongs to. - [List invoices](https://www.vestiarion.xyz/docs/api/list-invoices.md): The payable and receivable book, newest first, with the row id breaking equal timestamps. - [Add an invoice](https://www.vestiarion.xyz/docs/api/create-invoice.md): Adds a payable or a receivable, checked by the rules of the console's invoice form, and recorded in the ledger as `create_invoice` with `via: "api"` and the key's id. - [List counterparties](https://www.vestiarion.xyz/docs/api/list-counterparties.md): Vendors, clients and contractors, newest first, with the row id breaking equal timestamps. - [Get a counterparty](https://www.vestiarion.xyz/docs/api/get-counterparty.md): One counterparty, with up to 20 recent compliance screenings, newest first. - [Add a counterparty](https://www.vestiarion.xyz/docs/api/create-counterparty.md): Adds a vendor, contractor or client, checked by the rules of the console's form and screened as one added there: the answer's `riskLevel` is the screening's verdict, or `unscreened` when screening could not finish. - [Create a payee link](https://www.vestiarion.xyz/docs/api/create-payee-link.md): Makes a one-time link where a vendor or contractor enters the address they are paid at, recorded in the ledger as `payee_link_created` with `via: "api"` and the key's id. - [List milestones](https://www.vestiarion.xyz/docs/api/list-milestones.md): Contractor milestones, newest first, with the row id breaking equal timestamps: how each was verified, and whether it was paid. - [Add a milestone](https://www.vestiarion.xyz/docs/api/create-milestone.md): Adds work a contractor is to be paid for, checked by the rules of the console's Add milestone form, and recorded in the ledger as `create_milestone` with `via: "api"` and the key's id. - [Get the treasury](https://www.vestiarion.xyz/docs/api/get-treasury.md): The workspace's accounts and reserve position, its obligations from the latest cycle snapshot, the latest liquidity forecast, and up to 20 recent treasury moves. - [Get insights](https://www.vestiarion.xyz/docs/api/get-insights.md): The telemetry behind the Insights page: recent transfers, cycle runs, cycle snapshots, treasury moves and screenings. - [Get a payable's evidence](https://www.vestiarion.xyz/docs/api/get-invoice-evidence.md): Why a payable was paid, or why it is not paid yet, as one signed document: the evidence chain its evidence page shows, from what was agreed to the signatures. - [Get a milestone's evidence](https://www.vestiarion.xyz/docs/api/get-milestone-evidence.md): Why a contractor's milestone was paid, or why it is not paid yet, as one signed document: what was agreed, what was delivered and how it was verified, who decided, and the payment, each fact citing the ledger entries it rests on, which the document carries in full with the workspace's public keys. - [Get a payable's receipt](https://www.vestiarion.xyz/docs/api/get-invoice-receipt.md): What a receipt states for a paid payable, in the format `vestiarion-receipt/1`: the amount and token, when it was paid, the address paid and its chain, the transaction, its route and fee, the vendor's invoice number, and what an early-payment discount took off; the ledger entry that recorded the transaction; and two checks, of that entry's signature and of the transaction on the payee's chain. - [Get the payee lock's evidence](https://www.vestiarion.xyz/docs/api/get-payee-lock-evidence.md): Every payout address change in a period, in the format `vestiarion-payee-lock-evidence/1`: who entered it, how it was checked and by whom, whether a second person stood behind it, what it held back, and the first payment to it, each fact citing the signed entries it rests on, which the document carries in full with the workspace's public keys. - [Get a monthly close pack](https://www.vestiarion.xyz/docs/api/get-close-pack.md): Every payment settled in a calendar month (UTC), one row each: the bill with its invoice number and its document's SHA-256, who decided and approved it, what was checked, the transaction, the books, and the signed entry that records it; then the payments not settled in the month and the escrow moves, apart, totals per token, and every cited entry in full with the workspace's public keys. - [Webhooks overview](https://www.vestiarion.xyz/docs/webhooks.md): Signed webhooks that push each ledger entry to your endpoint. - [Payload and headers](https://www.vestiarion.xyz/docs/webhooks/payload.md): The body and headers of every webhook delivery. - [Verifying signatures](https://www.vestiarion.xyz/docs/webhooks/verify.md): Check a delivery's signature, and a ledger entry's Ed25519 signature. - [Retries and disabling](https://www.vestiarion.xyz/docs/webhooks/retries.md): How a failed delivery is retried, and when an endpoint is disabled. - [Security](https://www.vestiarion.xyz/docs/webhooks/security.md): Which endpoint URLs are accepted, how long deliveries are kept, and who sees them. - [Delivery guarantees](https://www.vestiarion.xyz/docs/webhooks/guarantees.md): At-least-once and out-of-order delivery, and how a receiver handles both. - [Changelog](https://www.vestiarion.xyz/docs/changelog.md): Changes to the API and webhooks, newest first. ## Optional - [OpenAPI document](https://www.vestiarion.xyz/api/v1/openapi.json)