{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/moneygraph-ai/json-schema/moneygraph-ai-put-api-v1-invoice-invoice-update-invoiceid-request-schema.json",
  "title": "PutApiV1InvoiceInvoiceUpdateInvoiceidRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/moneygraph-ai-openapi-generated.yml#/components/schemas/PutApiV1InvoiceInvoiceUpdateInvoiceidRequest",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "New invoice number. Must not be used by another invoice in the current mode."
    },
    "customer": {
      "type": "string",
      "description": "ID of a different recipient. It must be in the invoice's currency."
    },
    "due_date": {
      "type": "string",
      "description": "Y-m-d, today or later. New due date."
    },
    "items": {
      "type": "array",
      "description": "1–20 items. Replaces all line items. Each item needs description (max 255), quantity (integer, min 1) and amount (numeric, min 0.01)."
    },
    "discount_type": {
      "type": "string",
      "description": "fixed | percentage. How the discount is applied."
    },
    "discount_value": {
      "type": "string",
      "description": "Discount amount, or a percentage (max 100) when the discount type is percentage. A fixed discount cannot exceed the subtotal."
    },
    "tax_type": {
      "type": "string",
      "description": "fixed | percentage. How the tax is applied."
    },
    "tax_value": {
      "type": "string",
      "description": "Tax amount, or a percentage of the discounted subtotal (subtotal − discount) when the tax type is percentage."
    },
    "memo": {
      "type": "string",
      "description": "Note shown on the invoice. Send null to clear it."
    },
    "invoice_vat_number": {
      "type": "string",
      "description": "VAT number printed on the invoice."
    },
    "invoice_delivery_number": {
      "type": "string",
      "description": "Delivery note number printed on the invoice."
    },
    "invoice_order_number": {
      "type": "string",
      "description": "Purchase order number printed on the invoice."
    },
    "invoice_customer_signature": {
      "type": "boolean",
      "description": "Add or remove the customer signature line."
    },
    "header": {
      "type": "string",
      "description": "ID of an invoice header. Send null to remove it."
    },
    "signature": {
      "type": "string",
      "description": "ID of an invoice signature. Send null to remove it."
    },
    "image_background": {
      "type": "boolean",
      "description": "Display option stored with the invoice."
    },
    "status": {
      "type": "integer",
      "description": "0 | 1. 1 makes the invoice active, 0 disables it. Returned as active / disabled."
    },
    "emails": {
      "type": "array",
      "description": "max 5. Replaces the notification addresses. Each item is an object with an email field. Send an empty array to clear them."
    },
    "send_email": {
      "type": "boolean",
      "description": "Set to true to regenerate the PDF and email the updated invoice to the recipient. Defaults to false."
    }
  }
}