{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rockwell-automation/json-schema/rockwell-automation-accounts-payable-payment-dto-schema.json",
  "title": "AccountsPayablePaymentDto",
  "description": "The Accounts Payable Payment model.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rockwell-automation-accounts-payable-payments-api-api-openapi.yml#/components/schemas/AccountsPayablePaymentDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the AP payment."
    },
    "paymentNumber": {
      "type": "string",
      "description": "The AP payment number."
    },
    "supplierId": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the AP supplier."
    },
    "supplierCode": {
      "type": "string",
      "description": "The AP supplier code."
    },
    "amount": {
      "type": "number",
      "format": "double",
      "description": "AP payment amount."
    },
    "periodDisplay": {
      "type": "string",
      "description": "The period in which an AP payment is recorded."
    },
    "transactionDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date on which an AP payment transaction was recorded."
    },
    "note": {
      "type": "string",
      "description": "Note added to an AP payment."
    },
    "createdById": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the user who created the record."
    },
    "createdDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date on which an AP payment was created."
    },
    "modifiedById": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the user who last modified the record."
    },
    "modifiedDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date on which an AP payment was modified."
    },
    "paymentType": {
      "type": "string",
      "description": "AP Payment Type."
    },
    "status": {
      "type": "string",
      "description": "AP payment status."
    },
    "checkDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date the AP payment check was issued."
    },
    "booked": {
      "type": "boolean",
      "description": "Specify AP payment is booked."
    },
    "cleared": {
      "type": "string",
      "description": "Specify AP payment has cleared.\nUncleared - the transaction is not part of a bank reconciliation\nPending - the transaction is part of a saved bank reconciliation that has not yet been finalized\nCleared - the transaction is part of a finalized bank reconciliation and has cleared the relevant bank account"
    },
    "clearDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date the AP payment cleared."
    },
    "clearPeriod": {
      "type": "string",
      "description": "Period in which the AP payment cleared."
    },
    "clearedAmount": {
      "type": "number",
      "format": "double",
      "description": "AP payment cleared amount."
    },
    "void": {
      "type": "boolean",
      "description": "Specify AP payment has been voided."
    },
    "voucherNo": {
      "type": "string",
      "description": "AP payment voucher number."
    },
    "checkNote": {
      "type": "string",
      "description": "Note added to an AP payment check."
    },
    "mailedDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date on which AP payment check was mailed."
    },
    "exchangeRate": {
      "type": "number",
      "format": "double",
      "description": "AP payment exchange rate."
    },
    "currencyCode": {
      "type": "string",
      "description": "AP payment currency code."
    },
    "lines": {
      "type": "array",
      "description": "List of AP Payment lines",
      "items": {
        "type": "object",
        "description": "The Accounts Payable Payment Line model.",
        "properties": {}
      }
    }
  }
}