Share an invoice with the counterparty

Distributes the invoice to the counterparty over a channel (relationship — a Bitwave org-to-org connection — or email).

:share is a superset of :issue: if the invoice is still a draft, it is committed (lifecycle: issued) first, then shared. Idempotent: re-sharing on the same channel succeeds with no change.

Precondition (otherwise 409 precondition_failed): the invoice must have at least one paymentAccountIds entry, so the payor has somewhere to pay (find candidates with GET /v1/payment-accounts?enabledForAR=true). A voided or deleted invoice cannot be shared. Send the current version; a stale value is refused with 409 version_mismatch.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The invoice id.

Body Params

Body for :share. Carries the version you last read via GET (a stale value is refused with 409 version_mismatch) and the channel to distribute over.

int64
required
≥ 0

The invoice version you last read (via GET).

string
enum
required

Channel over which an invoice is distributed to the counterparty. Extensible enum — tolerate unknown values.

  • relationship — delivered through a Bitwave org-to-org connection (appears as
    the counterparty's AP bill).

  • email — delivered as an InvoiceShare link by email.

Allowed:
Headers
string
length ≤ 255

Optional idempotency key (a UUID is ideal). Retrying a command with the same key applies the action at most once and returns the original result, so a network retry can't double-apply. Complements version (which guards concurrent writes).

Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json