Skip to Content
AccountingKitDocs

Automations

Durable accounting recipes, from contact upserts to accepting a quote and raising its invoice, that resume from their last completed step after a failure.

Queue a recipe with POST /v1/automations:

{
  "connection_id": "00000000-0000-0000-0000-000000000000",
  "recipe": "quote.accept_and_create_invoice",
  "input": {
    "quote_resource_id": "00000000-0000-0000-0000-000000000000",
    "external_reference": "deal_814"
  }
}

Recipes

RecipeResultRuns on
contact.upsertCreates or reconciles a contactAll six
item.upsertCreates or updates a catalog item or SKUXero, QuickBooks Online
quote.draftCreates a draft quoteXero, NetSuite
quote.accept_and_create_invoiceAccepts a quote, creates a linked draft invoice, and optionally creates supplier POsXero
invoice.createCreates an invoiceAll six
invoice.record_paymentRecords a payment against an invoiceXero, QuickBooks Online, NetSuite, FreshBooks, Wave
purchase_order.createCreates a purchase orderXero, QuickBooks Online, NetSuite
document.fetchFetches an invoice, quote, or purchase-order PDFXero; invoices only on QuickBooks Online and Wave

Linked supplier purchase orders on quote acceptance

quote.accept_and_create_invoice accepts an optional purchase_orders array alongside the quote and invoice fields. Each entry specifies a supplier_contact_id, line_items, and optional external_reference, issue_date, delivery_date, currency, or status. AccountingKit validates every supplier PO before making any provider write, then executes one durable step per supplier (create_purchase_order:<index>) with cross-linked references so a transient failure on one supplier resumes without duplicating the invoice or earlier purchase orders.

Recipes need a cached connection; a zero-retention connection rejects them.

Every recipe runs as a durable operation: claimed under a lease, retried with bounded exponential backoff, resumed from its last completed step, and moved to dead_letter when attempts are exhausted rather than failing silently. Operations covers the states, the reconciliation safety net, and replay.

An automation run is metered once, after it succeeds. Failed attempts do not create duplicate usage events.

On this page