{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-invoice-line-details-with-keys-schema.json",
  "title": "data_invoice_line_details_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-ap-openapi.yml#/components/schemas/data_invoice_line_details_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_invoice_line_details"
    }
  ],
  "$defs": {
    "data_invoice_line_details": {
      "required": [
        "APCo",
        "Mth",
        "APTrans",
        "APLine",
        "APSeq",
        "PayType",
        "Amount",
        "DiscOffer",
        "DiscTaken",
        "DueDate",
        "Status",
        "KeyID",
        "ExpenseGST",
        "AuditYN"
      ],
      "type": "object",
      "properties": {
        "APCo": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "APTrans": {
          "type": "integer",
          "description": ""
        },
        "APLine": {
          "type": "integer",
          "description": ""
        },
        "APSeq": {
          "type": "integer",
          "description": ""
        },
        "PayType": {
          "type": "integer",
          "description": ""
        },
        "Amount": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "DiscOffer": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "DiscTaken": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "DueDate": {
          "type": "string",
          "description": ""
        },
        "Status": {
          "type": "integer",
          "description": ""
        },
        "PaidMth": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PaidDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CMCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "CMAcct": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "PayMethod": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CMRef": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "CMRefSeq": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "EFTSeq": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "VendorGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Supplier": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "PayCategory": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "GSTtaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "TotTaxAmount": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldGSTtaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ExpenseGST": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "AuditYN": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "PSTtaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldPSTtaxAmt": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReleaseDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReleaseBatchMonth": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ReleaseBatchId": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "__custom_fields": {
          "type": "object",
          "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
        }
      },
      "description": "Invoice line details is filtered by the Invoices filter."
    }
  }
}