When to use
- B2B billing, consulting, subscriptions with explicit line items
- Hosted payment links (
as_payment_link: true) — see Hosted checkout
Lifecycle
Typical flow
POST /v1/invoices/create(requirescounterparty_id)POST /v1/invoices/{invoice_id}/items/addfor each linePUT /v1/invoices/publish/{id}→ACTIVE- Collect via hosted checkout or API-embedded session → execution → status
Create
List
currency (ISO 4217), status.
Retrieve
By system ID:invoice_items and embedded counterparty.
Update (draft only)
IDLE invoices can be edited.
Line items
Add:Publish & cancel
Receipt
PAID. Includes fee breakdown, FX, provider, and line items.
State transitions
Cannot edit line items after publish. Cannot cancel while
PROCESSING.
