{
  "openapi": "3.0.3",
  "info": {
    "title": "LyProxy静态与运营商双ISP API",
    "version": "2026-11-18",
    "description": "当前运营商双ISP使用type/ipType=3。所有静态线路共用号段查询、下单、支付及交付接口；客户身份与定价由服务端鉴权确定。"
  },
  "servers": [
    {
      "url": "https://ly-proxy.com/api/proxy"
    }
  ],
  "components": {
    "securitySchemes": {
      "merchantCode": {
        "type": "apiKey",
        "in": "header",
        "name": "x-merchant-code"
      },
      "merchantToken": {
        "type": "apiKey",
        "in": "header",
        "name": "x-merchant-token"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/client/ip/pool/regionalAvailableIps": {
      "get": {
        "operationId": "get-client-ip-pool-regionalAvailableIps",
        "summary": "查询静态IP-可用IP列表(支持多选)",
        "tags": [
          "static"
        ],
        "description": "",
        "security": [
          {
            "merchantCode": [],
            "merchantToken": []
          }
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "静态 IP 类型，0 普通/广播，1 原生",
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1,
                3
              ]
            },
            "example": 1
          },
          {
            "name": "continents",
            "in": "query",
            "required": false,
            "description": "返回模型字段",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": [
              "DEMO_VALUE"
            ]
          },
          {
            "name": "countryCodes",
            "in": "query",
            "required": false,
            "description": "国家代码数组，查询参数可重复传入",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": [
              "US",
              "TH"
            ]
          },
          {
            "name": "locations",
            "in": "query",
            "required": false,
            "description": "返回模型字段",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": [
              "DEMO_VALUE"
            ]
          },
          {
            "name": "isExclusive",
            "in": "query",
            "required": false,
            "description": "资源类型标识，依实际购买配置使用",
            "schema": {
              "type": "number"
            },
            "example": 1
          },
          {
            "name": "pageNum",
            "in": "query",
            "required": false,
            "description": "页码，从 1 开始",
            "schema": {
              "type": "number"
            },
            "example": 1
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "每页条数",
            "schema": {
              "type": "number"
            },
            "example": 10
          }
        ],
        "responses": {
          "200": {
            "description": "成功返回（示例）；空列表",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "number"
                          },
                          "type": {
                            "type": "number"
                          },
                          "continent": {
                            "type": "string"
                          },
                          "countryCode": {
                            "type": "string"
                          },
                          "location": {
                            "type": "string"
                          },
                          "price": {
                            "type": "number"
                          },
                          "ipTotals": {
                            "type": "number"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example_1": {
                    "summary": "成功返回（示例）",
                    "value": {
                      "code": 200,
                      "msg": "查询成功",
                      "total": 1,
                      "rows": [
                        {
                          "id": 1001,
                          "type": 1,
                          "continent": "North America",
                          "countryCode": "US",
                          "location": "United States",
                          "price": 5,
                          "ipTotals": 10
                        }
                      ]
                    }
                  },
                  "example_2": {
                    "summary": "空列表",
                    "value": {
                      "code": 200,
                      "msg": "查询成功",
                      "total": 0,
                      "rows": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "鉴权失败（公共错误形状）",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "example_3": {
                    "summary": "鉴权失败（公共错误形状）",
                    "value": {
                      "code": 401,
                      "msg": "认证失败，请重新登录或检查商户密钥"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/client/order/addStatic": {
      "post": {
        "operationId": "post-client-order-addStatic",
        "summary": "客户端下单静态IP (只下单，不支付)",
        "tags": [
          "shared"
        ],
        "description": "此接口会修改数据或创建业务记录。文档只展示代码，不会自动发送请求。\n这里只创建待支付订单，不会直接扣款或保证交付。金额和库存由服务端核验。\n适用于ipType0/1/3。可选countryNums[].subnet指定IPv4 /24，须开启账户号段权限；不传则自动分配。库存不足不会跨段发货。",
        "security": [
          {
            "merchantCode": [],
            "merchantToken": []
          },
          {
            "bearerAuth": []
          }
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "成功返回（示例）；业务失败（示例，msg 以实际返回为准）",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    },
                    "data": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "example_1": {
                    "summary": "成功返回（示例）",
                    "value": {
                      "code": 200,
                      "msg": "订单创建成功，请在30分钟内支付",
                      "data": "N2026101500000000001"
                    }
                  },
                  "example_3": {
                    "summary": "业务失败（示例，msg 以实际返回为准）",
                    "value": {
                      "code": 500,
                      "msg": "参数或业务校验失败，请检查输入"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "鉴权失败（公共错误形状）",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "example_2": {
                    "summary": "鉴权失败（公共错误形状）",
                    "value": {
                      "code": 401,
                      "msg": "认证失败，请重新登录或检查商户密钥"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "payMode": {
                    "type": "string"
                  },
                  "payMethod": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "USD"
                    ]
                  },
                  "monthCount": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12
                  },
                  "isExclusive": {
                    "type": "number"
                  },
                  "countryNums": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "countryCode": {
                          "type": "string"
                        },
                        "location": {
                          "type": "string"
                        },
                        "num": {
                          "type": "number"
                        },
                        "ipType": {
                          "type": "integer",
                          "enum": [
                            0,
                            1,
                            3
                          ]
                        },
                        "subnet": {
                          "type": "string",
                          "pattern": "^(?:[0-9]{1,3}\\.){3}0/24$",
                          "description": "可选；管理员开启该账户号段权限后，从指定poolId的号段查询返回cidr中选择"
                        },
                        "continent": {
                          "type": "string",
                          "description": "可选；原样使用资源池返回的大洲值"
                        }
                      },
                      "required": [
                        "countryCode",
                        "location",
                        "num",
                        "ipType"
                      ]
                    }
                  },
                  "couponCode": {
                    "type": "string"
                  },
                  "ips": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "example": {
                "payMode": "PAY_LATER",
                "payMethod": "BALANCE",
                "currency": "USD",
                "monthCount": 1,
                "isExclusive": 1,
                "couponCode": "",
                "countryNums": [
                  {
                    "continent": "NorthAmerica",
                    "countryCode": "US",
                    "location": "Los Angeles-AT&T",
                    "num": 1,
                    "ipType": 3,
                    "subnet": "198.51.100.0/24"
                  }
                ],
                "ips": []
              }
            }
          }
        }
      }
    },
    "/client/order/orderList": {
      "get": {
        "operationId": "get-client-order-orderList",
        "summary": "订单列表",
        "tags": [
          "shared"
        ],
        "description": "",
        "security": [
          {
            "merchantCode": [],
            "merchantToken": []
          }
        ],
        "parameters": [
          {
            "name": "productName",
            "in": "query",
            "required": false,
            "description": "返回模型字段",
            "schema": {
              "type": "string"
            },
            "example": "DEMO_VALUE"
          },
          {
            "name": "orderNo",
            "in": "query",
            "required": false,
            "description": "订单号，由下单接口返回",
            "schema": {
              "type": "string"
            },
            "example": "N2026101500000000001"
          },
          {
            "name": "domain",
            "in": "query",
            "required": false,
            "description": "返回模型字段",
            "schema": {
              "type": "string"
            },
            "example": "DEMO_VALUE"
          },
          {
            "name": "productType",
            "in": "query",
            "required": false,
            "description": "返回模型字段",
            "schema": {
              "type": "number"
            },
            "example": 1
          },
          {
            "name": "pageNum",
            "in": "query",
            "required": false,
            "description": "页码，从 1 开始",
            "schema": {
              "type": "number"
            },
            "example": 1
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "每页条数",
            "schema": {
              "type": "number"
            },
            "example": 10
          }
        ],
        "responses": {
          "200": {
            "description": "成功返回（示例）；空列表",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    },
                    "total": {
                      "type": "number"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "number"
                          },
                          "merchantId": {
                            "type": "number"
                          },
                          "orderNo": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          },
                          "productName": {
                            "type": "string"
                          },
                          "productType": {
                            "type": "number"
                          },
                          "quantity": {
                            "type": "number"
                          },
                          "originalAmount": {
                            "type": "number"
                          },
                          "totalAmount": {
                            "type": "number"
                          },
                          "discountAmount": {
                            "type": "number"
                          },
                          "couponCode": {
                            "type": "string"
                          },
                          "couponName": {
                            "type": "string"
                          },
                          "couponType": {
                            "type": "string"
                          },
                          "couponValue": {
                            "type": "number"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "status": {
                            "type": "number"
                          },
                          "paidStatus": {
                            "type": "number"
                          },
                          "payMethod": {
                            "type": "string"
                          },
                          "payMode": {
                            "type": "string"
                          },
                          "totalIps": {
                            "type": "number"
                          },
                          "udp": {
                            "type": "string"
                          },
                          "staticCountryNums": {
                            "type": "string"
                          },
                          "effectiveDatetime": {
                            "type": "string"
                          },
                          "expireDatetime": {
                            "type": "string"
                          },
                          "nextNotifyTime": {
                            "type": "string"
                          },
                          "notifyCount": {
                            "type": "number"
                          },
                          "orderItems": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "number"
                                },
                                "orderId": {
                                  "type": "number"
                                },
                                "orderType": {
                                  "type": "number"
                                },
                                "poolId": {
                                  "type": "number"
                                },
                                "price": {
                                  "type": "number"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "days": {
                                  "type": "number"
                                },
                                "discount": {
                                  "type": "number"
                                },
                                "continent": {
                                  "type": "string"
                                },
                                "countryCode": {
                                  "type": "string"
                                },
                                "location": {
                                  "type": "string"
                                },
                                "ip": {
                                  "type": "string"
                                },
                                "protocolse": {
                                  "type": "string"
                                },
                                "effectiveDatetime": {
                                  "type": "string"
                                },
                                "expireDatetime": {
                                  "type": "string"
                                },
                                "account": {
                                  "type": "string"
                                },
                                "password": {
                                  "type": "string"
                                },
                                "port": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "staticIp": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example_1": {
                    "summary": "成功返回（示例）",
                    "value": {
                      "code": 200,
                      "msg": "查询成功",
                      "total": 1,
                      "rows": [
                        {
                          "id": 1001,
                          "merchantId": 1000,
                          "orderNo": "N2026101500000000001",
                          "domain": "DEMO_VALUE",
                          "productName": "DEMO_VALUE",
                          "productType": 1,
                          "quantity": 1,
                          "originalAmount": 1,
                          "totalAmount": 5,
                          "discountAmount": 1,
                          "couponCode": "",
                          "couponName": "DEMO_VALUE",
                          "couponType": "DEMO_VALUE",
                          "couponValue": 1,
                          "currency": "USD",
                          "status": 1,
                          "paidStatus": 10,
                          "payMethod": "BALANCE",
                          "payMode": "PAY_FIRST",
                          "totalIps": 1,
                          "udp": "DEMO_VALUE",
                          "staticCountryNums": "DEMO_VALUE",
                          "effectiveDatetime": "2026-10-15 12:00:00",
                          "expireDatetime": "2026-11-14 12:00:00",
                          "nextNotifyTime": "2026-10-15 12:00:00",
                          "notifyCount": 1,
                          "orderItems": [
                            {
                              "id": 1001,
                              "orderId": 2001,
                              "orderType": 1,
                              "poolId": 3001,
                              "price": 5,
                              "currency": "USD",
                              "days": 30,
                              "discount": 1,
                              "continent": "North America",
                              "countryCode": "US",
                              "location": "United States",
                              "ip": "192.0.2.10",
                              "protocolse": "SOCKS5",
                              "effectiveDatetime": "2026-10-15 12:00:00",
                              "expireDatetime": "2026-11-14 12:00:00",
                              "account": "demo_account",
                              "password": "DEMO_PASSWORD",
                              "port": "62000",
                              "status": "Y"
                            }
                          ],
                          "staticIp": "DEMO_VALUE"
                        }
                      ]
                    }
                  },
                  "example_2": {
                    "summary": "空列表",
                    "value": {
                      "code": 200,
                      "msg": "查询成功",
                      "total": 0,
                      "rows": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "鉴权失败（公共错误形状）",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "example_3": {
                    "summary": "鉴权失败（公共错误形状）",
                    "value": {
                      "code": 401,
                      "msg": "认证失败，请重新登录或检查商户密钥"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/client/order/getMerchantIpsByOrderNo": {
      "get": {
        "operationId": "get-client-order-getMerchantIpsByOrderNo",
        "summary": "按订单号查询交付 IP",
        "tags": [
          "shared"
        ],
        "description": "",
        "security": [
          {
            "merchantCode": [],
            "merchantToken": []
          }
        ],
        "parameters": [
          {
            "name": "orderNo",
            "in": "query",
            "required": true,
            "description": "订单号，由下单接口返回",
            "schema": {
              "type": "string"
            },
            "example": "N2026101500000000001"
          }
        ],
        "responses": {
          "200": {
            "description": "成功返回（示例）；无记录时（示例）",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "number"
                          },
                          "merchantId": {
                            "type": "number"
                          },
                          "lastOrderId": {
                            "type": "number"
                          },
                          "lastPoolId": {
                            "type": "number"
                          },
                          "port": {
                            "type": "string"
                          },
                          "relayPort": {
                            "type": "string"
                          },
                          "remark": {
                            "type": "string"
                          },
                          "account": {
                            "type": "string"
                          },
                          "password": {
                            "type": "string"
                          },
                          "ip": {
                            "type": "string"
                          },
                          "protocolse": {
                            "type": "string"
                          },
                          "effectiveDatetime": {
                            "type": "string"
                          },
                          "expireDatetime": {
                            "type": "string"
                          },
                          "serviceExpireTime": {
                            "type": "string"
                          },
                          "subscribeDatetime": {
                            "type": "string"
                          },
                          "status": {
                            "type": "number"
                          },
                          "autoRenewEnabled": {
                            "type": "number"
                          },
                          "poolId": {
                            "type": "number"
                          },
                          "type": {
                            "type": "number"
                          },
                          "continent": {
                            "type": "string"
                          },
                          "countryCode": {
                            "type": "string"
                          },
                          "location": {
                            "type": "string"
                          },
                          "hot": {
                            "type": "string"
                          },
                          "updateTime": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example_1": {
                    "summary": "成功返回（示例）",
                    "value": {
                      "code": 200,
                      "msg": "操作成功",
                      "data": [
                        {
                          "id": 1001,
                          "merchantId": 1000,
                          "lastOrderId": 2001,
                          "lastPoolId": 3001,
                          "port": "62000",
                          "relayPort": "DEMO_VALUE",
                          "remark": "示例备注",
                          "account": "demo_account",
                          "password": "DEMO_PASSWORD",
                          "ip": "192.0.2.10",
                          "protocolse": "SOCKS5",
                          "effectiveDatetime": "2026-10-15 12:00:00",
                          "expireDatetime": "2026-11-14 12:00:00",
                          "serviceExpireTime": "2026-10-15 12:00:00",
                          "subscribeDatetime": "2026-10-15 12:00:00",
                          "status": 1,
                          "autoRenewEnabled": 0,
                          "poolId": 3001,
                          "type": 1,
                          "continent": "North America",
                          "countryCode": "US",
                          "location": "United States",
                          "hot": "DEMO_VALUE",
                          "updateTime": "2026-10-15 12:00:00"
                        }
                      ]
                    }
                  },
                  "example_2": {
                    "summary": "无记录时（示例）",
                    "value": {
                      "code": 200,
                      "msg": "操作成功",
                      "data": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "鉴权失败（公共错误形状）",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "example_3": {
                    "summary": "鉴权失败（公共错误形状）",
                    "value": {
                      "code": 401,
                      "msg": "认证失败，请重新登录或检查商户密钥"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/client/payment/order/pay/{orderNo}": {
      "post": {
        "operationId": "post-client-payment-order-pay-orderNo",
        "summary": "订单支付",
        "tags": [
          "shared"
        ],
        "description": "此接口会修改数据或创建业务记录。文档只展示代码，不会自动发送请求。\n余额支付成功与外部收银台创建成功不同；跳转 URL 不是付款证明。请重新查询订单和 IP/流量资源。",
        "security": [
          {
            "merchantCode": [],
            "merchantToken": []
          }
        ],
        "parameters": [
          {
            "name": "orderNo",
            "in": "path",
            "required": true,
            "description": "订单号，由下单接口返回",
            "schema": {
              "type": "string"
            },
            "example": "N2026101500000000001"
          }
        ],
        "responses": {
          "200": {
            "description": "成功返回（示例）；外部收银台创建成功，尚未付款；业务失败（示例，msg 以实际返回为准）",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "paymentType": {
                          "type": "string"
                        },
                        "paymentName": {
                          "type": "string"
                        },
                        "orderId": {
                          "type": "number"
                        },
                        "orderNo": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "number"
                        },
                        "totalAmount": {
                          "type": "number"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "productType": {
                          "type": "number"
                        },
                        "paidStatus": {
                          "type": "number"
                        },
                        "paid": {
                          "type": "boolean"
                        },
                        "status": {
                          "type": "number"
                        },
                        "payMessage": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example_1": {
                    "summary": "成功返回（示例）",
                    "value": {
                      "code": 200,
                      "msg": "操作成功",
                      "data": {
                        "paymentType": "BALANCE",
                        "paymentName": "余额支付",
                        "orderId": 2001,
                        "orderNo": "N2026101500000000001",
                        "amount": 5,
                        "totalAmount": 5,
                        "currency": "USD",
                        "productType": 1,
                        "paidStatus": 20,
                        "paid": true,
                        "status": 1,
                        "payMessage": "success"
                      }
                    }
                  },
                  "example_2": {
                    "summary": "外部收银台创建成功，尚未付款",
                    "value": {
                      "code": 200,
                      "msg": "操作成功",
                      "data": {
                        "orderNo": "N2026101500000000001",
                        "orderId": 2001,
                        "amount": 5,
                        "totalAmount": 5,
                        "paidStatus": 10,
                        "productType": 1,
                        "paid": false,
                        "paymentType": "STRIPE",
                        "paymentName": "余额支付",
                        "payUrl": "https://checkout.example.invalid/demo",
                        "sessionId": "cs_DEMO_SESSION",
                        "clientSecret": "DEMO_VALUE",
                        "currency": "USD",
                        "countryCode": "US",
                        "successUrl": "DEMO_VALUE",
                        "airwallexEnv": "DEMO_VALUE",
                        "status": 0,
                        "payMessage": "checkout_created"
                      }
                    }
                  },
                  "example_4": {
                    "summary": "业务失败（示例，msg 以实际返回为准）",
                    "value": {
                      "code": 500,
                      "msg": "余额不足"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "鉴权失败（公共错误形状）",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "number"
                    },
                    "msg": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "example_3": {
                    "summary": "鉴权失败（公共错误形状）",
                    "value": {
                      "code": 401,
                      "msg": "认证失败，请重新登录或检查商户密钥"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "payment": {
                    "type": "string"
                  }
                }
              },
              "example": {
                "payment": "BALANCE"
              }
            }
          }
        }
      }
    },
    "/client/ip/pool/subnets": {
      "get": {
        "operationId": "get-client-static-pool-subnets",
        "summary": "查询本人可用静态IP号段（全部线路）",
        "tags": [
          "static"
        ],
        "description": "三种静态线路共用本接口。poolId 必须来自上一步的 id。管理员须在用户管理或商户管理中开启“号段权限”；未开启返回HTTP403且不含号段列表。只返回该账户在该资源池可用的 /24 号段及数量，不返回其他客户信息或连接账密。不要传merchantId冒充客户身份。",
        "security": [
          {
            "merchantCode": [],
            "merchantToken": []
          },
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "poolId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "已授权客户的可用号段",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer"
                    },
                    "msg": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "poolId": {
                          "type": "integer"
                        },
                        "type": {
                          "type": "integer",
                          "enum": [
                            0,
                            1,
                            3
                          ]
                        },
                        "subnetSelectionEnabled": {
                          "type": "boolean"
                        },
                        "subnets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "cidr": {
                                "type": "string",
                                "pattern": "^(?:[0-9]{1,3}\\.){3}0/24$"
                              },
                              "availableIps": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "carrier": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "code": 200,
                  "msg": "操作成功",
                  "data": {
                    "poolId": 9001,
                    "type": 3,
                    "subnetSelectionEnabled": true,
                    "subnets": [
                      {
                        "cidr": "198.51.100.0/24",
                        "availableIps": 8,
                        "carrier": ""
                      },
                      {
                        "cidr": "203.0.113.0/24",
                        "availableIps": 2,
                        "carrier": ""
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "未认证；也可能以HTTP200、业务code401返回"
          },
          "403": {
            "description": "未开通号段权限，不返回号段列表"
          }
        }
      }
    }
  }
}
