文档

续费License

更新时间:

本接口用于无影应用中心通知ISV续费软件License。

接口说明

购买软件后,无影应用中心的用户可以进行续费,包括延长License的有效期,或者新增License包含的用户数量。

请求参数

名称

类型

是否必选

示例值

描述

action

String

RENEW_ORDER

请求操作类型。取值:RENEW_ORDER。

buyerId

Long

1234512345****

买家ID。

orderId

Long

54321*****

本次续费生成的订单ID。

lastOrderId

Long

12345*****

需要续费的订单ID。

请求示例如下:

{
   "action": "RENEW_ORDER",
   "buyerId": 1234512345****,
   "orderId": 54321*****,
   "lastOrderId": 12345*****
}

返回数据

名称

类型

示例值

描述

isvOrderStatus

String

DEPLOYED

License状态。可能值:

  • CREATING:创建中

  • DEPLOYED:创建成功

  • DEPLOY_FAILED:创建失败

licenseInfo

Array

{"effet":true,"licenseUserCount":10}

如果创建成功,则返回License相关信息集合。

effect

Boolean

true

是否生效License。

licenseUserCount

Integer

10

License包含的用户数。

startTime

Long

1625097600

License生效时间,格式为Unix时间戳。

endTime

Long

1656633600

License到期时间,格式为Unix时间戳。

errorMessage

String

err msg description

如果创建失败,则返回具体的错误信息。

errorCode

String

XXX_YYY

如果创建失败,则返回具体的错误码。

返回示例如下:

  • 创建中

    {
        "isvOrderStatus": "CREATING",
        "licenseInfo": null,
        "errorMessage": null,
        "errorCode": null
    }
  • 创建成功

    {
          "isvOrderStatus": "DEPLOYED",
          "licenseInfo": {
          "effect": true,
          "licenseUserCount": 10,
          "startTime": 1625097600,
          "endTime": 1656633600,
        },
        "errorMessage": null,
        "errorCode": null
    }
  • 创建失败

    {
        "isvOrderStatus": "DEPLOY_FAILED",
        "licenseInfo": null,
        "errorMessage": "err msg description",
        "errorCode": "XXX_YYY"
    }

  • 本页导读 (0)
文档反馈