public interface WxCpTpLicenseService
服务商接口调用许可相关接口 文档地址:https://developer.work.weixin.qq.com/document/path/95652
| 限定符和类型 | 方法和说明 | 
|---|---|
| WxCpBaseResp | activeCode(String code,
          String corpId,
          String userId)激活账号
 下单购买账号并支付完成之后,先调用获取订单中的账号列表接口获取到账号激活码,
 然后可以调用该接口将激活码绑定到某个企业员工,以对其激活相应的平台服务能力。 | 
| WxCpTpLicenseBatchActiveResultResp | batchActiveCode(String corpId,
               List<WxCpTpLicenseActiveAccount> activeAccountList)批量激活账号
 可在一次请求里为一个企业的多个成员激活许可账号,便于服务商批量化处理。 | 
| WxCpTpLicenseBatchCodeInfoResp | batchGetActiveInfoByCode(Collection<String> codes,
                        String corpId)获取激活码详情
 查询某个账号激活码的状态以及激活绑定情况。 | 
| WxCpTpLicenseBatchTransferResp | batchTransferLicense(String corpId,
                    List<WxCpTpLicenseTransfer> transferList)账号继承
 在企业员工离职或者工作范围的有变更时,允许将其许可账号继承给其他员工。 | 
| WxCpTpLicenseCreateOrderResp | createNewOrder(WxCpTpLicenseNewOrderRequest licenseNewOrderRequest)下单购买账号
 服务商下单为企业购买新的账号,可以同时购买基础账号与互通账号。 | 
| WxCpTpLicenseRenewOrderJobResp | createRenewOrderJob(WxCpTpLicenseRenewOrderJobRequest licenseRenewOrderJobRequest)创建下单续期账号任务
 
  可以下单为一批已激活账号的成员续期,续期下单分为两个步骤:
 传入userid列表创建一个任务,创建之后,可以往同一个任务继续追加待续期的userid列表;
 根据步骤1得到的jobid提交订单。 | 
| WxCpTpLicenseCodeInfoResp | getActiveInfoByCode(String code,
                   String corpId)获取激活码详情
 查询某个账号激活码的状态以及激活绑定情况。 | 
| WxCpTpLicenseActiveInfoByUserResp | getActiveInfoByUser(String corpId,
                   String userId)获取成员的激活详情
 查询某个企业成员的激活情况。 | 
| WxCpTpLicenseCorpAccountListResp | getCorpAccountList(String corpId,
                  int limit,
                  String cursor)获取企业的账号列表
 查询指定企业下的平台能力服务账号列表。 | 
| WxCpTpLicenseOrderAccountListResp | getOrderAccountList(String orderId,
                   int limit,
                   String cursor)查询指定订单下的平台能力服务账号列表。 | 
| WxCpTpLicenseOrderInfoResp | getOrderInfo(String orderId)获取订单详情
 查询某个订单的详情,包括订单的状态、基础账号个数、互通账号个数、账号购买时长等。 | 
| WxCpTpLicenseOrderListResp | getOrderList(String corpId,
            Date startTime,
            Date endTime,
            String cursor,
            int limit)获取订单列表
 服务商查询自己某段时间内的平台能力服务订单列表
 文档地址:https://developer.work.weixin.qq.com/document/path/95647 | 
| WxCpTpLicenseCreateOrderResp | submitRenewOrder(WxCpTpLicenseRenewOrderRequest licenseRenewOrderRequest)提交续期订单
 创建续期任务之后,需要调用该接口,以提交订单任务。 | 
WxCpTpLicenseCreateOrderResp createNewOrder(WxCpTpLicenseNewOrderRequest licenseNewOrderRequest) throws WxErrorException
licenseNewOrderRequest - 订单信息WxErrorException - ;WxCpTpLicenseRenewOrderJobResp createRenewOrderJob(WxCpTpLicenseRenewOrderJobRequest licenseRenewOrderJobRequest) throws WxErrorException
可以下单为一批已激活账号的成员续期,续期下单分为两个步骤: 传入userid列表创建一个任务,创建之后,可以往同一个任务继续追加待续期的userid列表; 根据步骤1得到的jobid提交订单。
licenseRenewOrderJobRequest - 续费订单信息WxErrorException - ;WxCpTpLicenseCreateOrderResp submitRenewOrder(WxCpTpLicenseRenewOrderRequest licenseRenewOrderRequest) throws WxErrorException
licenseRenewOrderRequest - 订单信息WxErrorException - ;WxCpTpLicenseOrderListResp getOrderList(String corpId, Date startTime, Date endTime, String cursor, int limit) throws WxErrorException
corpId - 企业IDstartTime - 开始时间,下单时间。可不填。但是不能单独指定该字段,start_time跟end_time必须同时指定。endTime - 结束时间,下单时间。起始时间跟结束时间不能超过31天。可不填。但是不能单独指定该字段,start_time跟end_time必须同时指定。cursor - 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用可不填limit - 返回的最大记录数,整型,最大值1000,默认值500WxErrorException - ;WxCpTpLicenseOrderInfoResp getOrderInfo(String orderId) throws WxErrorException
orderId - 订单IDWxErrorException - ;WxCpTpLicenseOrderAccountListResp getOrderAccountList(String orderId, int limit, String cursor) throws WxErrorException
orderId - 订单IDlimit - 大小cursor - 分页游标WxErrorException - ;WxCpBaseResp activeCode(String code, String corpId, String userId) throws WxErrorException
code - 激活码corpId - 企业IDuserId - 用户IDWxErrorException - ;WxCpTpLicenseBatchActiveResultResp batchActiveCode(String corpId, List<WxCpTpLicenseActiveAccount> activeAccountList) throws WxErrorException
corpId - 企业IDactiveAccountList - 激活列表WxErrorException - ;WxCpTpLicenseCodeInfoResp getActiveInfoByCode(String code, String corpId) throws WxErrorException
code - 激活码corpId - 企业IDWxErrorException - ;WxCpTpLicenseBatchCodeInfoResp batchGetActiveInfoByCode(Collection<String> codes, String corpId) throws WxErrorException
codes - 激活码corpId - 企业IDWxErrorException - ;WxCpTpLicenseCorpAccountListResp getCorpAccountList(String corpId, int limit, String cursor) throws WxErrorException
corpId - 企业IDlimit - 大小cursor - 游标WxErrorException - the wx error exceptionWxCpTpLicenseActiveInfoByUserResp getActiveInfoByUser(String corpId, String userId) throws WxErrorException
corpId - 企业IDuserId - 用户IDWxErrorException - ;WxCpTpLicenseBatchTransferResp batchTransferLicense(String corpId, List<WxCpTpLicenseTransfer> transferList) throws WxErrorException
corpId - 企业IDtransferList - 转移列表WxErrorException - ;Copyright © 2024. All rights reserved.