NextMotion icon

NextMotion

Interact with NextMotion API for patient care management

Actions163

Credit Note → Create

AI-generated

Summary

Create a credit note for a specified clinic and patient with detailed line items and optional invoice association or validation.

Inputs

  • Clinic (required) — The clinic to associate the credit note with, selectable from a searchable list or by UUID.
  • Patient (required) — The patient for whom the credit note is issued, selectable from a searchable list or by UUID.
  • Items (JSON) (required) — A JSON array representing the line items to include in the credit note.
  • Additional Fields — Optional fields including an invoice ID to link a refund to a specific invoice and a boolean flag to indicate whether to validate the credit note immediately or leave it as draft.

Output shape

a single record containing the created credit note's data

The output returns the created credit note object. Optional validation can be triggered via parameters. The node handles one credit note creation per execution; batch processing is supported via input batching settings if needed.

Examples

Example 1: Creating a credit note for a patient at a clinic with line items and linking it to an invoice, optionally validating it.

Specify the clinic and patient IDs, provide the credit note items as a JSON array, optionally set the invoice ID and the validate flag in additional fields.

Links

Discussion