DescribeProductCode

Last updated:2021-07-16 15:31:59

DescribeProductCode

You can call this operation to query the mappings between products and codes.
Note: The mappings remain unchanged within a specific period of time. You can cache the mappings as required.

Request parameters

Parameter Type Required Length (number of characters) Format Description
Action String Yes Fixed value [a-zA-Z]+ The operation that you want to perform. Set the value to DescribeProductCode.
Version String Yes Fixed value The version number of the API operation. Set the value to 2019-07-19.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
ProductCodeSet KvPair array The mappings between products and codes.

Successful call examples

Sample requests

http://krtpay.api.ksyun.com/?Action=DescribeProductCode
&Version=2019-07-19
&Common request parameters

Sample success responses

  • XML format
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DescribeProductCodeResponse>
    	<RequestId>81de1b55-401e-432f-91fb-cf352744b060</RequestId>
    	<ProductCodeSet>
        	<Item>
            	<Key>CDN_LIVE</Key>
            	<Value>KLS</Value>
        	</Item>
        	<Item>
            	<Key>KFS</Key>
            	<Value>KFS</Value>
        	</Item>
        	<Item>
            	<Key>KEC</Key>
            	<Value>KEC</Value>
        	</Item>
    	</ProductCodeSet>
</DescribeProductCodeResponse>
  • JSON format
{
    	"RequestId": "dba9f0ed-347f-401e-b404-bc2ca874850a",
    	"ProductCodeSet": [
        	{
            	"Key": "CDN_LIVE",
            	"Value": "KLS"
        	},
        	{
            	"Key": "KEC",
            	"Value": "KEC"
        	}
    	]
}

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈