{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rockwell-automation/json-schema/rockwell-automation-update-accounts-payable-invoice-dto-schema.json",
  "title": "UpdateAccountsPayableInvoiceDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rockwell-automation-accounts-payable-invoices-api-api-openapi.yml#/components/schemas/UpdateAccountsPayableInvoiceDto",
  "type": "object",
  "properties": {
    "invoiceNumber": {
      "type": "string",
      "description": "The AP invoice number."
    },
    "supplierId": {
      "type": "string",
      "format": "uuid",
      "description": "The AP invoice ID."
    },
    "supplierCode": {
      "type": "string",
      "description": "The AP invoice supplier code, typically an abbreviated name for the supplier."
    },
    "supplierAddressCode": {
      "type": "string",
      "description": "The AP invoice supplier address code."
    },
    "terms": {
      "type": "string",
      "description": "The AP invoice terms."
    },
    "periodDisplay": {
      "type": "string",
      "description": "The period in which an AP invoice is recorded."
    },
    "currencyCode": {
      "type": "string",
      "description": "The AP invoice currency code."
    },
    "status": {
      "type": "string",
      "description": "The AP invoice status."
    },
    "discountDueDate": {
      "type": "string",
      "format": "date-time",
      "description": "The AP invoice discount due date."
    },
    "poId": {
      "type": "string",
      "format": "uuid",
      "description": "The AP invoice purchase order ID."
    },
    "note": {
      "type": "string",
      "description": "A note added to an AP invoice."
    },
    "checkNote": {
      "type": "string",
      "description": "A check note added to an AP invoice."
    },
    "buildingCode": {
      "type": "string",
      "description": "The code used to look up the building resource."
    },
    "invoiceDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date an AP invoice was created."
    },
    "poNumber": {
      "type": "string",
      "description": "The AP invoice purchase order number."
    },
    "dueDate": {
      "type": "string",
      "format": "date-time",
      "description": "The AP invoice due date."
    },
    "department": {
      "type": "string",
      "description": "The AP invoice department code."
    },
    "exchangeRate": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice exchange rate."
    },
    "governmentIssuedNumber": {
      "type": "string",
      "description": "The AP invoice government issued number."
    },
    "discount": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice discount."
    },
    "interCompany": {
      "type": "boolean",
      "description": "The AP invoice intercompany tax."
    },
    "discountableAmount": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice discountable amount."
    },
    "taxPointDate": {
      "type": "string",
      "format": "date-time",
      "description": "The AP invoice tax point date."
    },
    "expectedPayDate": {
      "type": "string",
      "format": "date-time",
      "description": "The AP invoice expected pay date."
    },
    "type": {
      "type": "string",
      "description": "The AP invoice type."
    },
    "checkNos": {
      "type": "string",
      "description": "The AP invoice check numbers."
    },
    "lines": {
      "type": "array",
      "description": "A list of AP lines.",
      "items": {
        "type": "object",
        "properties": {}
      }
    },
    "lineId": {
      "type": "string",
      "format": "uuid",
      "description": "A unique identifier for the AP invoice line item."
    },
    "accountId": {
      "type": "string",
      "format": "uuid",
      "description": "A unique identifier for the AP invoice line account."
    },
    "accountNumber": {
      "type": "string",
      "description": "The AP invoice line account number."
    },
    "projectCode": {
      "type": "string",
      "description": "The AP invoice line project code."
    },
    "description": {
      "type": "string",
      "description": "A description of the AP invoice line."
    },
    "accountingJobNumber": {
      "type": "string",
      "description": "The accounting job number for an AP invoice line, if applicable."
    },
    "itemTaxCode": {
      "type": "string",
      "description": "The AP invoice item tax code."
    },
    "taxCodes": {
      "type": "array",
      "description": "A list of tax codes.",
      "items": {
        "type": "string"
      }
    },
    "shipperNo": {
      "type": "string",
      "description": "The AP invoice line supplier shipper number."
    },
    "referenceNo": {
      "type": "string",
      "description": "The AP invoice line reference number."
    },
    "unitPrice": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice line unit price."
    },
    "quantity": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice line quantity."
    },
    "isTaxLine": {
      "type": "boolean",
      "description": "Specify that the AP invoice line is a tax line."
    }
  }
}