{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crunchtime-information-systems/json-schema/crunchtime-information-systems-electronic-invoice-details-list-schema.json",
  "title": "ElectronicInvoiceDetailsList",
  "description": "ElectronicInvoiceDetailsList description",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crunchtime-information-systems-electronic-invoice-service-api-openapi.yml#/components/schemas/ElectronicInvoiceDetailsList",
  "type": "object",
  "properties": {
    "electronicInvoiceDetails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ElectronicInvoiceDetails"
      }
    },
    "locationCode": {
      "type": "string"
    }
  },
  "$defs": {
    "ElectronicInvoiceDetails": {
      "type": "object",
      "properties": {
        "electronicInvoiceDetailRowList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ElectronicInvoiceDetailsDto"
          }
        },
        "electronicInvoiceHeaderDetails": {
          "$ref": "#/$defs/ElectronicInvoiceHeaderDto"
        }
      },
      "title": "ElectronicInvoiceDetails",
      "description": "ElectronicInvoiceDetails description"
    },
    "ElectronicInvoiceDetailsDto": {
      "type": "object",
      "required": [
        "vendorProductNumber"
      ],
      "properties": {
        "catchWeightInd": {
          "type": "string",
          "description": "Indicates whether the “Invoice Quantity” and “Invoice Price” are in Vendor Units (‘N’) or Inventory Units (‘Y’). If left blank, will be interpreted as ‘N’."
        },
        "creditValue": {
          "type": "string",
          "description": "Value of any credit that should be applied to the Extended Value of the line item to adjust the Invoice Price."
        },
        "extendedValue": {
          "type": "string",
          "description": "The Total Invoice Value of the line item. Should be equal to [(Invoice Quantity x Invoice Price) + Tax Value]."
        },
        "invoicePrice": {
          "type": "string",
          "description": "The vendor's Invoice Price for the product line item."
        },
        "invoiceQuantity": {
          "type": "string",
          "description": "The vendor's Invoice Quantity for the product line item."
        },
        "lotNumber": {
          "type": "string",
          "description": "The Lot Number associated with the product."
        },
        "manufacturerNumber": {
          "type": "string",
          "description": "The Manufacturer's Number for the product."
        },
        "productBrand": {
          "type": "string",
          "description": "The manufacturer's Brand for the product."
        },
        "splitIndicator": {
          "type": "string",
          "description": "Indicates a Split Unit or Substitute Vendor Product ('Y' or 'N') as defined on the Vendor Bids screen."
        },
        "subsIndicator": {
          "type": "string",
          "description": "Indicates whether the Vendor Product on the original order has been substituted ('Y' or 'N') with a different vendor product."
        },
        "subsPackageConversion": {
          "type": "string",
          "description": "The Vendor's Conversion for the substitute product. This is the number of Inventory Units in 1 Substitute Vendor Product Unit."
        },
        "subsProductName": {
          "type": "string",
          "description": "The Vendor's Product Name for the substitute product."
        },
        "subsProductNumber": {
          "type": "string",
          "description": "The Vendor's Product Number for the substitute product."
        },
        "subsProductPackageType": {
          "type": "string",
          "description": "The Vendor's Package Type/Unit for the substitute product."
        },
        "taxValue": {
          "type": "string",
          "description": "The line item Tax Value for the product."
        },
        "traceabilityCode": {
          "type": "string",
          "description": "The Traceability Code for the product."
        },
        "traceabilityCodeSource": {
          "type": "string",
          "description": "The Traceability Code Source for the product."
        },
        "vendorPortalId": {
          "type": "string",
          "description": "The Vendor Portal ID."
        },
        "vendorProductNumber": {
          "type": "string",
          "description": "The Vendor's Product Number for the product line item."
        }
      },
      "title": "ElectronicInvoiceDetailsDto",
      "description": "ElectronicInvoiceDetailsDto description"
    },
    "ElectronicInvoiceHeaderDto": {
      "type": "object",
      "required": [
        "expectedDeliveryDate",
        "invoiceDate",
        "locationCode",
        "vendorCode"
      ],
      "properties": {
        "expectedDeliveryDate": {
          "type": "string",
          "description": "The Expected Delivery Date for the order."
        },
        "invoiceDate": {
          "type": "string",
          "description": "The vendor's Invoice Date for the order."
        },
        "invoiceValue": {
          "type": "string",
          "description": "The Total Invoice Value for the order."
        },
        "locationCode": {
          "type": "string",
          "description": "The Code for the Location associated with the order."
        },
        "misc1Amount": {
          "type": "string",
          "description": "The amount of the Misc. 1 charge for the order."
        },
        "misc1GlDescription": {
          "type": "string",
          "description": "The GL account associated with the Misc. 1 charge for the order."
        },
        "misc2Amount": {
          "type": "string",
          "description": "The amount of the Misc. 2 charge for the order."
        },
        "misc2GlDescription": {
          "type": "string",
          "description": "The GL account associated with the Misc. 2 charge for the order."
        },
        "shippingAmount": {
          "type": "string",
          "description": "The amount of the Freight/Shipping charge for the order."
        },
        "shippingGlDescription": {
          "type": "string",
          "description": "The GL account associated with the Freight/Shipping charge for the order."
        },
        "taxAmount": {
          "type": "string",
          "description": "The amount of the Tax charged for the order."
        },
        "taxGlDescription": {
          "type": "string",
          "description": "The GL account associated with the Tax charged for the order."
        },
        "transactionNumber": {
          "type": "string",
          "description": "The Transaction Number for the order. Only required if updating an existing vendor order."
        },
        "vendorCode": {
          "type": "string",
          "description": "The Code for the vendor associated with the order."
        },
        "vendorInvoiceNumber": {
          "type": "string",
          "description": "The vendor's Invoice Number for the order."
        }
      },
      "title": "ElectronicInvoiceHeaderDto",
      "description": "ElectronicInvoiceHeaderDto description"
    }
  }
}