菜单

云号码套餐详情

使用说明

获取云号码购买套餐详情。

请求说明

POST /api/v1/cloudNumber/purchasePackage

请求参数

返回参数

参数 类型 说明
type integer 号码类型:1 实体号,0 虚拟号
name string 号码类型名称
country array 当前号码类型支持的国家/地区列表

country

参数 类型 说明
region string 国家/地区编码,例如 US、GB
name string 国家/地区名称
durations array 该类型、国家下可购买的时长套餐

durations

参数 类型 说明
name string 套餐时长名称
days integer 套餐购买时长,单位为天
gif_days integer 套餐固定赠送天数
random_gif_days integer 随机赠送天数配置,例如 0-3;空字符串则表示没有
is_special_offer integer 是否为特价套餐:1 是,0 否
price number 套餐售价,不包含开卡费
card_price number 开卡费
total_price number 单个号码首购总价

返回示例

json 复制代码
{
    "code": 200,
    "data": [
        {
            "type": 0,
            "name": "虚拟号码",
            "country": [
                {
                    "region": "US",
                    "name": "美国",
                    "durations": [
                        {
                            "name": "30天",
                            "days": 30,
                            "gif_days": 0,
                            "random_gif_days": "25-50",
                            "is_special_offer": 0,
                            "price": 4.9,
                            "card_price": 0,
                            "total_price": 4.9
                        }
                    ]
                }
            ]
        },
        {
            "type": 1,
            "name": "实体号码",
            "country": [
                {
                    "region": "US",
                    "name": "美国",
                    "durations": [
                        {
                            "name": "29天",
                            "days": 29,
                            "gif_days": 0,
                            "random_gif_days": "",
                            "is_special_offer": 1,
                            "price": 13.47,
                            "card_price": 0,
                            "total_price": 13.47
                        },
                        {
                            "name": "30天",
                            "days": 30,
                            "gif_days": 0,
                            "random_gif_days": "",
                            "is_special_offer": 0,
                            "price": 19.9,
                            "card_price": 2.9,
                            "total_price": 22.8
                        },
                        {
                            "name": "360天",
                            "days": 365,
                            "gif_days": 5,
                            "random_gif_days": "",
                            "is_special_offer": 0,
                            "price": 191.04,
                            "card_price": 2.9,
                            "total_price": 193.94
                        }
                    ]
                }
            ]
        }
    ],
    "message": "Success"
}
上一个
云号码短信查询
下一个
购买套餐时长详情
最近修改: 2026-08-24Powered by