{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "PurchaseOrder",
  "type": "object",
  "properties": {
    "@odata.etag": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "orderDate": {
      "type": "string"
    },
    "postingDate": {
      "type": "string"
    },
    "vendorId": {
      "type": "string"
    },
    "vendorNumber": {
      "type": "string"
    },
    "vendorName": {
      "type": "string"
    },
    "payToName": {
      "type": "string"
    },
    "payToVendorId": {
      "type": "string"
    },
    "payToVendorNumber": {
      "type": "string"
    },
    "shipToName": {
      "type": "string"
    },
    "shipToContact": {
      "type": "string"
    },
    "buyFromAddressLine1": {
      "type": "string"
    },
    "buyFromAddressLine2": {
      "type": "string"
    },
    "buyFromCity": {
      "type": "string"
    },
    "buyFromCountry": {
      "type": "string"
    },
    "buyFromState": {
      "type": "string"
    },
    "buyFromPostCode": {
      "type": "string"
    },
    "currencyId": {
      "type": "string"
    },
    "currencyCode": {
      "type": "string"
    },
    "pricesIncludeTax": {
      "type": "boolean"
    },
    "paymentTermsId": {
      "type": "string"
    },
    "shipmentMethodId": {
      "type": "string"
    },
    "purchaser": {
      "type": "string"
    },
    "requestedReceiptDate": {
      "type": "string"
    },
    "discountAmount": {
      "type": "number"
    },
    "discountAppliedBeforeTax": {
      "type": "boolean"
    },
    "totalAmountExcludingTax": {
      "type": "number"
    },
    "totalTaxAmount": {
      "type": "number"
    },
    "totalAmountIncludingTax": {
      "type": "number"
    },
    "fullyReceived": {
      "type": "boolean"
    },
    "status": {
      "type": "string"
    },
    "lastModifiedDateTime": {
      "type": "string"
    },
    "purchaseOrderLines": {
      "type": "array"
    }
  }
}