invoice:create
invoice family
Make an estimate or an invoice for one of your customers: lines from your catalogue (ppid) or free text, an optional discount and tax rate, a customer, a due date. Numbered per workspace (INV-0001, EST-0001) with no gaps. It stays a draft until invoice:send. An estimate the customer accepts becomes an invoice by itself.
- Effect
- ask
- Awaits an outcome — the call returns the response below.
- Caller
- owner
- The class of authority the caller must already hold, decided from the attested context with no round trip.
- Cost
- free
- What one call costs, so you can budget before acting.
- Reversible
- yes
- The effect can be undone by a later call.
- Settles
- offchain
- Moves real value off chain — a balance changes.
- Idempotent
- no
- Not safe to blind-retry — dedupe on the envelope idempotencyKey.