Getting the Customer Pricing 获取客户信息cdn.cn.resellerclub.com/API接口开发指南/5...

Post on 14-Jun-2020

0 views 0 download

transcript

获取客户价格信息

目录 [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"

}

}

Example:

"dotnet":

{

"addtransferdomain":

{

"1":"0.0"

},

"restoredomain":

{

"1":"0.0"

},

"addnewdomain":

{

"1":"0.0"

},

"renewdomain":

{

"1":"0.0"

}

}

Web Services

"hosting":

{

"planid":

{

"action":

{

"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":

{

"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,

"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,

"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,

"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

}

}

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

}

}

}

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

}

}

}

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

}

}

}

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":

{

"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":

{

"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":

{

"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

}

}

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

}

}

}

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

}

}

}

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

}

}

}

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,

"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,

"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,

"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:

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

"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

"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

"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":

{

"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":

{

"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

},

"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"

}

}

}

"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"

},

"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":

{

"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":

{

"name":"receipts",

"quantity":"0.0"

},

"category1":

{

"name":"hosting",

"quantity":"0.0"

}

}

}

}