Actions163
- Accounting Distribution Actions
- Appointment Device Actions
- Appointment Request Actions
- Appointment Room Actions
- Calendar Appointment Actions
- Calendar Journey Actions
- Calendar Opening Hour Actions
- Call Actions
- Clinic Actions
- Communication Record Actions
- Communication Template Actions
- Consultation Actions
- Credit Note Actions
- Doctor Actions
- Document Template Actions
- Feature Actions
- Global Product Actions
- Invoice Actions
- Lead Actions
- Media Montage Actions
- Media Record Actions
- Medical History Actions
- Object Label Actions
- Patient Actions
- Payment Actions
- Payment Medium Actions
- Photo Compare Actions
- Prescription Actions
- Product Actions
- Quote Actions
- Sub Visit Type Actions
- Survey Form Actions
- Treatment Actions
- Treatment Package Actions
- Treatment Pricing Actions
- Treatment Type Actions
- User Actions
- Visit Actions
- Visit Type Actions
- Visit Type Category Actions
- Webhook Actions
Invoice → Create
AI-generatedSummary
Create a new invoice in NextMotion for a specified patient and consultation, optionally linked to a clinic, quote, and document template, including invoice details, payments, treatments, and validation options.
Inputs
- Clinic — Optionally select the clinic by list or ID; required for some invoice retrieval scenarios.
- Patient (required) — Select the patient for the invoice, either by searchable list or by ID; requires clinic to be selected first.
- Consultation (required) — Select the consultation related to the invoice, either from a list filtered by patient or by ID.
- Additional Fields — Specify optional invoice attributes such as created date, sale date, free text notes, rebate amounts or percentages, document template for PDF rendering, autocomplete answers for templates, payments setup and validation flags.
- Quote — Optionally create the invoice from an existing quote, requiring clinic and patient to be selected.
- Treatments — List treatments to include on the invoice as fixed collection items with optional overrides for price, quantity, rebate, and VAT rate; mutually exclusive with quote.
Output shape
a JSON object representing the created invoice
The output returns the full newly created invoice record as per the NextMotion API response. Optional fields and nested objects like payments, treatments, and document templates are included if specified in input.
Examples
Example 1: Create an invoice for a patient and consultation with payment details and a document template.
Specify the patient and consultation via searchable lists, input additional fields like created_time and free_text, define payment methods amounts, and select a document template to generate the PDF.