===== Client充值 ===== 通过HTTPS POST方式提交充值请求,云之讯融合通讯开放平台收到请求后,返回Client充值结果。 ==== 1.1 请求 ==== **请求地址** /{SoftVersion}/Accounts/{accountSid}/chargeClient **请求包头** 详情请查阅统一请求包头,并使用开发者账号进行验证。 **请求包体** ^属性 ^类型 ^约束 ^说明 | |appId |String |必选 |应用Id| |clientNumber |String |必选 |clientNumber账号| |chargeType |String |必选 |0 充值;1 回收。| |charge |String |必选 |充值或回收的金额。| **XML请求示例** POST/2014-06-30/Accounts/e03bc9106c6ed0eaebfce8c368fdcd48/chargeClient.xml?sig=7026AE218B34FA76644DFC43BC3EB630 Host:api.ucpaas.com Accept:application/xml Content-Type:application/xml;charset=utf-8 Authorization:ZTAzYmM5MTA2YzZlZDBlYWViZmNlOGMzNjhmZGNkNDg6MjAxNDA2MjMxODI5NTA= 66807000020850 1 1 e462aba25bc6498fa5ada7eefe1401b7 **JSON请求示例** POST/2014-06-30/Accounts/e03bc9106c6ed0eaebfce8c368fdcd48/chargeClient?sig=77AF046725D906A133D05693553FA84A Host:api.ucpaas.com Accept:application/json Content-Type:application/json;charset=utf-8 Authorization:ZTAzYmM5MTA2YzZlZDBlYWViZmNlOGMzNjhmZGNkNDg6MjAxNDA2MjMxODI5MDM= { "client" : { "clientNumber" : "66807000020850", "appId" : "e462aba25bc6498fa5ada7eefe1401b7", "charge" : "1", "chargeType" : "1" } } ==== 1.2 响应 ==== **响应包体** ^属性 ^类型 ^约束 ^说明 | |respCode |String |必选 |请求状态码,取值000000(成功)| **XML响应示例** 000000 **JSON响应示例** { "resp" : { "respCode" : "000000" } }