{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-order-schema.json",
  "title": "Order",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-orders-api-openapi.yml#/components/schemas/Order",
  "type": "object",
  "properties": {
    "contact_id": {
      "type": "integer",
      "minimum": 1,
      "description": "ID of the contact where devices should be delivered to"
    },
    "payment_method_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "Payment method ID"
    },
    "shipping_method": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "FEDEXGROUND",
        "3DAY",
        "2DAY",
        "STANDARDOVERNIGHT",
        "PRIORITYOVERNIGHT",
        "OVERNIGHTEARLYAM"
      ],
      "description": "Shipping method. One of: FEDEXGROUND, 3DAY, 2DAY, STANDARDOVERNIGHT, PRIORITYOVERNIGHT, OVERNIGHTEARLYAM. Use Shipping Methods API to get more data."
    },
    "devices": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 255,
            "description": "Optional name of the devices (how it should appear on your account)"
          },
          "code": {
            "type": "integer",
            "minimum": 1,
            "description": "Code of the device"
          }
        },
        "required": [
          "code"
        ]
      },
      "description": "Device for purchasing"
    },
    "accessories": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "minimum": 1,
            "description": "Codes of accessories"
          }
        },
        "required": [
          "code"
        ]
      },
      "description": "List of accessories to order"
    }
  },
  "required": [
    "contact_id"
  ]
}