{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SalesOrder",
  "title": "SalesOrder",
  "type": "object",
  "description": "Sales order header entity (A_SalesOrder)",
  "properties": {
    "SalesOrder": {
      "type": "string",
      "maxLength": 10,
      "description": "Sales order number"
    },
    "SalesOrderType": {
      "type": "string",
      "maxLength": 4,
      "description": "Sales document type"
    },
    "SalesOrganization": {
      "type": "string",
      "maxLength": 4,
      "description": "Sales organization"
    },
    "DistributionChannel": {
      "type": "string",
      "maxLength": 2,
      "description": "Distribution channel"
    },
    "OrganizationDivision": {
      "type": "string",
      "maxLength": 2,
      "description": "Division"
    },
    "SalesGroup": {
      "type": "string",
      "maxLength": 3,
      "description": "Sales group"
    },
    "SalesOffice": {
      "type": "string",
      "maxLength": 4,
      "description": "Sales office"
    },
    "SalesDistrict": {
      "type": "string",
      "maxLength": 6,
      "description": "Sales district"
    },
    "SoldToParty": {
      "type": "string",
      "maxLength": 10,
      "description": "Sold-to party customer number"
    },
    "CreationDate": {
      "type": "string",
      "format": "date",
      "description": "Date on which the sales order was created"
    },
    "CreatedByUser": {
      "type": "string",
      "maxLength": 12,
      "description": "User who created the sales order"
    },
    "LastChangeDate": {
      "type": "string",
      "format": "date",
      "description": "Date of last change"
    },
    "LastChangeDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of last change (UTC)"
    },
    "PurchaseOrderByCustomer": {
      "type": "string",
      "maxLength": 35,
      "description": "Customer purchase order number"
    },
    "CustomerPurchaseOrderType": {
      "type": "string",
      "maxLength": 4,
      "description": "Customer purchase order type"
    },
    "CustomerPurchaseOrderDate": {
      "type": "string",
      "format": "date",
      "description": "Customer purchase order date"
    },
    "SalesOrderDate": {
      "type": "string",
      "format": "date",
      "description": "Document date of the sales order"
    },
    "TotalNetAmount": {
      "type": "string",
      "description": "Net value of the sales order in document currency"
    },
    "TransactionCurrency": {
      "type": "string",
      "maxLength": 5,
      "description": "SD document currency"
    },
    "SDDocumentReason": {
      "type": "string",
      "maxLength": 3,
      "description": "Order reason"
    },
    "PricingDate": {
      "type": "string",
      "format": "date",
      "description": "Date for pricing and exchange rate determination"
    },
    "RequestedDeliveryDate": {
      "type": "string",
      "format": "date",
      "description": "Requested delivery date"
    },
    "ShippingCondition": {
      "type": "string",
      "maxLength": 2,
      "description": "Shipping conditions"
    },
    "CompleteDeliveryIsDefined": {
      "type": "boolean",
      "description": "Complete delivery flag"
    },
    "ShippingType": {
      "type": "string",
      "maxLength": 2,
      "description": "Shipping type"
    },
    "HeaderBillingBlockReason": {
      "type": "string",
      "maxLength": 2,
      "description": "Billing block for the header"
    },
    "DeliveryBlockReason": {
      "type": "string",
      "maxLength": 2,
      "description": "Delivery block for the header"
    },
    "IncotermsClassification": {
      "type": "string",
      "maxLength": 3,
      "description": "Incoterms (part 1)"
    },
    "IncotermsTransferLocation": {
      "type": "string",
      "maxLength": 28,
      "description": "Incoterms (part 2)"
    },
    "IncotermsLocation1": {
      "type": "string",
      "maxLength": 70,
      "description": "Incoterms location 1"
    },
    "IncotermsLocation2": {
      "type": "string",
      "maxLength": 70,
      "description": "Incoterms location 2"
    },
    "PaymentMethod": {
      "type": "string",
      "maxLength": 1,
      "description": "Payment method"
    },
    "CustomerPaymentTerms": {
      "type": "string",
      "maxLength": 4,
      "description": "Terms of payment key"
    },
    "OverallSDProcessStatus": {
      "type": "string",
      "maxLength": 1,
      "description": "Overall processing status of the sales order"
    },
    "TotalCreditCheckStatus": {
      "type": "string",
      "maxLength": 1,
      "description": "Overall status of credit checks"
    },
    "OverallDeliveryStatus": {
      "type": "string",
      "maxLength": 1,
      "description": "Overall delivery status"
    },
    "OverallBillingStatus": {
      "type": "string",
      "maxLength": 1,
      "description": "Overall billing status"
    }
  }
}