{
    "openapi": "3.1.0",
    "info": {
        "title": "Tier1.shop Client API",
        "version": "1.3.0",
        "description": "Model-neutral API for Tier1.shop clients. Use a revocable account key as a Bearer token. New clients must confirm their mailbox before an account or key is created. Never send payment-card or banking credentials to this API."
    },
    "servers": [
        {
            "url": "https://tier1.shop/wp-json/tier1-api/v1"
        }
    ],
    "externalDocs": {
        "description": "Human-readable API and MCP documentation",
        "url": "https://tier1.shop/api-documentation/"
    },
    "tags": [
        {
            "name": "Discovery",
            "description": "Public machine-readable contracts."
        },
        {
            "name": "Onboarding",
            "description": "Mailbox-confirmed registration and API-key issuance."
        },
        {
            "name": "Account",
            "description": "Owned profile, balances, orders and links."
        },
        {
            "name": "Catalog",
            "description": "Current purchasable tariffs and donor inventory."
        },
        {
            "name": "Drafts",
            "description": "Idempotent draft editing and explicit submission."
        },
        {
            "name": "Checkout",
            "description": "Protected hosted-checkout links. Payment data never enters the API."
        }
    ],
    "components": {
        "securitySchemes": {
            "ApiKey": {
                "type": "http",
                "scheme": "bearer",
                "bearerFormat": "t1c_sk_…"
            }
        },
        "schemas": {
            "ReplacementOffer": {
                "type": "object",
                "required": [
                    "link_id",
                    "geo",
                    "eligible",
                    "current_url",
                    "current_anchor",
                    "pending_replacement",
                    "credits_required",
                    "credits_available",
                    "purchase_offers",
                    "next_action"
                ],
                "properties": {
                    "link_id": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "geo": {
                        "type": "string",
                        "enum": [
                            "ru",
                            "intl"
                        ]
                    },
                    "status": {
                        "type": "string"
                    },
                    "eligible": {
                        "type": "boolean"
                    },
                    "pending_replacement": {
                        "type": "boolean"
                    },
                    "current_url": {
                        "type": "string"
                    },
                    "current_anchor": {
                        "type": "string"
                    },
                    "credits_required": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "credits_available": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "wallet_will_be_charged": {
                        "type": "boolean",
                        "const": false
                    },
                    "purchase_offers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "product_id",
                                "kind",
                                "service_slots",
                                "price"
                            ],
                            "properties": {
                                "product_id": {
                                    "type": "integer",
                                    "minimum": 0
                                },
                                "kind": {
                                    "type": "string",
                                    "const": "replacement"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "geo": {
                                    "type": "string"
                                },
                                "service_slots": {
                                    "type": "object",
                                    "properties": {
                                        "replacement": {
                                            "type": "integer",
                                            "minimum": 0
                                        }
                                    }
                                },
                                "price": {
                                    "$ref": "#/components/schemas/Money"
                                }
                            }
                        }
                    },
                    "next_action": {
                        "type": "string",
                        "enum": [
                            "not_eligible_use_draft_edit_if_available",
                            "track_existing_replacement",
                            "confirm_and_submit_replacement",
                            "confirm_and_save_replacement",
                            "buy_replacement_credits_via_checkout"
                        ]
                    }
                }
            },
            "ReplacementAction": {
                "type": "object",
                "required": [
                    "link",
                    "saved",
                    "submission",
                    "credits_available",
                    "wallet_was_charged"
                ],
                "properties": {
                    "link": {
                        "$ref": "#/components/schemas/Link"
                    },
                    "saved": {
                        "type": "boolean"
                    },
                    "credits_available": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "wallet_was_charged": {
                        "type": "boolean",
                        "const": false
                    },
                    "submission": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "submitted": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "duplicates": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "submitted_link_ids": {
                                "type": "array",
                                "items": {
                                    "type": "integer",
                                    "minimum": 0
                                }
                            },
                            "errors": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            },
            "ApiError": {
                "type": "object",
                "required": [
                    "code",
                    "message",
                    "data"
                ],
                "properties": {
                    "code": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    },
                    "data": {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "integer"
                            }
                        },
                        "additionalProperties": true
                    }
                }
            },
            "Money": {
                "type": "object",
                "required": [
                    "currency",
                    "amount_minor",
                    "minor_unit"
                ],
                "properties": {
                    "currency": {
                        "type": "string",
                        "enum": [
                            "RUB",
                            "USD"
                        ]
                    },
                    "amount_minor": {
                        "type": "integer"
                    },
                    "minor_unit": {
                        "type": "integer",
                        "const": 2
                    }
                }
            },
            "Profile": {
                "type": "object",
                "required": [
                    "account",
                    "links"
                ],
                "properties": {
                    "account": {
                        "type": "object",
                        "required": [
                            "email",
                            "display_name",
                            "email_verified",
                            "telegram_usernames"
                        ],
                        "properties": {
                            "email": {
                                "type": "string",
                                "format": "email"
                            },
                            "display_name": {
                                "type": "string"
                            },
                            "email_verified": {
                                "type": "boolean"
                            },
                            "telegram_username": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "telegram_usernames": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "linked_accounts_count": {
                                "type": "integer",
                                "minimum": 0
                            }
                        },
                        "additionalProperties": true
                    },
                    "links": {
                        "type": "object",
                        "properties": {
                            "account": {
                                "type": "string",
                                "format": "uri"
                            },
                            "support_bot": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    }
                }
            },
            "Balances": {
                "type": "object",
                "required": [
                    "wallets",
                    "service_balances"
                ],
                "properties": {
                    "wallets": {
                        "type": "object",
                        "required": [
                            "rub",
                            "usd"
                        ],
                        "properties": {
                            "rub": {
                                "$ref": "#/components/schemas/Money"
                            },
                            "usd": {
                                "$ref": "#/components/schemas/Money"
                            }
                        }
                    },
                    "service_balances": {
                        "type": "object",
                        "description": "Current unused slots grouped by requested geo and link type.",
                        "additionalProperties": true
                    }
                }
            },
            "Tariffs": {
                "type": "object",
                "required": [
                    "geo",
                    "currency",
                    "tariffs"
                ],
                "properties": {
                    "geo": {
                        "type": "string",
                        "enum": [
                            "ru",
                            "intl"
                        ]
                    },
                    "currency": {
                        "type": "string",
                        "enum": [
                            "RUB",
                            "USD"
                        ]
                    },
                    "tariffs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "required": [
                                "product_id",
                                "name",
                                "kind",
                                "service_slots",
                                "price"
                            ],
                            "properties": {
                                "product_id": {
                                    "type": "integer"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "geo": {
                                    "type": "string"
                                },
                                "kind": {
                                    "type": "string"
                                },
                                "service_slots": {
                                    "type": "object",
                                    "additionalProperties": {
                                        "type": "integer"
                                    }
                                },
                                "price": {
                                    "$ref": "#/components/schemas/Money"
                                },
                                "placement_years": {
                                    "type": [
                                        "integer",
                                        "null"
                                    ],
                                    "description": "Explicit placement term when provided by the tariff; Gold+ is 2 years from actual placement."
                                }
                            }
                        }
                    }
                }
            },
            "BurzhCatalog": {
                "type": "object",
                "required": [
                    "donors",
                    "count",
                    "price",
                    "acceptor_filter"
                ],
                "properties": {
                    "donors": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "price": {
                        "$ref": "#/components/schemas/Money"
                    },
                    "acceptor_filter": {
                        "type": "object",
                        "additionalProperties": true
                    }
                }
            },
            "RegistrationIntentCreated": {
                "type": "object",
                "required": [
                    "accepted",
                    "request_id",
                    "status_token",
                    "status"
                ],
                "properties": {
                    "accepted": {
                        "type": "boolean"
                    },
                    "request_id": {
                        "type": "string"
                    },
                    "status_token": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "expires_in": {
                        "type": "integer",
                        "minimum": 0
                    }
                },
                "additionalProperties": true
            },
            "RegistrationIntentStatus": {
                "type": "object",
                "required": [
                    "status"
                ],
                "properties": {
                    "status": {
                        "type": "string"
                    },
                    "email_verified": {
                        "type": "boolean"
                    },
                    "telegram_status": {
                        "type": "string"
                    }
                },
                "additionalProperties": true
            },
            "ApiKeyRequestAccepted": {
                "type": "object",
                "required": [
                    "accepted"
                ],
                "properties": {
                    "accepted": {
                        "type": "boolean"
                    },
                    "next_action": {
                        "type": "string"
                    }
                },
                "additionalProperties": true
            },
            "LinkMutation": {
                "type": "object",
                "required": [
                    "link"
                ],
                "properties": {
                    "link": {
                        "$ref": "#/components/schemas/Link"
                    }
                }
            },
            "NativeMutationResult": {
                "type": "object",
                "description": "The native cabinet result; check per-row errors and counts before reporting success.",
                "additionalProperties": true
            },
            "PlacementProgress": {
                "type": "object",
                "required": [
                    "completed",
                    "total",
                    "fully_placed"
                ],
                "properties": {
                    "completed": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "total": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "fully_placed": {
                        "type": "boolean",
                        "description": "Actual link placement completion; independent of WooCommerce payment status."
                    }
                }
            },
            "CabinetOrder": {
                "type": "object",
                "required": [
                    "id",
                    "cabinet_order_id",
                    "wc_order_id",
                    "geo",
                    "status",
                    "slots_count",
                    "placement_progress"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "cabinet_order_id": {
                        "type": "integer",
                        "description": "Use with /orders/{id} and draft operations."
                    },
                    "wc_order_id": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "description": "WooCommerce purchase number shown in emails; one purchase may map to multiple cabinet orders."
                    },
                    "geo": {
                        "type": "string",
                        "enum": [
                            "ru",
                            "intl"
                        ]
                    },
                    "status": {
                        "type": "string"
                    },
                    "link_type": {
                        "type": "string"
                    },
                    "slots_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "completed_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "placement_progress": {
                        "$ref": "#/components/schemas/PlacementProgress"
                    },
                    "in_progress_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "awaiting_url_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "awaiting_confirmation_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "revision_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "converted_count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "deadline_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "additionalProperties": true
            },
            "Link": {
                "type": "object",
                "required": [
                    "id",
                    "order_id",
                    "status"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "order_id": {
                        "type": "integer",
                        "description": "cabinet_order_id"
                    },
                    "geo": {
                        "type": "string"
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "link_type": {
                        "type": "string"
                    },
                    "placement_years": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "anchor": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "context_text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "donor_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "screenshot_url": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string"
                    },
                    "scheduled_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "deadline_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "placed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "expires_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "additionalProperties": true
            },
            "PageInfo": {
                "type": "object",
                "required": [
                    "page",
                    "per_page",
                    "total",
                    "pages",
                    "has_more",
                    "next_page"
                ],
                "properties": {
                    "page": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "per_page": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "total": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "pages": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "has_more": {
                        "type": "boolean"
                    },
                    "next_page": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    }
                }
            },
            "PagedOrders": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/PageInfo"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "orders": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/CabinetOrder"
                                }
                            }
                        }
                    }
                ]
            },
            "PagedLinks": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/PageInfo"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "links": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/Link"
                                }
                            }
                        }
                    }
                ]
            },
            "OrderDetail": {
                "type": "object",
                "properties": {
                    "order": {
                        "$ref": "#/components/schemas/CabinetOrder"
                    },
                    "links": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Link"
                        }
                    }
                }
            },
            "WooOrders": {
                "type": "object",
                "properties": {
                    "wc_order_id": {
                        "type": "integer"
                    },
                    "count": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "orders": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/OrderDetail"
                        }
                    }
                }
            },
            "CheckoutIntentCreated": {
                "type": "object",
                "required": [
                    "intent_id",
                    "checkout_url",
                    "expires_at",
                    "summary"
                ],
                "properties": {
                    "intent_id": {
                        "type": "string"
                    },
                    "checkout_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Secret-bearing URL: show only to the intended customer, never log it."
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "summary": {
                        "type": "object",
                        "additionalProperties": true
                    },
                    "payment_preview": {
                        "type": "object",
                        "description": "Nominal wallet gap only. The hosted checkout recalculates discounts, cashback, FX and payment methods.",
                        "properties": {
                            "currency": {
                                "type": "string"
                            },
                            "wallet_available_minor": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "nominal_wallet_gap_minor": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "final_amount_at_checkout": {
                                "type": "boolean"
                            }
                        }
                    }
                }
            },
            "CheckoutIntentStatus": {
                "type": "object",
                "required": [
                    "intent_id",
                    "state",
                    "wc_order_id",
                    "cabinet_order_ids"
                ],
                "properties": {
                    "intent_id": {
                        "type": "string"
                    },
                    "state": {
                        "type": "string",
                        "enum": [
                            "awaiting_checkout",
                            "expired",
                            "checkout_opened",
                            "awaiting_payment",
                            "paid",
                            "failed",
                            "cancelled",
                            "refunded",
                            "review_required"
                        ]
                    },
                    "expires_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "estimated_summary": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "additionalProperties": true
                    },
                    "wc_order_id": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "wc_order_status": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cabinet_order_ids": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "fulfilment_pending": {
                        "type": "boolean"
                    },
                    "replacement_credits_fulfilled": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "True only after verifying native replacement-credit receipts for this checkout. Null for ordinary placement-only checkouts. Replacement-only purchases do not create cabinet orders."
                    },
                    "cabinet_lookup_path": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            }
        }
    },
    "paths": {
        "/capabilities": {
            "get": {
                "summary": "API capabilities",
                "security": [],
                "responses": {
                    "200": {
                        "description": "Success"
                    },
                    "4XX": {
                        "description": "Validation, authentication or ownership error"
                    }
                },
                "operationId": "getCapabilities",
                "tags": [
                    "Discovery"
                ]
            }
        },
        "/openapi.json": {
            "get": {
                "summary": "This OpenAPI document",
                "security": [],
                "responses": {
                    "200": {
                        "description": "Success"
                    },
                    "4XX": {
                        "description": "Validation, authentication or ownership error"
                    }
                },
                "operationId": "getOpenApi",
                "tags": [
                    "Discovery"
                ]
            }
        },
        "/registration-intents": {
            "post": {
                "summary": "Start verify-first registration",
                "security": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "email"
                                ],
                                "properties": {
                                    "email": {
                                        "type": "string",
                                        "format": "email"
                                    },
                                    "telegram_username": {
                                        "type": "string"
                                    },
                                    "locale": {
                                        "type": "string",
                                        "enum": [
                                            "ru",
                                            "en"
                                        ]
                                    },
                                    "issue_api_key": {
                                        "type": "boolean",
                                        "description": "Show a standard API key once after mailbox confirmation."
                                    },
                                    "referral_code": {
                                        "type": "string",
                                        "maxLength": 40,
                                        "description": "Optional inviter code. Referral signup requires manual email and terms confirmation; a new eligible account receives 1000 RUB + 15 USD instead of the ordinary 200 RUB. Unavailable requests fail explicitly and never fall back to ordinary registration."
                                    },
                                    "request_key": {
                                        "type": "string",
                                        "pattern": "^[a-zA-Z0-9_-]{16,64}$",
                                        "description": "Required with referral_code. Generate once and reuse for retries with the identical payload; the confirmation email is not sent twice. Never use an email or password as this key."
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "Mailbox confirmation requested without account enumeration",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RegistrationIntentCreated"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "beginRegistration",
                "tags": [
                    "Onboarding"
                ]
            }
        },
        "/registration-intents/{id}": {
            "get": {
                "summary": "Check registration status",
                "security": [],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status_token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Verify-first registration status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RegistrationIntentStatus"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "checkRegistration",
                "tags": [
                    "Onboarding"
                ]
            }
        },
        "/api-key-requests": {
            "post": {
                "summary": "Request an API key by account email",
                "security": [],
                "responses": {
                    "202": {
                        "description": "Generic accepted response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiKeyRequestAccepted"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "email"
                                ],
                                "properties": {
                                    "email": {
                                        "type": "string",
                                        "format": "email"
                                    },
                                    "name": {
                                        "type": "string",
                                        "maxLength": 100
                                    }
                                }
                            }
                        }
                    }
                },
                "operationId": "requestApiKey",
                "tags": [
                    "Onboarding"
                ]
            }
        },
        "/profile": {
            "get": {
                "summary": "Account profile",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Authenticated account profile",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Profile"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "getProfile",
                "tags": [
                    "Account"
                ],
                "x-tier1-scope": "profile:read"
            }
        },
        "/balances": {
            "get": {
                "summary": "RUB/USD wallets and service balances",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Both wallets and service-slot balances",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Balances"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "geo",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ru",
                                "intl",
                                "all"
                            ],
                            "default": "all"
                        }
                    }
                ],
                "operationId": "getBalances",
                "tags": [
                    "Account"
                ],
                "x-tier1-scope": "balance:read"
            }
        },
        "/orders": {
            "get": {
                "summary": "List owned cabinet orders, including WC IDs and placement progress",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Owned orders and explicit pagination",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PagedOrders"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "geo",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ru",
                                "intl",
                                "all"
                            ],
                            "default": "all"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Effective page size is capped at 50. Read per_page, has_more and next_page in every response; never assume one page is complete.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 20
                        }
                    }
                ],
                "operationId": "listOrders",
                "tags": [
                    "Account"
                ],
                "x-tier1-scope": "orders:read"
            }
        },
        "/orders/{id}": {
            "get": {
                "summary": "Get owned cabinet order by cabinet_order_id, not Woo number",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "One cabinet order with links",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/OrderDetail"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "getOrder",
                "tags": [
                    "Account"
                ],
                "x-tier1-scope": "orders:read"
            }
        },
        "/orders/by-wc/{id}": {
            "get": {
                "summary": "Resolve all owned cabinet orders by WooCommerce purchase number",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "All child cabinet orders of one owned Woo purchase",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/WooOrders"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "getOrdersByWooId",
                "tags": [
                    "Account"
                ],
                "x-tier1-scope": "orders:read"
            }
        },
        "/links": {
            "get": {
                "summary": "List owned links with explicit pagination",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Owned links and pagination",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PagedLinks"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "geo",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ru",
                                "intl",
                                "all"
                            ],
                            "default": "all"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "link_type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "yearly",
                                "onetime",
                                "through",
                                "replacement",
                                "renewal_yearly",
                                "renewal_through"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "description": "Effective page size is capped at 50. Read per_page, has_more and next_page in every response; never assume one page is complete.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "default": 20
                        }
                    }
                ],
                "operationId": "listLinks",
                "tags": [
                    "Account"
                ],
                "x-tier1-scope": "links:read"
            }
        },
        "/catalog/tariffs": {
            "get": {
                "summary": "Purchasable RU or intl tariffs with exact slot counts",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Current product IDs, nominal price and included slots, including replacement credits",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Tariffs"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "geo",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ru",
                                "intl"
                            ]
                        }
                    }
                ],
                "operationId": "listTariffs",
                "tags": [
                    "Catalog"
                ],
                "x-tier1-scope": "catalog:read"
            }
        },
        "/catalog/burzh-igaming": {
            "get": {
                "summary": "Anonymized iGaming donors and live slots",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Current anonymized donor inventory",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/BurzhCatalog"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "listBurzhIgamingDonors",
                "tags": [
                    "Catalog"
                ],
                "x-tier1-scope": "catalog:read"
            }
        },
        "/links/{id}": {
            "patch": {
                "summary": "Edit a draft link",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        },
                        "description": "Reuse the same key only when retrying the exact same mutation."
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "onetime",
                                            "yearly",
                                            "through"
                                        ]
                                    },
                                    "url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "anchor": {
                                        "type": "string",
                                        "maxLength": 500
                                    },
                                    "context_text": {
                                        "type": "string"
                                    },
                                    "scheduled_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Updated owned link",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LinkMutation"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "updateLinkDraft",
                "tags": [
                    "Drafts"
                ],
                "x-tier1-scope": "links:write"
            },
            "put": {
                "summary": "Edit a draft link",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        },
                        "description": "Reuse the same key only when retrying the exact same mutation."
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "enum": [
                                            "onetime",
                                            "yearly",
                                            "through"
                                        ]
                                    },
                                    "url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "anchor": {
                                        "type": "string",
                                        "maxLength": 500
                                    },
                                    "context_text": {
                                        "type": "string"
                                    },
                                    "scheduled_at": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "date-time"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Updated owned link",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LinkMutation"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "replaceLinkDraftFields",
                "tags": [
                    "Drafts"
                ],
                "x-tier1-scope": "links:write"
            }
        },
        "/links/{id}/submit": {
            "post": {
                "summary": "Submit one completed link draft",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        },
                        "description": "Reuse the same key only when retrying the exact same mutation."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Updated owned link",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/LinkMutation"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "submitLink",
                "tags": [
                    "Drafts"
                ],
                "x-tier1-scope": "links:write"
            }
        },
        "/orders/{id}/bulk-update": {
            "post": {
                "summary": "Fill editable order rows without submitting",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        },
                        "description": "Reuse the same key only when retrying the exact same mutation."
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "links": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "enum": [
                                                        "onetime",
                                                        "yearly",
                                                        "through"
                                                    ]
                                                },
                                                "url": {
                                                    "type": "string",
                                                    "format": "uri"
                                                },
                                                "anchor": {
                                                    "type": "string",
                                                    "maxLength": 500
                                                },
                                                "context_text": {
                                                    "type": "string"
                                                },
                                                "scheduled_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "date-time"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Native bulk-update result and per-row errors",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/NativeMutationResult"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "bulkUpdateOrderDraft",
                "tags": [
                    "Drafts"
                ],
                "x-tier1-scope": "orders:write"
            }
        },
        "/orders/{id}/submit-all": {
            "post": {
                "summary": "Submit every ready row in an order",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        },
                        "description": "Reuse the same key only when retrying the exact same mutation."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Native submit-all result",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/NativeMutationResult"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "submitOrder",
                "tags": [
                    "Drafts"
                ],
                "x-tier1-scope": "orders:write"
            }
        },
        "/checkout-intents": {
            "post": {
                "summary": "Create a protected hosted-checkout link; never accepts card/payment data",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        },
                        "description": "Reuse the same key only when retrying the exact same mutation."
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "geo",
                                    "items"
                                ],
                                "properties": {
                                    "geo": {
                                        "type": "string",
                                        "enum": [
                                            "ru",
                                            "intl"
                                        ]
                                    },
                                    "items": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "product_id",
                                                "quantity"
                                            ],
                                            "properties": {
                                                "product_id": {
                                                    "type": "integer"
                                                },
                                                "quantity": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "donor_tokens": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "links": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "enum": [
                                                        "onetime",
                                                        "yearly",
                                                        "through"
                                                    ]
                                                },
                                                "url": {
                                                    "type": "string",
                                                    "format": "uri"
                                                },
                                                "anchor": {
                                                    "type": "string",
                                                    "maxLength": 500
                                                },
                                                "context_text": {
                                                    "type": "string"
                                                },
                                                "scheduled_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "format": "date-time"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Protected checkout link created; no payment made",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CheckoutIntentCreated"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "createCheckoutIntent",
                "tags": [
                    "Checkout"
                ],
                "x-tier1-scope": "checkout:create"
            }
        },
        "/checkout-intents/{id}": {
            "get": {
                "summary": "Read-only status for an owned checkout intent",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{32}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Checkout and purchase state; placement is separate",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/CheckoutIntentStatus"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "getCheckoutIntentStatus",
                "tags": [
                    "Checkout"
                ],
                "x-tier1-scope": "checkout:create"
            }
        },
        "/links/{id}/replacement": {
            "get": {
                "summary": "Quote paid URL/anchor replacement; read-only, not a donor change",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Read-only replacement eligibility, geo credits and purchase offers",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReplacementOffer"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "operationId": "getReplacementOffer",
                "tags": [
                    "Replacements"
                ],
                "x-tier1-scope": "links:read"
            },
            "post": {
                "summary": "Save a confirmed replacement, reserving one service credit; no wallet charge",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        },
                        "description": "Reuse the same key only when retrying the exact same mutation."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Native save or exact-link submission outcome; inspect errors/status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReplacementAction"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "confirmed",
                                    "expected_url",
                                    "expected_anchor",
                                    "url",
                                    "anchor"
                                ],
                                "properties": {
                                    "confirmed": {
                                        "type": "boolean",
                                        "enum": [
                                            true
                                        ],
                                        "description": "Explicit customer confirmation is required."
                                    },
                                    "expected_url": {
                                        "type": "string",
                                        "description": "Exact current_url from fresh replacement offer; after save, the saved new URL."
                                    },
                                    "expected_anchor": {
                                        "type": "string",
                                        "description": "Exact current_anchor from fresh replacement offer; after save, the saved new anchor."
                                    },
                                    "url": {
                                        "type": "string",
                                        "format": "uri"
                                    },
                                    "anchor": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 500
                                    }
                                }
                            }
                        }
                    }
                },
                "operationId": "saveLinkReplacement",
                "tags": [
                    "Replacements"
                ],
                "x-tier1-scope": "links:write"
            }
        },
        "/links/{id}/replacement/submit": {
            "post": {
                "summary": "Submit only this saved replacement; inspect native submission errors and link status",
                "security": [
                    {
                        "ApiKey": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        },
                        "description": "Reuse the same key only when retrying the exact same mutation."
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Native save or exact-link submission outcome; inspect errors/status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ReplacementAction"
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "Safe API error. Unknown and foreign resources have the same generic 404.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ApiError"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "confirmed",
                                    "expected_url",
                                    "expected_anchor"
                                ],
                                "properties": {
                                    "confirmed": {
                                        "type": "boolean",
                                        "enum": [
                                            true
                                        ],
                                        "description": "Explicit customer confirmation is required."
                                    },
                                    "expected_url": {
                                        "type": "string",
                                        "description": "Exact current_url from fresh replacement offer; after save, the saved new URL."
                                    },
                                    "expected_anchor": {
                                        "type": "string",
                                        "description": "Exact current_anchor from fresh replacement offer; after save, the saved new anchor."
                                    }
                                }
                            }
                        }
                    }
                },
                "operationId": "submitLinkReplacement",
                "tags": [
                    "Replacements"
                ],
                "x-tier1-scope": "links:write"
            }
        }
    }
}