{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "InvoiceLineInput.json",
  "title": "Invoice line (request)",
  "description": "Send either amount, or quantity and unitPrice.",
  "type": "object",
  "properties": {
    "serviceId": {
      "type": "integer",
      "format": "int32",
      "description": "A service in the organization's catalogue. Lines may use different services."
    },
    "quantity": {
      "type": "number",
      "format": "decimal",
      "description": "Greater than 0. Flux multiplies it by unitPrice and rounds to 2 decimals."
    },
    "unitPrice": {
      "type": "number",
      "format": "decimal",
      "description": "0 or more."
    },
    "amount": {
      "type": "number",
      "format": "decimal",
      "description": "The line amount, when you don't send quantity and rate. Each line's amount must be greater than 0."
    },
    "detail": {
      "type": "string",
      "description": "Detail text shown after the service name. At most 500 characters."
    }
  },
  "required": [
    "serviceId"
  ]
}
