{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acculynx/json-schema/acculynx-payment-received-schema.json",
  "title": "paymentReceived",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acculynx-jobs-api-openapi.yml#/components/schemas/paymentReceived",
  "type": "object",
  "required": [
    "amount"
  ],
  "properties": {
    "from": {
      "type": "string",
      "maxLength": 250,
      "description": "Party from which the payment was received (e.g., Customer Name)"
    },
    "amount": {
      "type": "number",
      "format": "decimal",
      "description": "The value of the received payment. Negative values are accepted (e.g., for adjustments)."
    },
    "paymentDate": {
      "type": "string",
      "description": "Optional. An ISO 8601 string of the payment's datetime including the time component and ending with 'Z' (so in UTC). https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC).  Only the date will be used, the time component will be ignored."
    },
    "paymentMethod": {
      "type": "string",
      "maxLength": 50,
      "description": "Payment method (e.g., Check, Credit Card, ACH, Wire)"
    },
    "checkNumber": {
      "type": "string",
      "maxLength": 50,
      "description": "Reference number for the payment (e.g., Check Number, Transaction ID). Values exceeding 50 characters return a 400 validation error."
    },
    "notes": {
      "type": "string",
      "maxLength": 250,
      "description": "Any notes or memo about the payment."
    }
  }
}