{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-advanced-order-request-schema.json",
  "title": "AdvancedOrderRequest",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-advanced-number-orders-api-openapi.yml#/components/schemas/AdvancedOrderRequest",
  "properties": {
    "area_code": {
      "default": "",
      "maxLength": 3,
      "title": "Area Code",
      "type": "string"
    },
    "comments": {
      "default": "",
      "maxLength": 255,
      "title": "Comments",
      "type": "string"
    },
    "country_code": {
      "default": "US",
      "maxLength": 2,
      "minLength": 2,
      "title": "Country Code",
      "type": "string"
    },
    "customer_reference": {
      "default": "",
      "title": "Customer Reference",
      "type": "string"
    },
    "features": {
      "items": {
        "enum": [
          "sms",
          "mms",
          "voice",
          "fax",
          "emergency"
        ]
      },
      "title": "Features",
      "type": "array",
      "uniqueItems": true
    },
    "phone_number_type": {
      "default": "local",
      "enum": [
        "local",
        "mobile",
        "toll_free",
        "shared_cost",
        "national",
        "landline"
      ],
      "type": "string"
    },
    "quantity": {
      "default": 1,
      "maximum": 10000,
      "minimum": 1,
      "title": "Quantity",
      "type": "integer"
    },
    "requirement_group_id": {
      "description": "The ID of the requirement group to associate with this advanced order",
      "format": "uuid",
      "title": "Requirement Group ID",
      "type": "string"
    }
  },
  "type": "object"
}