getting the customer pricing 获取客户信息cdn.cn.resellerclub.com/api接口开发指南/5...

32
获取客户价格信息 目录 [ Hide ] 1. 描述 2. 参数 3. HTTP 4. 测试 URL 请求范例 5. 返回值 描述 Top 获取普通客户的价格或指定客户的成本价 参数 Top 名称 数据类型 必填 / 可选 描述 auth-userid 整数 必填 验证参数 代理商 ID api-key 字符串 必填 验证参数 API KEY customer-id 整数 可选 需要检索价格的客户 ID。默认情况下,获取普通客户的价格。 HTTP 方法 Top GET 测试 URL 请求范例 Top https://test.httpapi.com/api/products/customer-price.json?auth-userid=0&api-key=key 返回值 Top 返回值包含普通客户价格或者指定客户的成本价。返回值的结构为: 域名(顶级域名) "productkey": { "action-name": { "tenure-in-years":"price"

Upload: others

Post on 14-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

获取客户价格信息

目录 [Hide]

1. 描述

2. 参数

3. HTTP 方法

4. 测试 URL请求范例

5. 返回值

描述 Top

获取普通客户的价格或指定客户的成本价

参数 Top

名称 数据类型 必填 / 可选 描述

auth-userid 整数 必填 验证参数 代理商 ID

api-key 字符串 必填 验证参数 API KEY

customer-id 整数 可选 需要检索价格的客户 ID。默认情况下,获取普通客户的价格。

HTTP 方法 Top

GET

测试 URL请求范例 Top

https://test.httpapi.com/api/products/customer-price.json?auth-userid=0&api-key=key

返回值 Top

返回值包含普通客户价格或者指定客户的成本价。返回值的结构为:

域名(顶级域名)

"productkey":

{

"action-name":

{

"tenure-in-years":"price"

Page 2: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

Example:

"dotnet":

{

"addtransferdomain":

{

"1":"0.0"

},

"restoredomain":

{

"1":"0.0"

},

"addnewdomain":

{

"1":"0.0"

},

"renewdomain":

{

"1":"0.0"

}

}

Web Services

"hosting":

{

"planid":

{

"action":

{

Page 3: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"tenure-in-months":price

},

"ssl":0.0

}

}

Example:

"hosting":

{

"0":

{

"renew":

{

"12":0.0,

"24":0.0

},

"ssl":0.0,

"add":

{

"12":0.0,

"24":0.0

}

},

"1":

{

"renew":

{

"12":0.0,

"24":0.0

},

"add":

{

Page 4: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"12":0.0,

"24":0.0

}

}

}

Single Domain Linux Hosting

"productkey":

{

"planid":

{

"action":

{

"tenure-in-months":price

},

"ssl":price

}

}

Example:

US Server

"singledomainhostinglinuxus":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

Page 5: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

UK Server

"singledomainhostinglinuxuk":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

Page 6: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

India Server

"singledomainhostinglinuxin":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

Page 7: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

Single Domain Windows Hosting

"productkey":

{

"planid":

{

"action":

{

"tenure-in-months":price

},

"ssl":price

Page 8: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

Example:

US Server

"singledomainhostingwindowsus":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

Page 9: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

}

UK Server

"singledomainhostingwindowsuk":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

Page 10: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

}

India Server

"singledomainhostingwindowsin":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

Page 11: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

}

Multi Domain Linux Hosting

"productkey":

{

"planid":

{

"action":

{

"tenure-in-months":price

},

"ssl":price

}

}

Example:

US Server

"multidomainhosting":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

Page 12: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

UK Server

"multidomainhostinglinuxuk":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

Page 13: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

India Server

"multidomainhostinglinuxin":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

Page 14: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

Multi Domain Windows Hosting

"productkey":

{

"planid":

{

"action":

{

"tenure-in-months":price

},

"ssl":price

}

}

Page 15: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

Example:

US Server

"multidomainwindowshosting":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

Page 16: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

UK Server

"multidomainwindowshostinguk":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

Page 17: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

India Server

"multidomainwindowshostingin":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

Page 18: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

Reseller Linux Hosting

"productkey":

{

"planid":

{

"action":

{

"tenure-in-months":price

},

"ssl":price

}

}

Example:

US Server

"resellerhosting":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

Page 19: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

UK Server

"resellerhostinglinuxuk":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

Page 20: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

India Server

"resellerhostinglinuxin":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

Page 21: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

Reseller Windows Hosting

"productkey":

{

"planid":

{

"action":

{

"tenure-in-months":price

},

"ssl":price

}

}

Example:

Page 22: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

US Server

"resellerwindowshosting":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

UK Server

Page 23: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"resellerwindowshostinguk":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

India Server

Page 24: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"resellerwindowshostingin":

{

"1":

{

"renew":

{

"3":0.0,

"12":0.0

},

"ssl":0.0,

"add":

{

"3":0.0,

"12":0.0

}

},

"2":

{

"renew":

{

"3":0.0,

"12":0.0

},

"add":

{

"3":0.0,

"12":0.0

}

}

}

VPS Linux

Page 25: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"productkey":

{

"addons":

{

"addon1-name":price,

"addon2-name":price

},

"plans":

{

"planid":

{

"action":

{

"tenure-in-months":price

},

}

}

}

Example:

"vpslinuxus":

{

"addons":

{

"ssl":0.0,

"cpanel":0.0,

"whmcs":0.0

},

"plans":

{

"1":

{

Page 26: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"renew":

{

"1":0.0

},

"add":

{

"1":0.0

}

},

"2":

{

"renew":

{

"1":0.0

},

"add":

{

"1":0.0

}

}

}

}

Dedicated Server Linux

"productkey":

{

"addons":

{

"addon1-name":price,

"addon2-name":price

},

"plans":

Page 27: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

{

"planid":

{

"action":

{

"tenure-in-months":price

},

}

}

}

Example:

"dedicatedserverlinuxus":

{

"addons":

{

"storage_1":0.0,

"cpanel":0.0,

"whmcs":0.0,

"ipaddress":0.0,

"storage_5":0.0,

"storage_4":0.0,

"storage_3":0.0,

"storage_2":0.0

},

"plans":

{

"105":

{

"renew":

{

"1":0.0

Page 28: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

},

"add":

{

"1":0.0

}

},

"106":

{

"renew":

{

"1":0.0

},

"add":

{

"1":0.0

}

}

}

}

Digital Certificates

"productkey":

{

"slab-order":

{

"pricing":

{

"certtype":

{

"action":

{

"tenure-in-years":"price"

Page 29: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

}

}

}

"category":

{

"slab-category":

{

"name":"category-name",

"quantity":"category-quantity"

}

}

}

}

Example:

"thawtecert":

{

"0":

{

"pricing":

{

"ssl":

{

"renew":

{

"2":"200.0",

"1":"100.0"

},

"add":

{

"2":"200.0",

"1":"100.0"

Page 30: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

},

"additionallicense":

{

"2":"100.0",

"1":"100.0"

}

}

"fssl":

{

"renew":

{

"2":"200.0",

"1":"100.0"

},

"add":

{

"2":"200.0",

"1":"100.0"

},

"additionallicense":

{

"2":"100.0",

"1":"100.0"

}

}

"wild":

{

"renew":

{

"2":"200.0",

"1":"100.0"

},

"add":

Page 31: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

{

"2":"200.0",

"1":"100.0"

},

"additionallicense":

{

"2":"100.0",

"1":"100.0"

}

}

"sgc":

{

"renew":

{

"2":"200.0",

"1":"100.0"

},

"add":

{

"2":"200.0",

"1":"100.0"

},

"additionallicense":

{

"2":"100.0",

"1":"100.0"

}

}

}

"category":

{

"category2":

{

Page 32: Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5 常规/5-1 价格/5-1-1... · 获取客户价格信息 目录[Hide] 1.描述 2.参数

"name":"receipts",

"quantity":"0.0"

},

"category1":

{

"name":"hosting",

"quantity":"0.0"

}

}

}

}