{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/resollo-com/json-schema/resollo-com-place-order-request-schema.json",
  "title": "PlaceOrderRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/resollo-com-openapi.yml#/components/schemas/PlaceOrderRequest",
  "type": "object",
  "required": [
    "product_id",
    "payment_method",
    "shipment_method",
    "confirm"
  ],
  "properties": {
    "product_id": {
      "type": "string",
      "format": "uuid"
    },
    "payment_method": {
      "type": "string",
      "enum": [
        "cash",
        "card",
        "bank",
        "paypal",
        "stripe"
      ]
    },
    "shipment_method": {
      "type": "string",
      "enum": [
        "personal",
        "courier",
        "postal",
        "locker"
      ]
    },
    "address_key": {
      "type": "string",
      "description": "One of the buyer's own saved address keys (Resollo profile page). Required unless `shipment_method` is `personal`; falls back to the buyer's default address when omitted. Never a raw/new address."
    },
    "quantity": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 1
    },
    "comment": {
      "type": "string",
      "maxLength": 500
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Za-z]{3}$",
      "description": "Informational only, used solely to detect a currency mismatch worth surfacing to the buyer (`payment_safety.currency_mismatch`). The order itself is always recorded in the listing's native currency."
    },
    "confirm": {
      "type": "boolean",
      "enum": [
        true
      ],
      "description": "MUST be `true`, and only ever set `true` after the user has explicitly approved this order having seen `payment_safety` for `payment_method`. An agent must never set this on its own initiative."
    }
  }
}