Nectar

Docs

Credits, payments and reminders

Credit notes, payments recorded with their reference, ageing and reminders you send from your own mail.

Nectar records payments received outside the installation and shows who owes what. Approved reminders and historical correction explanations use the configured mail provider; provider acceptance does not confirm mailbox delivery.

Credit notes

On an issued invoice, Issue credit note with an amount and a reason. A credit note is numbered and can never exceed what the invoice still owes.

Historical usage corrections have a separate governed path from the issued invoice's Historical usage replay link. Their numbered credit notes retain full original-tax attribution even when the original invoice is paid. Under Next invoice, the full credit carries forward; other policies offset the unpaid original and carry the excess. The invoice shows Face amount and Applied here separately. Customer records and Credit balances report show the remaining historical correction liability, with source, CSV and frozen monthly-report parity. Later recurring, manual and correcting invoices apply that liability once after their total, with the credit number on an informational line. This records no cash refund and no negative invoice. General overpayment, goodwill, prepaid and refundable balances remain separate unfinished capabilities.

Write-offs and bad debt

On an issued invoice, Bad debt write-offs lets a person with approval write off an uncollectable balance with a reason. The saved request names the exact balance, amount, reason and accounting effect (debit Bad Debts, credit Accounts Receivable (A/R) for the customer). Execution removes the amount from ageing, the AR report and collection, and leaves the issued invoice unchanged: invoiced = credited + paid + written off + owed. The owner's second-person threshold (set with the credit threshold) applies: above it, Write off now is refused and a different authorized person must approve the saved request; at or below it one person executes. A changed balance, policy or already-executed request is refused and changes nothing. Agents cannot write off, prepare or approve.

A later recovery is recorded with Record recovery: pick the recorded payment and the amount (never more than the payment's unallocated amount or the write-off still outstanding). The payment is allocated to the invoice, the write-off's net amount falls, and the ledger receives the reversing entry.

Each write-off and recovery saves its balanced journal entry in the same transaction and posts it to QuickBooks Online with the installation's QUICKBOOKS_ACCESS_TOKEN, QUICKBOOKS_ENVIRONMENT (sandbox or production) and the entity's recorded company (or QUICKBOOKS_COMPANY_ID when the customer has no billing entity). A failed or unconfigured post never undoes the write-off: it waits as a pending posting with an error code, and Retry pending ledger postings (ledger.post) posts it once, adopting an entry the ledger already recorded. Granting and refreshing the connection is part of the full books sync (BOOK-001).

Customer credit balance

A customer's Credit balance (customer record) is their unallocated cash (overpayments), goodwill credit and carried correction credit, with its own ledger. Grant goodwill credit adds goodwill; Record return of balance returns the unallocated cash of a payment and records the wire or check reference of the money the business sent back (Nectar sends none). The owner's second-person threshold applies: above it, Prepare for a second approver and a different approver executes the saved request. The balance applies to an invoice when an approver runs balance.apply, or automatically when it issues if the owner sets balance_application to automatic through credit.policy; goodwill applies first, then the oldest cash. The credit balances report, its source pages, CSV and scheduled snapshots equal this ledger.

Payments

Open Receivables → Payments received and Record payment: the customer, the amount, the date it was received, the method (Bank transfer, Check or Card (taken outside Nectar)) and its reference, which must be unique. Then allocate it on the invoice with Allocate payment. An allocation never exceeds the payment's unallocated amount or the invoice's balance.

Every invoice shows the sum: invoiced = credited + paid + written off + owed.

Ageing

Ageing lists each customer's balance as Not yet due, 1–30 days, 31–60 days, 61–90 days and Over 90, with what is past due in total.

Reminders

Draft reminder prepares a message stating the overdue invoices, balances and recent payments. A person checks the recipient and wording and presses Approve recipient and wording; if the balances change first, the draft must be prepared again. Download message saves it to send from your own mail.

Approving a reminder opens a dated follow-up task. Close it with what happened (for example, "Ada confirmed payment run").

Void and reissue an unpaid invoice

The authenticated JSON action /api/nectar/invoice.void supports ordinary zero-tax invoices that remain wholly unpaid and have no credit notes. It requires an owner or finance person with approval capability and any required fresh factor. Send invoice, its source_fingerprint as basis, a reason and confirm: true. The operation creates one numbered full credit and one linked replacement draft atomically with the audit. It preserves every original issued field, line and consumed charge or recurring billing period. The original screen says Voided and links to its replacement; the replacement links back to the original.

Above the owner's credit threshold, call /api/nectar/invoice.void.prepare with the same invoice, basis and reason first. A different current authorized person executes invoice.void with the returned request and the same invoice, basis and reason. The saved purpose cannot be used through ordinary credit approval. A changed balance or policy, revoked preparer, duplicate, payment, partial credit or erased customer refuses without creating a replacement or credit. An audit failure rolls the entire operation back. At or below the threshold one person can execute directly.

A claimed or uncertain capture is unresolved even when the invoice still shows its full balance. Both void preparation and execution refuse with invoice_collection_unresolved, including a saved request prepared before the capture. Pending automatic settlement and a hosted capture awaiting invoice allocation are protected too. First reconcile the original collection through /api/nectar/collection.reconcile (or /api/nectar/automatic.collection.reconcile for automatic collection). These operations read the existing provider attempt; for a hosted payment link, reconcile the original attempt through its customer return door. They do not authorize a second charge. A successful capture makes the invoice paid and ineligible for void. A definitive no-capture refusal leaves ordinary unpaid correction available.

Review the replacement through the ordinary invoice.approve and invoice.finalise actions. Its copied service lines retain their original source evidence and receive a new invoice number. Issuing it does not consume the original sources again or reopen their recurring billing period. Taxed invoices, funding lines and credit-consumption lines are refused by this door.

Read-only refund estimates

/api/nectar/invoice.refund.preview requires permission to read invoices and payments. Send invoice, amount and destination (original or balance). The invoice must have one verified native Stripe test-mode card capture funding its whole total. The estimate returns the issued original tax, the independently allocated reversing tax and pretax amount, the cash or customer-balance effect, the owner's second-approver requirement and a source-bound basis.

The response always says executionAvailable: false and providerOutcome: "not-attempted". It creates no refund, tax-provider transaction, credit, approval, balance entry or customer message. Processor refund execution, provider tax reversal and cancellation-refund integration remain unfinished.

Review an agent's invoice refund correction

An agent with full record read and proposal authority can prepare an amendment proposal with invoice_refund: true, the paid invoice, amount, destination, reason, customer explanation, subject, body and exact issued-line citations. Nectar computes the original and reversing subtotal and tax, cash or balance change, and revenue amount. The recipient is the customer's current billing address; the reviewed message is sent exactly as authored in that customer's language. Preparation moves no money and reserves no message.

A human prepares the saved proposal through invoice.refund.prepare with its proposal identifier. Approval uses proposal.decide; the ordinary amount limit, fresh factor and different-approver rule still apply. The saved request cannot execute through the standalone refund door. Changed financial sources, policy, customer record or recipient require a new proposal. Rejection sends nothing. The proposal page shows the frozen figures, citations, wording and actual refund and mail outcomes.

After a definitive provider outcome, the numbered credit and frozen message reservation commit together. A lost response or interrupted completion uses invoice.refund.reconcile and provider reads, preserving the original refund identity. Replaying approval or reconciliation cannot repeat the refund or message. Accepted mail means provider acceptance; it does not establish mailbox delivery. If the billing contact changes while the processor write is in flight, the cash outcome is recorded and the message is suppressed with an audit reason. A pending reservation may be claimed once, while a claimed or uncertain send is never automatically retried.

This door supports the existing non-taxable native card-capture refund scope. Provider tax reversal, cancellation-policy refunds and other source variants remain unproved. Closed revenue periods retain their frozen packet and CSV; a later refund adjustment appears in the open period.