调用 DescribeLicense 查询授权信息。
根据授权码查询业务信息首先验证授权码是否有效。
- 授权码无效,返回错误信息
- 授权码有效,返回授权信息
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeLicense |
系统规定参数。取值:DescribeLicense。 |
LicenseCode | String | 是 | APSEDH8TA5CSGK-********_6CNTACBH9EQPOATFXJQL4B2COE7M43VVQ7GUGKAA |
授权码。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | A007A214-4B7D-40F9-B617-A1C0C1D49FD1 |
请求 ID |
License | Struct |
- |
|
LicenseStatus | String | INACTIVATED |
授权码状态。取值:
|
LicenseCode | String | ZEJLPPNWNSC1PLMPQGSMP1FZ4ECD7KE7JCPRAAA3YJ |
授权码 |
InstanceId | String | 100***65 |
云市场业务的实例 ID |
CreateTime | String | 2016-05-18T14:14Z |
创建时间。 按照 ISO8601 标准表示,并需要使用 UTC 时间。格式为:YYYY-MM-DDThh:mmZ。 |
ExpiredTime | String | 2016-06-04T00:00Z |
业务到期时间。 按照 ISO8601 标准表示,并需要使用 UTC 时间。格式为:YYYY-MM-DDThh:mmZ。 |
ActivateTime | String | 2016-05-20T18:27Z |
激活时间。 按照 ISO8601 标准表示,并需要使用 UTC 时间。格式为:YYYY-MM-DDThh:mmZ。 |
ProductSkuId | String | cmgj00**11-code34600 |
商品规格标示 |
ProductCode | String | cmgj00**11 |
产品 Code |
ProductName | String | 示例商品 |
商品名称 |
SupplierName | String | 阿里巴巴科技有限公司 |
供应商名称 |
ExtendArray | Array |
- |
|
Code | String | orderId |
扩产属性 key |
Value | String | 201015528710797,201022520050797 |
扩展属性 value |
ExtendInfo | Struct |
扩展信息 |
|
AliUid | Long | 11111111 |
购买者唯一标识 |
String | test@aliyun.com |
用户邮箱地址 |
|
Mobile | String | 123*****111 |
用户手机号 |
AccountQuantity | Long | 1 |
购买帐号数量 |
示例
请求示例
http(s)://market.aliyuncs.com/?Action=DescribeLicense
&LicenseCode=APSEDH8TA5CSGK-********_6CNTACBH9EQPOATFXJQL4B2COE7M43VVQ7GUGKAA
&<公共请求参数>
正常返回示例
XML
格式
<DescribeLicenseResponse>
<License>
<ActivateTime>2016-05-20T18:27Z</ActivateTime>
<CreateTime>2016-05-18T14:14Z</CreateTime>
<ExpiresTime>2016-06-04T00:00Z</ExpiresTime>
<ExtendArray>
<Code>package_version</Code>
<Value>yuncode1283800001</Value>
</ExtendArray>
<ExtendArray>
<Code>instanceId</Code>
<Value>11***11</Value>
</ExtendArray>
<ExtendArray>
<Code>activeAddress</Code>
<Value>https://pro.formtalk.net/org/orgMgt.do?method=viewRegisterEnterprise&from=aliyun</Value>
</ExtendArray>
<ExtendArray>
<Code>orderId</Code>
<Value>201015528711111,201022520022222</Value>
</ExtendArray>
<ExtendArray>
<Code>orderBizId</Code>
<Value>111111</Value>
</ExtendArray>
<ExtendArray>
<Code>mobile</Code>
<Value>130****3454</Value>
</ExtendArray>
<ExtendArray>
<Code>accountQuantity</Code>
<Value>1</Value>
</ExtendArray>
<ExtendArray>
<Code>aliUid</Code>
<Value>183***111</Value>
</ExtendArray>
<ExtendArray>
<Code>expiresTime</Code>
<Value>2021-07-26 00:00:00</Value>
</ExtendArray>
<ExtendArray>
<Code>skuId</Code>
<Value>yuncode1283800001</Value>
</ExtendArray>
<ExtendInfo>
<UserNum>100</UserNum>
<Package_version>yuncode1283800001</Package_version>
<InstanceId>1934558</InstanceId>
<ActiveAddress>https://pro.formtalk.net/org/orgMgt.do?method=viewRegisterEnterprise&from=aliyun</ActiveAddress>
<OrderId>201015528711111,201022520022222</OrderId>
<OrderBizId>11111</OrderBizId>
<Mobile>130****3454</Mobile>
<AccountQuantity>1</AccountQuantity>
<AliUid>183***111</AliUid>
<ExpiresTime>2021-07-26 00:00:00</ExpiresTime>
<SkuId>yuncode1283800001</SkuId>
</ExtendInfo>
<Identification>1835994468517295</Identification>
<InstanceId>111111</InstanceId>
<LicenseCode>XGZHOZSQSYC2EEJB-OL1UHLCBPL********_CCH4YDTH8MPMQ2FYUUSZTR</LicenseCode>
<LicenseStatus>ACTIVATED</LicenseStatus>
<ProductCode>cmgj0**838</ProductCode>
<ProductName>致***平台</ProductName>
<ProductSkuId>yuncode1283800001</ProductSkuId>
<SupplierName>北京**互联软件股份有限公司</SupplierName>
<SupplierPk>183599411111</SupplierPk>
</License>
<RequestId>c635b305-7481-4f9a-8ebb-aeff43229993</RequestId>
</DescribeLicenseResponse>
JSON
格式
{
"License":
{
"ActivateTime":"2016-05-20T18:27Z",
"CreateTime":"2016-05-18T14:14Z",
"ExpiresTime":"2016-06-04T00:00Z",
"ExtendArray":[
{
"Code":"package_version",
"Value":"yuncode1283800001"
},
{
"Code":"instanceId",
"Value":"11***11"
},
{
"Code":"activeAddress",
"Value":"https://pro.formtalk.net/org/orgMgt.do?method=viewRegisterEnterprise&from=aliyun"
},
{
"Code":"orderId",
"Value":"201015528711111,201022520022222"},{"Code":"orderBizId","Value":"111111"
},
{
"Code":"mobile",
"Value":"130****3454"
},
{
"Code":"accountQuantity",
"Value":"1"
},
{
"Code":"aliUid",
"Value":"183***111"
},
{
"Code":"expiresTime",
"Value":"2021-07-26 00:00:00"
},
{
"Code":"skuId",
"Value":"yuncode1283800001"
}
],
"ExtendInfo":
{
"UserNum":"100",
"Package_version":"yuncode1283800001",
"InstanceId":1934558,
"ActiveAddress":"https://pro.formtalk.net/org/orgMgt.do?method=viewRegisterEnterprise&from=aliyun",
"OrderId":"201015528711111,201022520022222",
"OrderBizId":"11111",
"Mobile":"130****3454",
"AccountQuantity":"1",
"AliUid":"183***111",
"ExpiresTime":"2021-07-26 00:00:00",
"SkuId":"yuncode1283800001"
},
"Identification":"1835994468517295",
"InstanceId":111111,
"LicenseCode":"XGZHOZSQSYC2EEJB-OL1UHLCBPL********_CCH4YDTH8MPMQ2FYUUSZTR",
"LicenseStatus":"ACTIVATED",
"ProductCode":"cmgj0**838",
"ProductName":"致***平台",
"ProductSkuId":"yuncode1283800001",
"SupplierName":"北京**互联软件股份有限公司",
"SupplierPk":1845454111
},
"RequestId":"c635b305-7481-4f9a-8ebb-aeff43229993"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Auth.SubAccount.Error | The specified AccessKey information does not belong to the RAM user. | 该 Accesskey 不是子账号的Accesskey |
400 | License.Invalid | The specified license is invalid. | 无效的授权码 |
400 | License.Expired | The specified license has expired. | 授权码已过期 |
400 | License.Discard | The specified license has been discarded. | 授权码已废弃 |
400 | License.NotFound | The specified license does not exist. | 授权码不存在 |
400 | Auth.ISV.Error | Only ISV accounts are allowed to call the specified API operation. | 非服务商账号,仅供服务商账号调用 |
400 | Auth.Match | The product to be enabled by the specified license does not belong to the ISV. | 授权码对应的商品不属于该服务商 |
400 | Auth.Authorized | The specified RAM user is not authorized. | 子账号没有授权 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交