创建账户

接口地址
https://api3.verycloud.cn/API/profile/register
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
username string 用户名
password string 密码
confirm_password string 重复密码
mail string 邮箱地址
phone string 手机号码
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/register 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"username": "example_user", "password": "12345678", "confirm_password": "12345678", "mail": "example_user@verycloud.cn", "phone": "13545678945"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data":{
         "uid": 1234567890,
         "name": "example_user",
         "mail": "example_user@verycloud.cn",
         "phone": "13545678945" ,
        
    }    
}

获取token

接口地址
https://api3.verycloud.cn/API/OAuth/authorize
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
username string 用户名
password string 密码的编码方式请联系QQ4000051023获取
请求示例
curl -i -X POST https://api3.verycloud.cn/API/OAuth/authorize 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"username": "example user", "password": "encrypt password"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "access_token": "6375710ffd834236652d044776303a4c",
     "expires": 1426473466
}

个人资料

接口地址
https://api3.verycloud.cn/API/profile/detail
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/detail 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "uid": "1234566894",
         "name": "example_user",
         "mail": "example_user@verycloud.cn",
         "status": "1",
         "profile": {
             "picture": "http://manage.verycloud.cn/sites/default/files/styles/thumbnail/public/pictures/picture-6894-1425368210.jpg",
             "contactname": "example_user",
             "phone": "13584145363",
             "tel": "0510-86991216",
             "fax": "0510-86991216",
             "card": "320219198509036295",
             "address": "江苏无锡",
             "company": "云端网络",
             "website": "www.verycloud.cn",
             "qq": "110",
             "other_mail": "",
             "other_phone": "",
             "daily_report": "1",
             "month_report": "0",
             "week_report": "1"
        },
         "balance": {
             "price": "29122.0219",
             "status": "1",
             "alarm": "1",
             "alarm_num": "1",
             "send_num": "0",
             "alarm_value": "300.00",
            
        },
         "couponprice": "0.0000",
         "subaccounts": [
             {
                 "uid": "1234566895",
                 "name": "example_subuser",
                 "mail": "example_subuser@verycloud.cn",
                 "status": "1",
                 "profile": {
                     "picture": "",
                     "contactname": "",
                     "phone": "13584145365",
                     "verify_phone": "0",
                     "verify_mail": "0",
                     "tel": "",
                     "fax": "",
                     "card": "",
                     "address": "",
                     "company": "",
                     "industry": "0",
                     "apptype": "a:0:{}",
                     "business": "",
                     "website": "",
                     "qq": "",
                     "other_mail": "",
                     "other_phone": "",
                     "daily_report": "0",
                     "month_report": "0",
                     "week_report": "0"
                },
                 "couponprice": "0.0000",
                 "gid": "144"
            }            
        ]        
    }    
}

更新资料

接口地址
https://api3.verycloud.cn/API/profile/update
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
tel string 联系电话
fax string 传真
card string 身份证号
address string 通讯地址
company string 公司名称
business string 主营业务
website string 网址
contactname string 联系人姓名
qq int QQ
recieve_mail int 是否接收邮件 1 是 0 否
recieve_sms int 是否接收短信 1 是 0 否
other_mail string 其他邮件地址 多个用,隔开
other_phone string 其他手机,多个用,隔开
daily_report int 是否发送日报 0 不发送 1发送
week_report int 是否发送周报 0 不发送 1发送
month_report int 是否发送月报 0 不发送 1发送
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/update 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "tel": "051086994256", "recieve_sms": 1}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "phone": "13584145363",
        
    }    
}

修改头像

接口地址
https://api3.verycloud.cn/API/profile/pictureUpdate
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
picture string 头像地址
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/pictureUpdate 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "picture": "https://manage.verycloud.cn/sites/default/files/styles/thumbnail/public/pictures/picture-6894-1425368210.jpg"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "picture": "https://manage.verycloud.cn/sites/default/files/styles/thumbnail/public/pictures/picture-6894-1425368210.jpg",
        
    }    
}

修改密码

接口地址
https://api3.verycloud.cn/API/profile/passwordUpdate
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
old_password string 原来的密码
new_password string 新密码
new_password2 string 重复新密码
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/passwordUpdate 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "new_password": "2321234", "new_password2": "2321234"}'
响应示例
{
     "code": 1,
     "message": "操作完成"
}

修改邮箱

接口地址
https://api3.verycloud.cn/API/profile/mailUpdate
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
mail string 邮箱
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/mailUpdate 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "mail": "test@verycloud.cn"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "mail": "test@verycloud.cn",
        
    }    
}

修改手机

接口地址
https://api3.verycloud.cn/API/profile/phoneUpdate
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
phone string 手机
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/phoneUpdate 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "phone": "13511111111"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "phone": "13511111111",
        
    }    
}

子账号列表

接口地址
https://api3.verycloud.cn/API/profile/subaccountList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
page int 页码
limit int 每页条数
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/subaccountList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "page": 1, "limit": 30}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "uid": "7002123456",
             "name": "example_user",
             "mail": "example_user@qq.com",
             "created": "2015-03-19 13:21",
             "picture": "",
             "contactname": "",
             "phone": "13863536426",
             "verify_phone": "0",
             "verify_mail": "0",
             "tel": "",
             "fax": "",
             "card": "",
             "address": "",
             "company": "",
             "industry": "0",
             "apptype": "a:0:{}",
             "business": "",
             "website": "",
             "qq": "",
             "recieve_mail": "0",
             "recieve_sms": "0",
             "platform": "1",
             "updatetime": "2015/03/19 13:21",
             "updatetime_ago": "14分钟前",
             "other_mail": "",
             "platform_zh": "VeryCloud",
             "group": {
                 "id": "1441234567",
                 "uid": "1234567890",
                 "name": "测试组",
                 "note": "测试组",
                 "created": "1422081708"
            },
             "gid": "144",
             "status": "1"
        }        
    ],
     "total": 1,
     "totalpage": 1
}

创建子账号

接口地址
https://api3.verycloud.cn/API/profile/subaccountAdd
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
uid int 用户ID,为空表示创建,不为空表示修改
username string 用户名
password string 密码
password2 string 重复密码
mail string 邮箱地址
phone string 手机号码
gid int 子账号组ID
cdnconfig array 加速类型 [{type: "cloud", billtype: "tx4d"}, {type: "rtmp", billtype: "tx4d"}]
status int 状态 0禁用 1启用
tel string 联系电话
fax string 传真
card string 身份证号
address string 通讯地址
company string 公司名称
contactname string 联系人姓名
qq int QQ
recieve_mail string 是否接收邮件 1 是 0 否
recieve_sms string 是否接收短信 1 是 0 否
other_mail string 其他邮件地址 多个用,隔开
other_phone string 其他手机,多个用,隔开
daily_report string 是否发送日报 0 不发送 1发送
week_report string 是否发送周报 0 不发送 1发送
month_report string 是否发送月报 0 不发送 1发送
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/update 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "username": "example_user", "password": "12345678", "password2": "12345678", "mail": "example_user@verycloud.cn", "phone": "13545678945", "gid": 123, "status": 1}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "uid": "7002123456",
         "name": "example_user",
         "mail": "example_user@verycloud.cn",
         "phone": "13545678945"
    }    
}

更新子账号权限

接口地址
https://api3.verycloud.cn/API/profile/subaccountPerm
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
uid int 子账号ID
perms array 权限,例如:{'1': [1,2,3], '2': [3,4,5], '3': [7,8,9]}
类型包括:1 云主机 2 云硬盘 3 安全组 4 私有网络 5 云分发 6 云dns
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/subaccountPerm 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "uid": 1234567890, "perms": {"1": [1,2,3], "2": [3,4,5]}}'
响应示例
{
     "code": 1,
     "message": "操作完成",
    
}

子账号组列表

接口地址
https://api3.verycloud.cn/API/profile/groupList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
name string 子账号组名称
page int 页码
limit int 每页条数
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "page": 1, "limit": 30}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "username": "example_user",
             "id": "1441234567",
             "name": "测试组",
             "uid": "6894123456",
             "note": "测试组",
             "created": "2015/01/24 14:41",
             "created_ago": "1月前"
        },
         {
             "username": "example_user",
             "id": "1451234567",
             "name": "测试组2",
             "uid": "6894123456",
             "note": "测试组2",
             "created": "2014/12/11 9:58",
             "created_ago": "3月前"
        }        
    ]    
}

创建子账号组

接口地址
https://api3.verycloud.cn/API/profile/groupAdd
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
name string 子账号组名称
note string 备注
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupAdd 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "name": "测试组", "note": "测试组"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "id": "1571234567",
         "uid": "6894123456",
         "name": "测试组",
         "note": "测试组",
         "created": "1426744428"
    }    
}

更新子账号组

接口地址
https://api3.verycloud.cn/API/profile/groupUpdate
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
id int 子账号组ID
name string 子账号组名称
note string 备注
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupUpdate 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1571234567, name": "测试组", "note": "测试组"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "id": "1571234567",
         "uid": "6894123456",
         "name": "测试组",
         "note": "测试组",
         "created": "1426744428"
    }    
}

删除子账号组

接口地址
https://api3.verycloud.cn/API/profile/groupDelete
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
id int 子账号组ID
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupDelete 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1571234567}'
响应示例
{
     "code": 1,
     "message": "操作完成",
    
}

子账号组权限URL

接口地址
https://api3.verycloud.cn/API/profile/groupPermissions
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupPermissions 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "cloud_cdn": {
             "module": "cloud_cdn",
             "name": "CDN",
             "subs": {
                 "API/cdn/domainList": "频道列表",
                 "API/cdn/domainAdd": "新增频道"
            }            
        }        
    }    
}

子账号组权限列表

接口地址
https://api3.verycloud.cn/API/profile/groupRoleList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
gid int 子账号组ID
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupRoleList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "gid": 1571234567}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "id": "7448123456",
             "group": {
                 "id": "1571234567",
                 "uid": "6894123456",
                 "name": "测试组",
                 "note": "测试组",
                 "created": "1422081708"
            },
             "value": "API/instance/cloudDiskAdd",
             "created": "2015/01/20 13:00",
             "created_ago": "1月前"
        },
         {
             "id": "7412123456",
             "group": {
                 "id": "1571234567",
                 "uid": "6894123456",
                 "name": "测试组",
                 "note": "测试组",
                 "created": "1422081708"
            },
             "value": "API/instance/cloudDiskList",
             "created": "2015/01/07 10:28",
             "created_ago": "2月前"
        },
        
    ]    
}

创建子账号组权限

接口地址
https://api3.verycloud.cn/API/profile/groupRoleAdd
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
gid int 子账号组ID
value array 权限
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupRoleAdd 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "gid": 1571234567, "value": ["API/instance/cloudDiskList", "API/instance/cloudDiskAdd"]}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "id": "7448123456",
             "gid": 1234567890 "value": "API/instance/cloudDiskAdd",
             "created": "2015/01/20 13:00",
             "created_ago": "1月前"
        },
         {
             "id": "7412123456",
             "gid": 1234567890 "value": "API/instance/cloudDiskList",
             "created": "2015/01/07 10:28",
             "created_ago": "2月前"
        },
        
    ]    
}

更新子账号组权限

接口地址
https://api3.verycloud.cn/API/profile/groupRoleUpdate
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
id int 子账号组权限ID
gid int 子账号组ID
value string 权限
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupRoleUpdate 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": 1571234567, "API/instance/cloudDiskList"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "id": "7448123456",
         "gid": 1234567890 "value": "API/instance/cloudDiskAdd",
         "created": "2015/01/20 13:00",
         "created_ago": "1月前"
    }    
}

删除子账号组权限

接口地址
https://api3.verycloud.cn/API/profile/groupRoleDelete
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
id array 子账号组权限ID
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/groupRoleDelete 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "id": [7448123456]}'
响应示例
{
     "code": 1,
     "message": "操作完成"
}

充值列表

接口地址
https://api3.verycloud.cn/API/profile/rechargeList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
id int 充值记录ID
type int 类型 1支付宝 2网银 3线下转账 4系统充值 5邀请
page int 页码
limit int 每页条数
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/rechargeList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "page": 1, "limit": 30}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "id": "2331234567",
             "name": "充值",
             "uid": "6894123456",
             "price": "1000.00",
             "code": "20150317150637485662",
             "type_zh": "线下转账",
             "status": "1",
             "createtime": "2015/03/17 15:06",
             "createtime_ago": "1天前"
        }        
    ],
     "total": "1",
     "totalpage": 1
}

账户余额

接口地址
https://api3.verycloud.cn/API/profile/balance
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/balance 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "price": "750.6346"
        }        
    ],
     "total": "1"
}

余额预警设置

接口地址
https://api3.verycloud.cn/API/profile/balanceAlarm
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
alarm int 是否预警 0 否 1 是
alarm_num int 预警次数
alarm_value decimal 预警阀值
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/balanceAlarm 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "alarm": 1, "alarm_num": 3, "alarm_value": 300}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "alarm": "1",
         "alarm_num": "1",
         "alarm_value": "300.00",
        
    }    
}

消费列表

接口地址
https://api3.verycloud.cn/API/profile/payList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
type int 消费类型 1消费 2退款 3发票款 4代金券
paytype int 类型 1云主机 2云硬盘 3云主机备份 5云分发 6云分发流量包 7云DNS 8 其它 9物理云主机
bid int 业务ID(如DNS ID, 云主机ID,云分发ID)
page int 页码
limit int 每页条数
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/payList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "page": 1, "limit": 30}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "id": "1081361123",
             "uid": "6894123456",
             "name": "i-230x2mmn",
             "code": "20150319150000447822",
             "type_zh": "消费",
             "paytype_zh": "云主机",
             "price": "0.4395",
             "status": "1",
             "created": "2015/03/19 15:00",
             "created_ago": "13分钟前"
        }        
    ],
     "total": "130667",
     "totalpage": 4356
}

发票列表

接口地址
https://api3.verycloud.cn/API/profile/invoiceList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
page int 页码
limit int 每页条数
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/invoiceList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "page": 1, "limit": 30}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "id": "3212345678",
             "uid": "6894123456",
             "title": "发票申请",
             "price": "200.00",
             "type": "1",
             "invoicetype": "1",
             "status": "3",
             "expressname": "",
             "expresscode": "",
             "mailaddress": "地址",
             "content": "地址不正确",
             "created": "2014/12/31 17:12",
             "created_ago": "2月前"
        }        
    ],
     "total": "11",
     "totalpage": 1
}

发票申请

接口地址
https://api3.verycloud.cn/API/profile/invoiceApply
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
title string 抬头
price decimal 金额
type int 开具类型 1企业 2个人
invoicetype int 发票类型 1增值税专用发票 2增值税普通发票
registerno string 税务登记证号
bankname string 基本户开户银行名称
card string 基本户开户账号
address string 注册场所地址
tel string 注册固定电话
businesslicense string 营业执照复印件
taxcertificate string 税务登记证复印件
taxatorqual string 一般纳税人资格认证复印件
recipients string 收件人
mailaddress string 收件地址
phone string 联系方式
postcode string 邮编
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/invoiceApply 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "title":  "发票", "price": 200, "type": 2, "invoicetype": 2, "recipients": "test", "mailaddress": "地址", "phone": "13211111111", "postcode": 214400}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "id": "3512345678",
         "uid": "6894123456",
         "title": "发票",
         "price": "200.00",
         "type": "2",
         "invoicetype": "2",
         "registerno": "",
         "bankname": "",
         "card": "",
         "address": "",
         "tel": "",
         "businesslicense": "",
         "taxcertificate": "",
         "taxatorqual": "",
         "fees": "16.0000",
         "express": "10.00",
         "status": "1",
         "created": "1426750757",
         "expressname": "",
         "expresscode": "",
         "recipients": "test",
         "mailaddress": "地址",
         "phone": "13211111111",
         "postcode": "214400",
         "platform": "1",
         "content": null,
         "username": "test"
    }    
}

发票余额

接口地址
https://api3.verycloud.cn/API/profile/invoiceBalance
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/invoiceBalance 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "invoiceprice": 57300
    }    
}

代金券列表

接口地址
https://api3.verycloud.cn/API/profile/couponList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
couponid string 代金券编号
status int 代金券状态 0 未使用 1 已激活 2已使用 3 作废 4 过期
page int 页码
limit int 每页条数
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/couponList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "page": 1, "limit": 30}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "id": "4841234567",
             "uid": "6894123456",
             "couponid": "704c09edfa41e5cbb111965daf190ba5",
             "status": "2",
             "price": "100.0000",
             "priceover": "0.0000",
             "created": "2014/12/04 14:09",
             "created_ago": "3月前",
             "endtime": "2015/01/04 23:59"
        }        
    ],
     "total": "54",
     "totalpage": 2
}

领取代金券

接口地址
https://api3.verycloud.cn/API/profile/couponExchange
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
couponid string 代金券编号
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/couponExchange 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "couponid": "704c09edfa41e5cbb111965daf190ba5"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "name": "example_user",
         "price": "100.00"
    }    
}

代金券余额

接口地址
https://api3.verycloud.cn/API/profile/couponBalance
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/couponExchange 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": "1580.0000"
}

CDN套餐列表

接口地址
https://api3.verycloud.cn/API/cdn/flowPriceList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
请求示例
curl -i -X POST https://api3.verycloud.cn/API/cdn/flowPriceList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "id": "1",
             "type": "1",
             "lower": "0",
             "upper": "1000000000000",
             "price": "0.32",
             "created": "2015/01/26 11:01",
             "created_ago": "8月前",
             "updatetime": "2015/05/20 13:51",
             "updatetime_ago": "4月前"
        },
         {
             "id": "15",
             "type": "2",
             "lower": "0",
             "upper": "1000000000",
             "price": "1.20",
             "created": "2015/03/05 16:35",
             "created_ago": "6月前",
             "updatetime": "2015/03/26 15:36",
             "updatetime_ago": "6月前"
        }        
    ]    
}

流量包购买

接口地址
https://api3.verycloud.cn/API/cdn/payFlowAdd
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
flow int 流量 单位B
couponprice decimal 代金券金额
请求示例
curl -i -X POST https://api3.verycloud.cn/API/cdn/payFlowAdd 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "flow": 100000000}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "username": "testuser",
         "freeflowtotal": "50000000000",
         "freeflow": "0",
         "flow": "16088000000000"
    }    
}

流量消费列表

接口地址
https://api3.verycloud.cn/API/cdn/payFlowList
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
请求示例
curl -i -X POST https://api3.verycloud.cn/API/cdn/payFlowList 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "username": "verycloud",
             "id": "374487",
             "uid": "14976123456",
             "sub_uid": "0",
             "bid": "100004",
             "name": "购买1.00T流量包",
             "code": "20150828140403901430",
             "type": "1",
             "paytype": "2",
             "type_zh": "流量",
             "paytype_zh": "购买",
             "flowtype_zh": "购买流量包",
             "flow": "1000000000000",
             "flowover": "15088000000000",
             "monthflow": "0",
             "status": "1",
             "created": "2015/08/28 14:04",
             "created_ago": "1月前"
        },
         {
             "username": "verycloud",
             "id": "374486",
             "uid": "14976123456",
             "sub_uid": "0",
             "bid": "100004",
             "name": "购买1.00T流量包",
             "code": "20150828140403322596",
             "type": "1",
             "paytype": "2",
             "type_zh": "流量",
             "paytype_zh": "购买",
             "flowtype_zh": "购买流量包",
             "flow": "1000000000000",
             "flowover": "14088000000000",
             "monthflow": "0",
             "status": "1",
             "created": "2015/08/28 14:04",
             "created_ago": "1月前"
        }        
    ]    
}

流量余额

接口地址
https://api3.verycloud.cn/API/cdn/payFlowBalance
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
请求示例
curl -i -X POST https://api3.verycloud.cn/API/cdn/payFlowBalance 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60"}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": {
         "free": {
             "total": 100000000,
             "used": 0
        },
         "buy": {
             "total": 100000000,
             "used": 0
        },
         "month": {
             "total": 100000,
             "month": "201509"
        }        
    }    
}

日志列表

接口地址
https://api3.verycloud.cn/API/profile/logs
HTTP请求方式
POST
请求参数
名称 类型 必须 说明
token string 密钥
type int 类型 user 用户管理 finance 财务管理 instance 云主机 webcdn 云分发 dns 云DNS
start string 开始日期
end string 结束日期
page int 页码
limit int 每页条数
请求示例
curl -i -X POST https://api3.verycloud.cn/API/profile/logs 
 -H "Accept: application/json" 
 -H "Content-Type: application/json; charset=utf-8" 
 -d '{"token": "5d8531de68ae272eacb8670afe084d60", "page": 1, "limit": 20}'
响应示例
{
     "code": 1,
     "message": "操作完成",
     "data": [
         {
             "id": "7021234567",
             "uid": "6894123456",
             "type": "backup",
             "ip": "58.215.133.213",
             "op": "3",
             "title": "回收站还原",
             "content": "主机:i-l0cinjvx
备份:b_n22ovkdx",
             "created": "2015-03-19 11:11",
             "created_ago": "4小时前"
        }        
    ],
     "limit": 20,
     "page": 1,
     "total": 1,
     "totalpage": 1
}