{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/payforapi-com/json-schema/payforapi-com-pochta-delivery-request-schema.json",
  "title": "PochtaDeliveryRequest",
  "description": "Пакет «Доставка Почты России» ($0.04): адрес+индекс+отделение+тариф+срок одним платежом.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/payforapi-com-api-openapi.json#/components/schemas/PochtaDeliveryRequest",
  "properties": {
    "from_index": {
      "type": "string",
      "title": "From Index",
      "description": "Индекс отправителя (склад/магазин)"
    },
    "to_address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "To Address",
      "description": "Адрес получателя — нормализуется, индекс берётся из адреса"
    },
    "to_index": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "To Index",
      "description": "Либо готовый индекс получателя (когда адрес не нужен)"
    },
    "weight": {
      "type": "integer",
      "title": "Weight",
      "default": 1000
    },
    "mail_type": {
      "type": "string",
      "title": "Mail Type",
      "default": "POSTAL_PARCEL"
    },
    "mail_category": {
      "type": "string",
      "title": "Mail Category",
      "default": "ORDINARY"
    },
    "declared_value": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Declared Value"
    },
    "dimension_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dimension Type"
    }
  },
  "type": "object",
  "required": [
    "from_index"
  ]
}