{"openapi": "3.0.3", "info": {"title": "eSIM.bar — Public API and MCP", "version": "1.0.1", "description": "## HTTP API\nBase URL: `https://esim.bar/api/public/v1/`. Public sales point: `_SEDPB4EUS4XUV4Y`.\nSend `X-Point-Id: _SEDPB4EUS4XUV4Y` with every request. Offer prices and purchases use RUB.\nFor English product names, send `Accept-Language: en`.\n\n1. Search the current catalog: `GET catalog/search/?type=esim_plan&currency=RUB&country=EG&paginated=1&limit=25&offset=0`.\n2. Read the offer conditions, product attributes and linked public campaigns.\n3. Validate the cart and calculate its cost with `POST orders/validate-cart/`.\n4. Give the buyer a purchase link: `https://esim.bar/en/checkout/ai/?offer_id=<UUID>&quantity=1`.\nAdd `period_days` for a selectable duration and `campaign_id` for an explicitly selected campaign.\nUse `/ru/checkout/ai/` for Russian checkout.\nThe buyer enters their email, accepts the required consents and pays on the website.\n\nExample request body for a daily plan:\n```json\n{\"currency_code\":\"RUB\",\"language_code\":\"en\",\"items\":[{\"offer_id\":\"<UUID>\",\"quantity\":1,\"fields\":{\"period_days\":7}}]}\n```\nOmit `fields.period_days` for a fixed-duration package. For a campaign, add `campaign_id` at the top level.\nSend `promo_code` only when the buyer supplies a code. Keep promotion codes out of URLs.\n\n## Plan prices and conditions\n`price` is the base price. When `pricing.selectable_period=true`, it is the price per day.\nThe full amount for the selected quantity and duration, including fees and discounts, is the quote's `total_amount`.\n`data_allowance_behavior=total` means a total data allowance. `daily_cutoff` means a daily allowance,\n`daily_throttle` means a daily full-speed allowance followed by throttling,\nand `daily_unlimited` means no stated daily quota. Check the FUP and `post_allowance_speed_bps`.\n`activation_policy` determines when the plan starts. A missing field means the condition is unconfirmed.\nCSV `country` uses OR. `min_price` sorts by base price, which may be a daily rate.\nVerify the list of covered countries before claiming coverage for a whole itinerary.\n\n`offers[].campaigns` contains campaign links. Calculate the selected configuration to confirm its price.\nCampaigns restricted by account, email or new-customer status are checked on the website.\nDo not guess private promotion codes or promise personal discounts without verification. The API checks compatibility rules.\n`valid=false` and errors 400/403/404/409/422 mean the selected configuration cannot be promised as available to purchase.\nFor 429, respect Retry-After. For 5xx, retry later with a delay.\nQuotes are preliminary. Price and availability are checked again at checkout.\nCalculation creates no order or campaign reservation. The API may record technical validation events.\n\n## MCP\nURL: `https://esim.bar/mcp`. Transport: `Streamable HTTP`. Buyer authentication is not required.\nAdd a remote server with this URL and transport in your MCP client's settings.\nThe server exposes `search_catalog`, `get_offer`, `quote_cart` and their schemas through MCP.\n`quote_cart` validates the cart and calculates its cost through `orders/validate-cart/`. It checks parameters, selected duration, purchase limits and promotion eligibility, then returns the full amount and a `purchase_url` for the selected configuration.\nPass `language=\"en\"` or `language=\"ru\"` to select the language of the data and purchase link.\nThe sales point and RUB currency are set by the server. Tools do not accept email or existing eSIM details.\nIf the selected campaign is rejected, ask the buyer to check its conditions on the website or choose an ordinary purchase.\n\n## Response data\nUse prices, plan conditions and available campaigns in buyer-facing responses.\nCost and margin fields in HTTP offer details are intended for internal accounting.\nKeep orders, customer information and eSIM profile details out of tool inputs.\n\nDocumentation: `https://esim.bar/developers/agents/?lang=en`.\nOpenAPI: `https://esim.bar/developers/agents/openapi.json?lang=en`.\n\n## MCP response fields\n\n`tools/list` includes a description for every argument and a nested `outputSchema` for each tool.\n\n- `search_catalog` returns `count`, the total matching products, `limit`, the page size, `offset`, the number skipped, and `results`, the current products. Each product includes `id`, its UUID, `title`, the original title, `display_title`, the localized title, `type`, the product type, `region`, geographic coverage, `attributes`, plan conditions, and `offers`, available offers. Each offer includes `id`, its UUID for quotation, `price`, the base price, `currency`, the currency code, `price_basis`, either `day` or `package`, `pricing`, selectable duration rules, and `campaigns`, linked campaign UUIDs.\n- `get_offer` returns `offer`, the selected offer, `product`, its conditions and available offers, and `campaigns`, public conditions of linked campaigns. API and MCP response schemas describe individual plan attributes and campaign conditions. Missing fields mean unknown values.\n- `quote_cart` returns `offer_id`, the selected offer, `quantity`, the number of separate eSIMs, `period_days`, daily plan duration or null for a fixed package, `currency`, the quote currency, `subtotal_amount`, the amount before fees and discounts, `fee_amount`, fees, `discount_amount`, the discount, and `total_amount`, the full payable amount. `campaign` appears when a campaign applies and describes its conditions, `groups_count`, the applied group count, and `reward_units_count`, the reward unit count. `preliminary=true` identifies a preliminary quote, `quoted_at` is the UTC quote time, and `purchase_url` opens website checkout for the selected variant. The final amount is checked again before payment.\n"}, "servers": [{"url": "https://esim.bar/api/public/v1"}], "paths": {"/catalog/offers/{id}/": {"get": {"operationId": "getOffer", "summary": "Get an offer", "tags": ["Read"], "parameters": [{"name": "X-Point-Id", "in": "header", "required": true, "description": "Sales point identifier. Include it in every request.", "schema": {"type": "string", "default": "_SEDPB4EUS4XUV4Y"}}, {"description": "Object UUID from catalog or campaign results.", "name": "id", "in": "path", "required": true, "schema": {"type": "string", "format": "uuid"}}, {"name": "Accept-Language", "in": "header", "description": "Language of product names and messages; missing translations fall back to the original text.", "schema": {"type": "string", "enum": ["ru", "en"], "default": "en"}}], "responses": {"200": {"description": "Successful response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OfferDetail"}, "example": {"id": "00000000-0000-0000-0000-000000000001", "price": "95.00", "currency": {"code": "RUB", "name": "Russian Ruble", "symbol": "₽", "exponent": 2}, "pricing": {"basis": "day", "selectable_period": true, "min_days": 1, "max_days": 365, "default_days": 7}, "is_active": true, "product": {"id": "00000000-0000-0000-0000-000000000002", "sku": "EXAMPLE-TR-1GB-DAY", "title": "Turkey 1GB/Day FUP1Mbps", "display_title": "Turkey 1GB/day", "type": "esim_plan", "is_active": true}}}}}, "400": {"description": "Invalid request or unavailable campaign", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "403": {"description": "Public sales point unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "404": {"description": "Offer unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "429": {"description": "Retry the request later", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "422": {"description": "Invalid selection", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "503": {"description": "Temporarily unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}}}}, "/catalog/products/{id}/": {"get": {"operationId": "getProduct", "summary": "Get a product", "tags": ["Read"], "parameters": [{"name": "X-Point-Id", "in": "header", "required": true, "description": "Sales point identifier. Include it in every request.", "schema": {"type": "string", "default": "_SEDPB4EUS4XUV4Y"}}, {"description": "Object UUID from catalog or campaign results.", "name": "id", "in": "path", "required": true, "schema": {"type": "string", "format": "uuid"}}, {"name": "Accept-Language", "in": "header", "description": "Language of product names and messages; missing translations fall back to the original text.", "schema": {"type": "string", "enum": ["ru", "en"], "default": "en"}}], "responses": {"200": {"description": "Successful response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProductDetail"}, "example": {"id": "00000000-0000-0000-0000-000000000002", "sku": "EXAMPLE-TR-1GB-DAY", "title": "Turkey 1GB/Day FUP1Mbps", "display_title": "Turkey 1GB/day", "type": "esim_plan", "region_name": "Turkey", "attributes": {"data_volume_bytes": 1073741824, "data_allowance_mode": "daily", "data_allowance_behavior": "daily_throttle", "post_allowance_speed_bps": 1000000, "fup_policy": "1 Mbps", "duration_mode": "selectable", "duration_days": 1, "duration_unit": "DAY", "activation_policy": "first_network_connection"}, "offers": [{"id": "00000000-0000-0000-0000-000000000001", "price": "95.00", "currency": {"code": "RUB", "name": "Russian Ruble", "symbol": "₽", "exponent": 2}, "pricing": {"basis": "day", "selectable_period": true, "min_days": 1, "max_days": 365, "default_days": 7}, "is_active": true}]}}}}, "400": {"description": "Invalid request or unavailable campaign", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "403": {"description": "Public sales point unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "404": {"description": "Offer unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "429": {"description": "Retry the request later", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "422": {"description": "Invalid selection", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "503": {"description": "Temporarily unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}}}}, "/promotions/campaigns/{id}/": {"get": {"operationId": "getCampaign", "summary": "Get a campaign", "tags": ["Read"], "parameters": [{"name": "X-Point-Id", "in": "header", "required": true, "description": "Sales point identifier. Include it in every request.", "schema": {"type": "string", "default": "_SEDPB4EUS4XUV4Y"}}, {"description": "Object UUID from catalog or campaign results.", "name": "id", "in": "path", "required": true, "schema": {"type": "string", "format": "uuid"}}, {"name": "Accept-Language", "in": "header", "description": "Language of product names and messages; missing translations fall back to the original text.", "schema": {"type": "string", "enum": ["ru", "en"], "default": "en"}}], "responses": {"200": {"description": "Successful response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Campaign"}}}}, "400": {"description": "Invalid request or unavailable campaign", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "403": {"description": "Public sales point unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "404": {"description": "Offer unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "429": {"description": "Retry the request later", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "422": {"description": "Invalid selection", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "503": {"description": "Temporarily unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}}}}, "/catalog/search/": {"get": {"operationId": "searchCatalog", "summary": "Search the catalog", "tags": ["Search"], "parameters": [{"name": "X-Point-Id", "in": "header", "required": true, "description": "Sales point identifier. Include it in every request.", "schema": {"type": "string", "default": "_SEDPB4EUS4XUV4Y"}}, {"name": "q", "in": "query", "description": "Search query", "schema": {"type": "string"}}, {"name": "country", "in": "query", "description": "Comma-separated ISO2 country codes. Matches at least one country (OR).", "schema": {"type": "string"}}, {"name": "type", "in": "query", "description": "Product type", "schema": {"type": "string", "enum": ["esim_plan"], "default": "esim_plan"}}, {"name": "currency", "in": "query", "description": "Offer currency", "schema": {"type": "string", "enum": ["RUB"], "default": "RUB"}}, {"name": "category_code", "in": "query", "description": "Comma-separated category codes", "schema": {"type": "string"}}, {"name": "price_min", "in": "query", "description": "Minimum base offer price", "schema": {"type": "number", "minimum": 0}}, {"name": "price_max", "in": "query", "description": "Maximum base offer price", "schema": {"type": "number", "minimum": 0}}, {"name": "ordering", "in": "query", "description": "Sort by base price or title", "schema": {"type": "string", "enum": ["title", "min_price", "-min_price"]}}, {"name": "has_campaigns", "in": "query", "description": "Offers with active campaigns", "schema": {"type": "boolean"}}, {"name": "campaign_id", "in": "query", "description": "Offers from the selected campaign", "schema": {"type": "string", "format": "uuid"}}, {"name": "paginated", "in": "query", "description": "Paginated search results", "schema": {"type": "string", "enum": ["1"], "default": "1"}}, {"name": "limit", "in": "query", "description": "Page size", "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 25}}, {"name": "offset", "in": "query", "description": "Offset", "schema": {"type": "integer", "minimum": 0, "default": 0}}, {"name": "Accept-Language", "in": "header", "description": "Language of product names and messages; missing translations fall back to the original text.", "schema": {"type": "string", "enum": ["ru", "en"], "default": "en"}}], "responses": {"200": {"description": "Successful response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CatalogPage"}, "example": {"count": 1, "limit": 25, "offset": 0, "results": [{"id": "00000000-0000-0000-0000-000000000002", "sku": "EXAMPLE-TR-1GB-DAY", "title": "Turkey 1GB/Day FUP1Mbps", "display_title": "Turkey 1GB/day", "type": "esim_plan", "region": {"kind": "COUNTRY", "countries": ["TR"]}, "attributes": {"data_volume_bytes": 1073741824, "data_allowance_mode": "daily", "data_allowance_behavior": "daily_throttle", "post_allowance_speed_bps": 1000000, "fup_policy": "1 Mbps", "duration_mode": "selectable", "duration_days": 1, "duration_unit": "DAY", "activation_policy": "first_network_connection"}, "offers": [{"id": "00000000-0000-0000-0000-000000000001", "price": "95.00", "currency": "RUB", "pricing": {"basis": "day", "selectable_period": true, "min_days": 1, "max_days": 365, "default_days": 7}}]}]}}}}, "400": {"description": "Invalid request or unavailable campaign", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "403": {"description": "Public sales point unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "404": {"description": "Offer unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "429": {"description": "Retry the request later", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "422": {"description": "Invalid selection", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "503": {"description": "Temporarily unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}}}}, "/promotions/campaigns/": {"get": {"operationId": "listCampaigns", "summary": "List campaigns", "tags": ["Read"], "parameters": [{"name": "X-Point-Id", "in": "header", "required": true, "description": "Sales point identifier. Include it in every request.", "schema": {"type": "string", "default": "_SEDPB4EUS4XUV4Y"}}, {"name": "Accept-Language", "in": "header", "description": "Language of product names and messages; missing translations fall back to the original text.", "schema": {"type": "string", "enum": ["ru", "en"], "default": "en"}}], "responses": {"200": {"description": "Successful response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CampaignList"}, "example": {"results": []}}}}, "400": {"description": "Invalid request or unavailable campaign", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "403": {"description": "Public sales point unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "404": {"description": "Offer unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "429": {"description": "Retry the request later", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "422": {"description": "Invalid selection", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "503": {"description": "Temporarily unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}}}}, "/orders/validate-cart/": {"post": {"operationId": "quoteCart", "summary": "Cart validation and cost calculation", "tags": ["Cart validation"], "parameters": [{"name": "X-Point-Id", "in": "header", "required": true, "description": "Sales point identifier. Include it in every request.", "schema": {"type": "string", "default": "_SEDPB4EUS4XUV4Y"}}, {"name": "Accept-Language", "in": "header", "description": "Language of product names and messages; missing translations fall back to the original text.", "schema": {"type": "string", "enum": ["ru", "en"], "default": "en"}}], "description": "Validates cart parameters, selected variants, purchase limits and promotion eligibility, then calculates the full cost. Read the full price from total_amount. If valid=false, the selected cart cannot be purchased. Campaigns requiring buyer identification are checked at checkout. Build the checkout link as described in the guide.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/QuoteRequest"}, "example": {"currency_code": "RUB", "language_code": "en", "items": [{"offer_id": "00000000-0000-0000-0000-000000000001", "quantity": 1, "fields": {"period_days": 7}}]}}}}, "responses": {"200": {"description": "Successful response", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/QuoteResponse"}, "example": {"currency": "RUB", "subtotal_amount": "665.00", "fee_amount": "0.00", "discount_amount": "0.00", "total_amount": "665.00", "items": [{"client_item_id": "", "offer_id": "00000000-0000-0000-0000-000000000001", "product_id": "00000000-0000-0000-0000-000000000002", "quantity": 1, "unit_price": "665.00", "line_subtotal": "665.00", "fee_amount": "0.00", "discount_amount": "0.00", "line_total_before_discount": "665.00", "line_total": "665.00", "currency": "RUB"}]}}}}, "400": {"description": "Invalid request or unavailable campaign", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "403": {"description": "Public sales point unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "404": {"description": "Offer unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "429": {"description": "Retry the request later", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "422": {"description": "Invalid selection", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}, "503": {"description": "Temporarily unavailable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ApiError"}}}}}}}}, "components": {"schemas": {"PeriodPricing": {"type": "object", "properties": {"basis": {"type": "string", "description": "Base price unit: day.", "enum": ["day"]}, "selectable_period": {"type": "boolean", "description": "Supply period_days in the quote.", "example": true}, "min_days": {"type": "integer", "description": "Minimum duration.", "example": 1}, "max_days": {"type": "integer", "description": "Maximum duration.", "example": 365}, "default_days": {"type": "integer", "description": "Default duration, not a purchased duration.", "example": 7}, "rate": {"type": "object", "properties": {"amount": {"type": "string", "description": "Base daily rate before fees and discounts.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "currency": {"type": "string", "example": "RUB", "description": "ISO 4217 currency code, such as RUB."}, "basis": {"type": "string", "example": "day", "description": "Price unit; day means one day."}, "quantity": {"type": "integer", "example": 1, "description": "Number of units covered by the rate."}, "includes_fee": {"type": "boolean", "example": false, "description": "Whether the stated rate includes fees."}, "includes_discount": {"type": "boolean", "example": false, "description": "Whether the stated rate includes a discount."}}, "description": "Only in offer detail."}}, "description": "Omitted for a fixed-duration package."}, "ProductAttributes": {"type": "object", "properties": {"data_volume_bytes": {"type": "integer", "description": "Allowance in bytes: total or daily according to the mode.", "example": 1073741824}, "data_allowance_mode": {"type": "string", "description": "Total or daily allowance.", "example": "daily"}, "data_allowance_behavior": {"type": "string", "description": "total: total quota; daily_throttle: daily quota then throttling; daily_cutoff: daily quota then cutoff; daily_unlimited: no stated quota.", "example": "daily_throttle"}, "post_allowance_speed_bps": {"type": "integer", "description": "Speed after the allowance, bits/second.", "example": 1000000}, "fup_policy": {"type": "string", "description": "Supplier fair-use conditions.", "example": "1 Mbps"}, "duration_mode": {"type": "string", "description": "Fixed or selectable duration.", "example": "selectable"}, "duration_days": {"type": "integer", "description": "Package duration; for a daily plan this is the base unit, not the selected duration.", "example": 1}, "duration_unit": {"type": "string", "example": "DAY", "description": "Package duration unit; DAY means days."}, "duration_min_days": {"type": "integer", "example": 1, "description": "Minimum selectable duration in days."}, "duration_max_days": {"type": "integer", "example": 365, "description": "Maximum selectable duration in days."}, "activation_policy": {"type": "string", "description": "Activation rule; first_network_connection means the first network connection.", "example": "first_network_connection"}, "speed_label": {"type": "string", "example": "3G/4G/5G", "description": "Advertised network generations and plan speed conditions."}, "sms_supported": {"type": "boolean", "example": false, "description": "Whether the plan supports SMS according to catalog data."}, "topup_support_type": {"type": "string", "example": "period_num", "description": "Catalog top-up support type; period_num means duration extension."}, "topup_method": {"type": "string", "example": "days", "description": "Top-up method; days means adding days."}}, "description": "Optional attributes. A missing field does not confirm a condition. Additional attributes may be returned."}, "ProductSummary": {"type": "object", "properties": {"id": {"type": "string", "description": "Product ID.", "format": "uuid"}, "sku": {"type": "string", "example": "EXAMPLE-TR-1GB-DAY", "description": "Product code in the catalog."}, "title": {"type": "string", "description": "Original title.", "example": "Turkey 1GB/Day FUP1Mbps"}, "display_title": {"type": "string", "description": "Title in the Accept-Language language, or the original title if no translation is available.", "example": "Turkey 1GB/day"}, "type": {"type": "string", "example": "esim_plan", "description": "Product type; esim_plan identifies an eSIM plan."}, "description": {"type": "string", "description": "Detailed object description in the selected language."}, "is_active": {"type": "boolean", "description": "Whether the catalog object is active."}}}, "CatalogOffer": {"type": "object", "properties": {"id": {"type": "string", "description": "Offer ID for quotes and purchase links.", "format": "uuid"}, "price": {"type": "string", "description": "Base price: per day for selectable duration. Use the quote total_amount for the full price.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "currency": {"type": "string", "example": "RUB", "description": "ISO 4217 currency code, such as RUB."}, "pricing": {"allOf": [{"$ref": "#/components/schemas/PeriodPricing"}], "description": "Duration selection and base pricing rules for a daily offer."}, "campaigns": {"type": "array", "items": {"type": "string", "format": "uuid"}, "description": "Linked public campaigns. Personal eligibility is checked during quotation."}, "input_schema": {"type": "array", "description": "Offer input fields or null when no profile exists.", "items": {"type": "object", "description": "Offer input parameter. Additional keys depend on the profile.", "properties": {"key": {"type": "string", "description": "Parameter name in fields."}, "label": {"type": "string", "description": "Input field label."}, "type": {"type": "string", "description": "Profile input type, such as int or enum."}, "required": {"type": "boolean", "description": "Whether the parameter is required."}, "default": {"description": "Default value when omitted."}, "min": {"type": "number", "description": "Minimum numeric value."}, "max": {"type": "number", "description": "Maximum numeric value."}, "choices": {"type": "array", "description": "Allowed enumeration values.", "items": {}}, "transform": {"type": "string", "description": "Input transformation applied before validation."}, "regex_final": {"type": "string", "description": "Regular expression validating the final value."}, "regex_live": {"type": "string", "description": "Regular expression for validation while typing."}, "mask": {"type": "string", "description": "Value display and input mask."}, "help": {"type": "string", "description": "Buyer-facing input instructions."}, "default_locale": {"type": "string", "description": "Default language of profile labels."}}}, "nullable": true}, "input_profile_revision": {"type": "integer", "nullable": true, "description": "Input schema revision; use it to detect form changes."}, "fee_profile_code": {"type": "string", "nullable": true, "description": "Fee profile code. Obtain the actual fee from the cart quote."}, "media": {"type": "object", "description": "Media grouped by roles such as product. Each role holds an array of files.", "properties": {}, "additionalProperties": {"type": "array", "items": {"type": "object", "description": "Media asset.", "properties": {"asset_id": {"type": "integer", "description": "Media asset identifier."}, "kind": {"type": "string", "description": "Media kind, such as image."}, "mime_type": {"type": "string", "description": "Original file MIME type."}, "original_url": {"type": "string", "description": "Original file URL."}, "alt_text": {"type": "string", "description": "Alternative image text."}, "renditions": {"type": "array", "description": "Available image sizes.", "items": {"type": "object", "description": "Prepared image rendition.", "properties": {"key": {"type": "string", "description": "Prepared image size code."}, "width": {"type": "integer", "description": "Width in pixels."}, "height": {"type": "integer", "description": "Height in pixels."}, "format": {"type": "string", "description": "Image file format."}, "mime_type": {"type": "string", "description": "File MIME type."}, "url": {"type": "string", "description": "Prepared image URL."}}}}}}}}}}, "Currency": {"type": "object", "properties": {"code": {"type": "string", "example": "RUB", "description": "Machine-readable code for application handling."}, "name": {"type": "string", "example": "Russian Ruble", "description": "Display name of the object."}, "symbol": {"type": "string", "example": "₽", "description": "Currency symbol for displaying an amount."}, "exponent": {"type": "integer", "example": 2, "description": "Number of decimal places used by the currency."}}}, "OfferDetail": {"type": "object", "properties": {"id": {"type": "string", "description": "Offer ID for quotes and purchase links.", "format": "uuid"}, "price": {"type": "string", "description": "Base price: per day for selectable duration. Use the quote total_amount for the full price.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "currency": {"allOf": [{"$ref": "#/components/schemas/Currency"}], "description": "ISO 4217 currency code, such as RUB."}, "pricing": {"allOf": [{"$ref": "#/components/schemas/PeriodPricing"}], "description": "Duration selection and base pricing rules for a daily offer."}, "input_schema": {"type": "array", "description": "Offer input fields or null when no profile exists.", "items": {"type": "object", "description": "Offer input parameter. Additional keys depend on the profile.", "properties": {"key": {"type": "string", "description": "Parameter name in fields."}, "label": {"type": "string", "description": "Input field label."}, "type": {"type": "string", "description": "Profile input type, such as int or enum."}, "required": {"type": "boolean", "description": "Whether the parameter is required."}, "default": {"description": "Default value when omitted."}, "min": {"type": "number", "description": "Minimum numeric value."}, "max": {"type": "number", "description": "Maximum numeric value."}, "choices": {"type": "array", "description": "Allowed enumeration values.", "items": {}}, "transform": {"type": "string", "description": "Input transformation applied before validation."}, "regex_final": {"type": "string", "description": "Regular expression validating the final value."}, "regex_live": {"type": "string", "description": "Regular expression for validation while typing."}, "mask": {"type": "string", "description": "Value display and input mask."}, "help": {"type": "string", "description": "Buyer-facing input instructions."}, "default_locale": {"type": "string", "description": "Default language of profile labels."}}}, "nullable": true}, "input_profile_revision": {"type": "integer", "nullable": true, "description": "Input schema revision; use it to detect form changes."}, "fee_profile_code": {"type": "string", "nullable": true, "description": "Fee profile code. Obtain the actual fee from the cart quote."}, "media": {"type": "object", "description": "Media grouped by roles such as product. Each role holds an array of files.", "properties": {}, "additionalProperties": {"type": "array", "items": {"type": "object", "description": "Media asset.", "properties": {"asset_id": {"type": "integer", "description": "Media asset identifier."}, "kind": {"type": "string", "description": "Media kind, such as image."}, "mime_type": {"type": "string", "description": "Original file MIME type."}, "original_url": {"type": "string", "description": "Original file URL."}, "alt_text": {"type": "string", "description": "Alternative image text."}, "renditions": {"type": "array", "description": "Available image sizes.", "items": {"type": "object", "description": "Prepared image rendition.", "properties": {"key": {"type": "string", "description": "Prepared image size code."}, "width": {"type": "integer", "description": "Width in pixels."}, "height": {"type": "integer", "description": "Height in pixels."}, "format": {"type": "string", "description": "Image file format."}, "mime_type": {"type": "string", "description": "File MIME type."}, "url": {"type": "string", "description": "Prepared image URL."}}}}}}}}, "is_active": {"type": "boolean", "description": "Whether the catalog object is active."}, "product": {"allOf": [{"$ref": "#/components/schemas/ProductSummary"}], "description": "Product associated with the offer."}, "fx_rate_used": {"type": "string", "description": "Exchange rate saved when pricing the offer."}, "cost_local_snapshot": {"type": "string", "description": "Cost snapshot in the offer currency."}, "margin_pct_snapshot": {"type": "string", "description": "Margin percentage snapshot."}, "pricing_rule_code": {"type": "string", "description": "Pricing rule code."}}, "description": "Offer, product, currency and duration selection details. Cost and margin fields are intended for internal accounting."}, "CatalogProduct": {"type": "object", "properties": {"id": {"type": "string", "description": "Product ID.", "format": "uuid"}, "sku": {"type": "string", "example": "EXAMPLE-TR-1GB-DAY", "description": "Product code in the catalog."}, "title": {"type": "string", "description": "Original title.", "example": "Turkey 1GB/Day FUP1Mbps"}, "display_title": {"type": "string", "description": "Title in the Accept-Language language, or the original title if no translation is available.", "example": "Turkey 1GB/day"}, "type": {"type": "string", "example": "esim_plan", "description": "Product type; esim_plan identifies an eSIM plan."}, "description": {"type": "string", "description": "Detailed object description in the selected language."}, "region": {"type": "object", "properties": {"kind": {"type": "string", "example": "COUNTRY", "description": "Object kind within its data group."}, "countries": {"type": "array", "items": {"type": "string", "example": "TR"}, "description": "ISO 3166-1 alpha-2 codes of covered countries."}}, "description": "Geographic coverage of the product."}, "attributes": {"allOf": [{"$ref": "#/components/schemas/ProductAttributes"}], "description": "Plan attributes. Missing values are unknown."}, "offers": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogOffer"}, "description": "Offers available for this product or campaign."}, "media": {"type": "object", "description": "Media grouped by roles such as product. Each role holds an array of files.", "properties": {}, "additionalProperties": {"type": "array", "items": {"type": "object", "description": "Media asset.", "properties": {"asset_id": {"type": "integer", "description": "Media asset identifier."}, "kind": {"type": "string", "description": "Media kind, such as image."}, "mime_type": {"type": "string", "description": "Original file MIME type."}, "original_url": {"type": "string", "description": "Original file URL."}, "alt_text": {"type": "string", "description": "Alternative image text."}, "renditions": {"type": "array", "description": "Available image sizes.", "items": {"type": "object", "description": "Prepared image rendition.", "properties": {"key": {"type": "string", "description": "Prepared image size code."}, "width": {"type": "integer", "description": "Width in pixels."}, "height": {"type": "integer", "description": "Height in pixels."}, "format": {"type": "string", "description": "Image file format."}, "mime_type": {"type": "string", "description": "File MIME type."}, "url": {"type": "string", "description": "Prepared image URL."}}}}}}}}}}, "ProductDetail": {"type": "object", "properties": {"id": {"type": "string", "description": "Product ID.", "format": "uuid"}, "sku": {"type": "string", "example": "EXAMPLE-TR-1GB-DAY", "description": "Product code in the catalog."}, "title": {"type": "string", "description": "Original title.", "example": "Turkey 1GB/Day FUP1Mbps"}, "display_title": {"type": "string", "description": "Title in the Accept-Language language, or the original title if no translation is available.", "example": "Turkey 1GB/day"}, "type": {"type": "string", "example": "esim_plan", "description": "Product type; esim_plan identifies an eSIM plan."}, "description": {"type": "string", "description": "Detailed object description in the selected language."}, "region_name": {"type": "string", "description": "Name of the product coverage region."}, "attributes": {"allOf": [{"$ref": "#/components/schemas/ProductAttributes"}], "description": "Plan attributes. Missing values are unknown."}, "offers": {"type": "array", "items": {"$ref": "#/components/schemas/OfferDetail"}, "description": "Offers available for this product or campaign."}, "media": {"type": "object", "description": "Media grouped by roles such as product. Each role holds an array of files.", "properties": {}, "additionalProperties": {"type": "array", "items": {"type": "object", "description": "Media asset.", "properties": {"asset_id": {"type": "integer", "description": "Media asset identifier."}, "kind": {"type": "string", "description": "Media kind, such as image."}, "mime_type": {"type": "string", "description": "Original file MIME type."}, "original_url": {"type": "string", "description": "Original file URL."}, "alt_text": {"type": "string", "description": "Alternative image text."}, "renditions": {"type": "array", "description": "Available image sizes.", "items": {"type": "object", "description": "Prepared image rendition.", "properties": {"key": {"type": "string", "description": "Prepared image size code."}, "width": {"type": "integer", "description": "Width in pixels."}, "height": {"type": "integer", "description": "Height in pixels."}, "format": {"type": "string", "description": "Image file format."}, "mime_type": {"type": "string", "description": "File MIME type."}, "url": {"type": "string", "description": "Prepared image URL."}}}}}}}}}}, "CatalogPage": {"type": "object", "properties": {"count": {"type": "integer", "example": 1, "description": "Total number of products matching the filters."}, "limit": {"type": "integer", "example": 25, "description": "Maximum number of products on the page."}, "offset": {"type": "integer", "example": 0, "description": "Number of products skipped from the start of the result set."}, "results": {"type": "array", "items": {"$ref": "#/components/schemas/CatalogProduct"}, "description": "Items in the current result set."}}}, "Campaign": {"type": "object", "properties": {"id": {"type": "string", "description": "Campaign ID to pass as campaign_id in the quote.", "format": "uuid"}, "name": {"type": "string", "description": "Display name of the object."}, "description": {"type": "string", "description": "Detailed object description in the selected language."}, "condition": {"type": "string", "description": "Campaign conditions to display to the buyer."}, "mechanic": {"type": "string", "description": "Campaign mechanism used to calculate reward units."}, "currency": {"type": "string", "example": "RUB", "description": "ISO 4217 currency code, such as RUB."}, "valid_from": {"type": "string", "format": "date-time", "nullable": true, "description": "Campaign start in ISO 8601; null means no lower time bound."}, "valid_to": {"type": "string", "format": "date-time", "description": "Campaign expiration in ISO 8601 format."}, "requires_code": {"type": "boolean", "description": "Whether applying the campaign requires a code."}, "only_new_customers": {"type": "boolean", "description": "Whether the campaign is restricted to new customers."}, "requires_identity": {"type": "boolean", "description": "Whether buyer identity is required to check eligibility."}, "buy_quantity": {"type": "integer", "description": "Number of purchased units in one campaign group."}, "reward_quantity": {"type": "integer", "description": "Number of reward units in one campaign group."}, "reward_discount_percent": {"type": "string", "description": "Discount percentage for reward units, as a decimal string."}, "max_groups_per_order": {"type": "integer", "nullable": true, "description": "Maximum campaign groups per order; null means no limit."}, "variant_constraints": {"type": "object", "additionalProperties": {"type": "array", "items": {}}, "description": "Allowed variant parameter values keyed by field name, such as period_days."}, "offers": {"type": "array", "items": {"type": "object", "properties": {"id": {"type": "string", "format": "uuid", "description": "Unique object identifier."}, "name": {"type": "string", "description": "Display name of the object."}, "product_name": {"type": "string", "description": "Product name of the participating offer."}, "product_type": {"type": "string", "description": "Product type of the participating offer."}, "pricing": {"type": "object", "properties": {"basis": {"type": "string", "description": "Base price unit: day.", "enum": ["day"]}, "selectable_period": {"type": "boolean", "description": "Supply period_days in the quote.", "example": true}, "min_days": {"type": "integer", "description": "Minimum duration.", "example": 1}, "max_days": {"type": "integer", "description": "Maximum duration.", "example": 365}, "default_days": {"type": "integer", "description": "Default duration, not a purchased duration.", "example": 7}, "rate": {"type": "object", "properties": {"amount": {"type": "string", "description": "Base daily rate before fees and discounts.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "currency": {"type": "string", "example": "RUB", "description": "ISO 4217 currency code, such as RUB."}, "basis": {"type": "string", "example": "day", "description": "Price unit; day means one day."}, "quantity": {"type": "integer", "example": 1, "description": "Number of units covered by the rate."}, "includes_fee": {"type": "boolean", "example": false, "description": "Whether the stated rate includes fees."}, "includes_discount": {"type": "boolean", "example": false, "description": "Whether the stated rate includes a discount."}}, "description": "Only in offer detail."}}, "description": "Omitted for a fixed-duration package.", "nullable": true}}}, "description": "Offers available for this product or campaign."}}, "description": "A listed campaign does not confirm personal eligibility. Private codes are not returned."}, "CampaignList": {"type": "object", "properties": {"results": {"type": "array", "items": {"$ref": "#/components/schemas/Campaign"}, "description": "Items in the current result set."}}}, "QuoteItem": {"type": "object", "properties": {"client_item_id": {"type": "string", "description": "Line identifier supplied by the application, or an empty string."}, "offer_id": {"type": "string", "format": "uuid", "description": "UUID of the selected offer."}, "product_id": {"type": "string", "format": "uuid", "description": "UUID of the selected offer product."}, "quantity": {"type": "integer", "description": "Number of separate eSIMs, not days.", "example": 1}, "unit_price": {"type": "string", "description": "Unit price for the selected duration.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "line_subtotal": {"type": "string", "description": "Line subtotal before fees and discounts.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "fee_amount": {"type": "string", "description": "Line fee.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "discount_amount": {"type": "string", "description": "Line discount.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "line_total_before_discount": {"type": "string", "description": "Line amount before discount, including fees.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "line_total": {"type": "string", "description": "Full line total.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "currency": {"type": "string", "example": "RUB", "description": "ISO 4217 currency code, such as RUB."}, "validation": {"type": "object", "description": "Public validation of selected parameters.", "properties": {"target": {"type": "object", "description": "Target lookup result. Usually null for a new eSIM purchase.", "properties": {}, "nullable": true, "additionalProperties": true}, "options": {"type": "array", "description": "Server-provided variants.", "items": {"type": "object", "description": "Server-validated variant.", "properties": {"status": {"type": "string", "description": "Variant selection status."}, "code": {"type": "string", "description": "Selected variant code."}, "title": {"type": "string", "description": "Selected variant title."}, "price": {"type": "string", "description": "Selected variant price."}, "currency": {"type": "string", "description": "Variant price currency."}, "kind": {"type": "string", "description": "Variant kind; period means duration."}, "extra": {"type": "object", "description": "Additional variant parameters.", "properties": {"period_days": {"type": "integer", "description": "Selected duration in days."}}}}, "nullable": true}}, "selection": {"type": "object", "description": "Server-validated variant.", "properties": {"status": {"type": "string", "description": "Variant selection status."}, "code": {"type": "string", "description": "Selected variant code."}, "title": {"type": "string", "description": "Selected variant title."}, "price": {"type": "string", "description": "Selected variant price."}, "currency": {"type": "string", "description": "Variant price currency."}, "kind": {"type": "string", "description": "Variant kind; period means duration."}, "extra": {"type": "object", "description": "Additional variant parameters.", "properties": {"period_days": {"type": "integer", "description": "Selected duration in days."}}}}, "nullable": true}}, "nullable": true}, "promo": {"type": "object", "description": "Line discount calculation. Fields depend on the promotion code mode.", "properties": {"promo_code": {"type": "string", "description": "Applied promotion code."}, "eligible": {"type": "boolean", "description": "Whether the line received a discount."}, "discount_amount": {"type": "string", "description": "Line discount amount."}, "line_before": {"type": "string", "description": "Line amount before discount."}, "line_after": {"type": "string", "description": "Line amount after discount."}, "reason": {"type": "string", "description": "Reason why the discount was not applied."}, "discount_profile_id": {"type": "string", "description": "Discount profile UUID."}, "discount_profile_code": {"type": "string", "description": "Discount profile code."}, "discount_mode": {"type": "string", "description": "Discount calculation mode."}, "discount_type": {"type": "string", "description": "Fixed amount or percentage."}, "fixed_discount_amount": {"type": "string", "description": "Profile fixed discount amount."}, "percent_discount": {"type": "string", "description": "Profile discount percentage."}, "tier_found": {"type": "boolean", "description": "Whether a discount tier was found."}, "tier_id": {"type": "integer", "description": "Discount tier identifier."}, "tier_from_amount": {"type": "string", "description": "Lower tier threshold."}, "tier_to_amount": {"type": "string", "description": "Upper tier threshold, null for an open bound."}}}}}, "QuoteResponse": {"type": "object", "properties": {"currency": {"type": "string", "example": "RUB", "description": "ISO 4217 currency code, such as RUB."}, "subtotal_amount": {"type": "string", "description": "Subtotal before fees and discounts.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "fee_amount": {"type": "string", "description": "Total fees.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "discount_amount": {"type": "string", "description": "Total discount.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "total_amount": {"type": "string", "description": "Full amount for the selected duration and quantity. Checked again at checkout.", "pattern": "^-?\\d+(\\.\\d+)?$", "example": "665.00"}, "items": {"type": "array", "items": {"$ref": "#/components/schemas/QuoteItem"}, "description": "Quoted cart lines with prices and validation results."}, "valid": {"type": "boolean", "description": "Optional. false means limits prohibit purchase even with HTTP 200."}, "limits": {"type": "object", "properties": {"available": {"type": "boolean", "description": "Whether the checked limits permit the purchase."}, "violations": {"type": "array", "items": {"type": "object", "description": "Purchase limit violation.", "properties": {"code": {"type": "string", "description": "ORDER_LIMIT_EXCEEDED code."}, "detail": {"type": "string", "description": "Limit rejection explanation."}, "metric": {"type": "string", "description": "Limited metric, amount or quantity."}, "period": {"type": "string", "description": "Limit accounting period."}, "limit": {"type": "string", "description": "Configured limit."}, "used": {"type": "string", "description": "Already consumed value."}, "reserved": {"type": "string", "description": "Reserved value."}, "requested": {"type": "string", "description": "Value requested by this purchase."}, "available_value": {"type": "string", "description": "Remaining allowance before reaching the limit."}, "currency": {"type": "string", "description": "Monetary limit currency code or an empty string."}}}, "description": "Violated constraints requiring changes to the purchase selection."}}, "description": "Purchase limit check for the current sales point."}, "promo": {"type": "object", "description": "Applied promotion code or an empty object.", "properties": {"code": {"type": "string", "description": "Applied promotion code."}, "status": {"type": "string", "description": "applied means successfully applied."}, "discount_amount": {"type": "string", "description": "Promotion code discount amount."}, "eligible_subtotal": {"type": "string", "description": "Subtotal eligible for the discount."}}}, "campaign": {"type": "object", "properties": {"campaign_id": {"type": "string", "format": "uuid", "description": "UUID of the campaign selected for quotation."}, "name": {"type": "string", "description": "Display name of the object."}, "condition": {"type": "string", "description": "Campaign conditions to display to the buyer."}, "description": {"type": "string", "description": "Detailed object description in the selected language."}, "valid_to": {"type": "string", "format": "date-time", "description": "Campaign expiration in ISO 8601 format."}, "groups_count": {"type": "integer", "description": "Number of campaign groups applied to the quote."}, "reward_units_count": {"type": "integer", "description": "Number of units receiving the reward discount."}}, "description": "Applied campaign and calculated group and reward unit counts."}}}, "ApiError": {"type": "object", "properties": {"detail": {"type": "string", "description": "Explanation of the error cause for the developer."}, "code": {"type": "string", "description": "Machine-readable code for application handling."}, "violations": {"type": "array", "items": {"type": "object", "description": "Purchase limit violation.", "properties": {"code": {"type": "string", "description": "ORDER_LIMIT_EXCEEDED code."}, "detail": {"type": "string", "description": "Limit rejection explanation."}, "metric": {"type": "string", "description": "Limited metric, amount or quantity."}, "period": {"type": "string", "description": "Limit accounting period."}, "limit": {"type": "string", "description": "Configured limit."}, "used": {"type": "string", "description": "Already consumed value."}, "reserved": {"type": "string", "description": "Reserved value."}, "requested": {"type": "string", "description": "Value requested by this purchase."}, "available_value": {"type": "string", "description": "Remaining allowance before reaching the limit."}, "currency": {"type": "string", "description": "Monetary limit currency code or an empty string."}}}, "description": "Violated constraints requiring changes to the purchase selection."}}, "additionalProperties": true, "description": "Shape depends on the cause. Field errors may be message arrays under field names such as items. Not all fields appear together. Do not show raw errors to the buyer."}, "QuoteRequest": {"type": "object", "required": ["items"], "additionalProperties": false, "properties": {"currency_code": {"type": "string", "enum": ["RUB"], "default": "RUB", "description": "Expected quote currency."}, "language_code": {"type": "string", "enum": ["ru", "en"], "default": "en", "description": "Language of validation messages."}, "campaign_id": {"type": "string", "format": "uuid", "description": "UUID of the selected campaign."}, "promo_code": {"type": "string", "maxLength": 64, "description": "Promotion code supplied by the buyer."}, "expected_total": {"type": "string", "description": "Previously confirmed total; campaign quotation rejects a changed amount."}, "items": {"type": "array", "minItems": 1, "maxItems": 1, "description": "Selected eSIM line to quote.", "items": {"type": "object", "required": ["offer_id"], "additionalProperties": false, "properties": {"offer_id": {"type": "string", "format": "uuid", "description": "UUID of the selected offer."}, "client_item_id": {"type": "string", "description": "Optional application line identifier echoed in the response."}, "quantity": {"type": "integer", "minimum": 1, "default": 1, "description": "Number of separate eSIMs."}, "fields": {"type": "object", "additionalProperties": false, "description": "Offer input parameters from input_schema.", "properties": {"period_days": {"type": "integer", "minimum": 1, "maximum": 365, "description": "Selected days for a daily offer; omit for a fixed package."}}}}}}}}}}}