API Key & Notification Key的获取请通过Cube平台自助操作,详见说明文档
action_code | 说明 |
---|---|
50 | SIM卡划拨 |
20 | Suspend |
12 | Resume |
11 | Activate |
22 | Cancel |
14 | Restore |
40 | Reinitalize |
15 | Add bundle |
result | 说明 |
---|---|
20 | 划拨成功 |
14 | SIM不属于调用 API 的组织或其下级组织,划拨失败 |
15 | SIM状态为废弃期,无法划拨,划拨失败 |
16 | SOW中约定不可划拨,划拨失败 |
17 | SIM不存在,划拨失败 |
18 | SIM结算组织于目标组织不一致,划拨失败 SIM 卡的当前结算组织与目标结算组织不一致,划拨失败。 |
result | 说明 |
---|---|
10 | 成功 |
11 | 处理中 |
12 | 失败 |
13 | cancel接口keep-alive参数设置为true,但无可启用的套餐(合约) |
PartnerClient client = new PartnerClient(accessKey,privateKey)
client.v1().other().asyncResult(new AsyncResult(1, "1600331121353297920"));
client.v2().other().asyncResult(new AsyncResult(1, "1600331121353297920"));