{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rockwell-automation/json-schema/rockwell-automation-accounts-payable-invoice-dto-schema.json",
  "title": "AccountsPayableInvoiceDto",
  "description": "The Accounts Payable Invoice model.",
  "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/AccountsPayableInvoiceDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The AP invoice ID."
    },
    "invoiceNumber": {
      "type": "string",
      "description": "The AP invoice number."
    },
    "supplierId": {
      "type": "string",
      "format": "uuid",
      "description": "The AP supplier ID."
    },
    "supplierCode": {
      "type": "string",
      "description": "The AP supplier code."
    },
    "supplierAddressId": {
      "type": "string",
      "format": "uuid",
      "description": "The AP supplier address ID."
    },
    "supplierAddressCode": {
      "type": "string",
      "description": "The AP supplier address code."
    },
    "periodDisplay": {
      "type": "string",
      "description": "The period in which an AP invoice was recorded."
    },
    "transactionDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date an AP transaction was recorded."
    },
    "buildingCode": {
      "type": "string",
      "description": "The code used to look up the building resource."
    },
    "currencyCode": {
      "type": "string",
      "description": "The AP invoice currency code."
    },
    "exchangeRate": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice exchange rate."
    },
    "department": {
      "type": "integer",
      "format": "int32",
      "description": "The AP invoice department number."
    },
    "terms": {
      "type": "string",
      "description": "The AP invoice terms."
    },
    "dueDate": {
      "type": "string",
      "format": "date-time",
      "description": "The AP invoice due date."
    },
    "discount": {
      "type": "number",
      "format": "double",
      "description": "The discount applicable to an AP invoice."
    },
    "internalNote": {
      "type": "string",
      "description": "An internal note added to an AP invoice."
    },
    "voucherNumber": {
      "type": "string",
      "description": "The AP invoice voucher number."
    },
    "status": {
      "type": "string",
      "description": "The AP invoice status."
    },
    "governmentIssuedNumber": {
      "type": "string",
      "description": "The AP invoice government issued number."
    },
    "type": {
      "type": "string",
      "description": "The AP invoice type."
    },
    "createdById": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the user who created the record."
    },
    "createdDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date an AP invoice 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 an AP invoice was modified."
    },
    "booked": {
      "type": "boolean",
      "description": "Specify that an AP invoice is booked."
    },
    "taxableDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date the AP invoice tax was calculated."
    },
    "amount": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice amount."
    },
    "paid": {
      "type": "boolean",
      "description": "Specify that an AP invoice has been paid."
    },
    "paidDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date an AP invoice was paid."
    },
    "paidPeriod": {
      "type": "string",
      "description": "The period in which an AP invoice was paid."
    },
    "totalControlAmount": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice positive pay total payment amount."
    },
    "expectedPayDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date an AP invoice payment is expected."
    },
    "taxId": {
      "type": "string",
      "description": "The AP invoice tax ID from the supplier record."
    },
    "foreignCurrencyAmount": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice foreign currency amount."
    },
    "discountDueDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date an AP invoice must be paid to receive a defined discount."
    },
    "exchangeRateDate": {
      "type": "string",
      "format": "date-time",
      "description": "The date an AP invoice exchange rate was calculated."
    },
    "balance": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice balance."
    },
    "discountableAmount": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice discountable amount."
    },
    "debitMemo": {
      "type": "integer",
      "format": "int32",
      "description": "Specify an AP invoice debit memo."
    },
    "intercompany": {
      "type": "integer",
      "format": "int32",
      "description": "The AP invoice intercompany tax."
    },
    "checkNote": {
      "type": "string",
      "description": "A note added to an AP invoice check."
    },
    "shipperNo": {
      "type": "string",
      "description": "The AP invoice shipper number."
    },
    "shipperId": {
      "type": "string",
      "format": "uuid",
      "description": "The AP invoice shipper ID."
    },
    "poNumber": {
      "type": "string",
      "description": "The AP invoice purchase order number."
    },
    "poId": {
      "type": "string",
      "format": "uuid",
      "description": "The AP invoice purchase order ID."
    },
    "externalReferenceCode": {
      "type": "string",
      "description": "The AP invoice external reference code."
    },
    "foreignCurrencyBalance": {
      "type": "number",
      "format": "double",
      "description": "The AP invoice foreign balance."
    },
    "lines": {
      "type": "array",
      "description": "A list of AP invoice lines.",
      "items": {
        "type": "object",
        "description": "The Accounts Payable Invoice Line model.",
        "properties": {}
      }
    }
  }
}