{
  "openapi": "3.0.3",
  "info": {
    "title": "Wonderweb Registrar API \u2013 read resources",
    "version": "1.1.0",
    "description": "Wonderweb Registrar API. Integration v1.0 supports isolated sandbox lifecycle testing and gated production order intake. Live payments and provider dispatch are not enabled by this release.\n\nUnified actions and field contracts: https://api.wonderweb.co.zw/assets/downloads/wonderweb-registrar-1.1.0-guide.md. Check capabilities before production use."
  },
  "servers": [
    {
      "url": "https://api.wonderweb.co.zw/v1"
    }
  ],
  "paths": {
    "/health/": {
      "get": {
        "summary": "API health check",
        "operationId": "health",
        "description": "Public endpoint. Read-only operation.",
        "parameters": [],
        "security": [],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "Public"
      }
    },
    "/extensions/": {
      "get": {
        "summary": "Configured domain extensions",
        "operationId": "extensions",
        "description": "Requires extensions:read. Read-only operation.",
        "parameters": [],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "extensions:read"
      }
    },
    "/domains/check/": {
      "get": {
        "summary": "Check domain availability",
        "operationId": "domains_check",
        "description": "Requires domains:check. Read-only operation.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Fully qualified domain name",
            "schema": {
              "type": "string",
              "maxLength": 253
            },
            "example": "example.com"
          }
        ],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "domains:check"
      }
    },
    "/pricing/": {
      "get": {
        "summary": "Current standard wholesale catalogue",
        "operationId": "pricing",
        "description": "Requires pricing:read. Read-only operation.",
        "parameters": [],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "pricing:read"
      }
    },
    "/account/": {
      "get": {
        "summary": "Read authenticated account",
        "operationId": "account",
        "description": "Requires account:read. Read-only operation.",
        "parameters": [],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "account:read"
      }
    },
    "/wallet/": {
      "get": {
        "summary": "Read wallet balances",
        "operationId": "wallet",
        "description": "Requires wallet:read. Read-only operation.",
        "parameters": [],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "wallet:read"
      }
    },
    "/deposits/": {
      "get": {
        "summary": "Read deposit history",
        "operationId": "deposits",
        "description": "Requires wallet:read. Read-only operation.",
        "parameters": [],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "wallet:read"
      },
      "post": {
        "summary": "Initiate a wallet deposit (policy-gated)",
        "operationId": "initiateDeposit",
        "description": "Installed but disabled pending commercial activation. Requires wallet:deposit. USD 5.00-100.00. Reuse request_key after an uncertain response. Only independently verified payment polling credits a wallet.",
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "x-required-scope": "wallet:deposit",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "amount",
                  "request_key"
                ],
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "type": "string",
                    "example": "25.00"
                  },
                  "request_key": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9._:-]+$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Payment attempt; not wallet credit"
          },
          "401": {
            "description": "Authentication required"
          },
          "403": {
            "description": "Permission denied"
          },
          "409": {
            "description": "Idempotency or pending payment conflict"
          },
          "422": {
            "description": "Invalid request"
          },
          "429": {
            "description": "Rate limit exceeded"
          },
          "503": {
            "description": "Disabled or temporarily unavailable; retry same key"
          }
        }
      }
    },
    "/quotes/": {
      "get": {
        "summary": "Read indicative domain quotation",
        "operationId": "quotes",
        "description": "Requires domains:quote. Indicative pricing; does not establish availability or authorize a purchase.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Fully qualified domain name",
            "schema": {
              "type": "string",
              "maxLength": 253
            },
            "example": "example.com"
          },
          {
            "name": "operation",
            "in": "query",
            "required": true,
            "description": "Explicit indicative quote operation",
            "schema": {
              "type": "string",
              "enum": [
                "register",
                "renew",
                "transfer"
              ]
            }
          }
        ],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "domains:quote"
      }
    },
    "/orders/": {
      "get": {
        "summary": "Read account order records",
        "operationId": "orders",
        "description": "Requires orders:read. Read-only operation.",
        "parameters": [],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "orders:read"
      }
    },
    "/portfolio/": {
      "get": {
        "summary": "Read domain portfolio",
        "operationId": "portfolio",
        "description": "Requires domains:read. Read-only operation.",
        "parameters": [],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful read. Resource fields depend on the deployed endpoint; verify the exact response before use.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "domains:read"
      }
    },
    "/checkout/": {
      "get": {
        "summary": "Validate indicative domain checkout",
        "operationId": "checkoutValidation",
        "description": "Requires domains:quote. Returns indicative price, local portfolio eligibility and wallet funding requirements. No financial or registrar mutation; no purchase authorization.",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Fully qualified domain name",
            "schema": {
              "type": "string",
              "maxLength": 253
            },
            "example": "example.com"
          },
          {
            "name": "operation",
            "in": "query",
            "required": true,
            "description": "Explicit indicative quote operation",
            "schema": {
              "type": "string",
              "enum": [
                "register",
                "renew",
                "transfer"
              ]
            }
          }
        ],
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful checkout validation; purchase_enabled remains false.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                }
              }
            }
          },
          "401": {
            "description": "Invalid or missing credential",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "403": {
            "description": "Inactive account or insufficient permission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "405": {
            "description": "Method unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          },
          "503": {
            "description": "Service or provider unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorEnvelope"
                }
              }
            }
          }
        },
        "x-required-scope": "domains:quote"
      },
      "post": {
        "summary": "Native checkout: contact profile, quote request or order authorization",
        "description": "Form-encoded profile creation, registry quotation request, or exact-price authorization. Quotes: configured standard international registration, mapped renewal and transfer; EPP is required only on an enabled paid transfer route. Initial paid routes restricted to explicitly qualified supervised registration and renewal. Paid transfer and ZISPA operations are disabled.",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "action"
                ],
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "profile_create",
                      "quote_request",
                      "accept"
                    ]
                  },
                  "request_key": {
                    "type": "string"
                  },
                  "domain": {
                    "type": "string"
                  },
                  "operation": {
                    "type": "string",
                    "enum": [
                      "register",
                      "renew",
                      "transfer"
                    ]
                  },
                  "profile": {
                    "type": "string"
                  },
                  "business": {
                    "type": "string"
                  },
                  "ns1": {
                    "type": "string"
                  },
                  "ns2": {
                    "type": "string"
                  },
                  "ns3": {
                    "type": "string"
                  },
                  "ns4": {
                    "type": "string"
                  },
                  "quote_id": {
                    "type": "string"
                  },
                  "price_cents": {
                    "type": "integer"
                  },
                  "confirm": {
                    "type": "string",
                    "enum": [
                      "1"
                    ]
                  },
                  "epp": {
                    "type": "string",
                    "format": "password",
                    "maxLength": 255,
                    "description": "Transfer authorization code; required only on an enabled paid transfer route; never returned."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request recorded; check state"
          },
          "401": {
            "description": "Invalid key"
          },
          "403": {
            "description": "Insufficient permission"
          },
          "422": {
            "description": "Invalid request"
          },
          "503": {
            "description": "Service paused or unavailable"
          }
        }
      }
    },
    "/integration/": {
      "get": {
        "summary": "Integration reads",
        "operationId": "integration_read",
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          },
          {
            "SandboxBearer": []
          }
        ],
        "parameters": [
          {
            "name": "action",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "capabilities",
                "catalogue",
                "availability",
                "domain",
                "order",
                "wallet",
                "events"
              ]
            }
          },
          {
            "name": "domain",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reference",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success; verify environment, simulated and order status"
          },
          "401": {
            "description": "Invalid credentials"
          },
          "403": {
            "description": "Permission denied"
          },
          "404": {
            "description": "Resource not found"
          },
          "405": {
            "description": "Unsupported operation"
          },
          "409": {
            "description": "Conflict or price ceiling"
          },
          "422": {
            "description": "Invalid fields"
          },
          "429": {
            "description": "Rate limit"
          },
          "503": {
            "description": "Service or activation unavailable"
          }
        }
      },
      "post": {
        "summary": "Integration actions (policy-gated production and isolated sandbox)",
        "operationId": "integration_action",
        "description": "Action-specific required fields. See integration and sandbox guides. A successful queued order is not fulfilled. Sandbox management actions cannot execute against production.",
        "security": [
          {
            "TenantBearer": []
          },
          {
            "TenantApiKey": []
          },
          {
            "SandboxBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "action"
                ],
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "submit",
                      "sandbox_create",
                      "sandbox_revoke",
                      "fund",
                      "complete_transfer",
                      "fail_transfer",
                      "set_nameservers",
                      "set_contact",
                      "set_lock",
                      "epp"
                    ]
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 100
                  },
                  "domain": {
                    "type": "string"
                  },
                  "operation": {
                    "type": "string",
                    "enum": [
                      "register",
                      "renew",
                      "transfer"
                    ]
                  },
                  "years": {
                    "type": "integer",
                    "enum": [
                      1
                    ]
                  },
                  "max_price_cents": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "confirm": {
                    "type": "string",
                    "enum": [
                      "1"
                    ]
                  },
                  "contact": {
                    "type": "string",
                    "description": "JSON object with authorized registrant fields; sandbox email ends .invalid"
                  },
                  "nameservers": {
                    "type": "string",
                    "description": "JSON array of 2-4 hostnames"
                  },
                  "business_profile": {
                    "type": "string"
                  },
                  "previous_expiry": {
                    "type": "string",
                    "format": "date"
                  },
                  "epp": {
                    "type": "string",
                    "description": "Sandbox uses TEST-TRANSFER. Production transfer remains disabled."
                  },
                  "amount_cents": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "locked": {
                    "type": "integer",
                    "enum": [
                      0,
                      1
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success; verify environment, simulated and order status"
          },
          "401": {
            "description": "Invalid credentials"
          },
          "403": {
            "description": "Permission denied"
          },
          "404": {
            "description": "Resource not found"
          },
          "405": {
            "description": "Unsupported operation"
          },
          "409": {
            "description": "Conflict or price ceiling"
          },
          "422": {
            "description": "Invalid fields"
          },
          "429": {
            "description": "Rate limit"
          },
          "503": {
            "description": "Service or activation unavailable"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "TenantBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Use an approved ww_tenant_ API credential."
      },
      "TenantApiKey": {
        "type": "apiKey",
        "name": "X-API-Key",
        "in": "header",
        "description": "Alternative to bearer authentication; do not send conflicting credentials."
      },
      "SandboxBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "ww_sandbox_ followed by 64 lowercase hex characters; isolated environment only"
      }
    },
    "schemas": {
      "SuccessEnvelope": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "ErrorEnvelope": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  }
}
