{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-outposts/json-schema/amazon-outposts-create-order-input-schema.json",
  "title": "CreateOrderInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-outposts-orders-api-openapi.yml#/components/schemas/CreateOrderInput",
  "type": "object",
  "properties": {
    "OutpostIdentifier": {
      "type": "string",
      "description": "The ID or the Amazon Resource Name (ARN) of the Outpost."
    },
    "QuoteIdentifier": {
      "type": "string",
      "description": "The ID of the quote to use for the order."
    },
    "QuoteOptionIdentifier": {
      "type": "string",
      "description": "The ID of the quote option to use for the order."
    },
    "LineItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LineItemRequest"
      },
      "description": "The line items that make up the order."
    },
    "PaymentOption": {
      "type": "string",
      "enum": [
        "ALL_UPFRONT",
        "NO_UPFRONT",
        "PARTIAL_UPFRONT"
      ],
      "description": "The payment option."
    },
    "PaymentTerm": {
      "type": "string",
      "enum": [
        "THREE_YEARS",
        "ONE_YEAR",
        "FIVE_YEARS"
      ],
      "description": "The payment terms."
    }
  },
  "required": [
    "OutpostIdentifier",
    "PaymentOption"
  ],
  "$defs": {
    "LineItemRequest": {
      "type": "object",
      "properties": {
        "CatalogItemId": {
          "type": "string",
          "description": "The ID of the catalog item."
        },
        "Quantity": {
          "type": "integer",
          "description": "The quantity of a line item request."
        }
      }
    }
  }
}