# Get the product information corresponding to the certificate - GetCertificateCommodity

## Overview

Get the product information corresponding to the certificate






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `GetCertificateCommodity`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.nubexcloud.com/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **CertificateID** | int | Certificate ID |**Yes**|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **Commodity** | [*CertificateCommodity*](#certificatecommodity) | Product Information |No|

#### Data Model


#### CertificateCommodity

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **ID** | int | ID |No|
| **CertificateName** | string | Name |No|
| **CertificateBrand** | string | Brand |No|
| **CertificateCat** | string | Classification |No|
| **ProductID** | int | Product ID |No|
| **DomainMaxLimit** | int | Maximum Purchase Quantity |No|
| **DomainMinLimit** | int | Minimum Purchase Quantity |No|
| **Channel** | string | ca Channel |No|
| **CertificateCnName** | string | Certificate Name |No|
| **CSRAlgorithms** | array[[*CSRAlgorithmInfo*](#csralgorithminfo)] | Algorithm |No|

#### CSRAlgorithmInfo

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Algorithm** | string | Algorithm.<br /><br />Supports RSA, ECDSA, SM2 three values. |No|
| **AlgorithmOption** | array[string] | The length of the algorithm key.<br />1. RSA supports 2048,3072,4096<br />2. ECDSA supports p256,p384,p512<br />3. SM2 supports p256 |No|

## Example

### Request Example
    
```
https://api.nubexcloud.com/?Action=GetCertificateCommodity
&CertificateID=tnTpaeWH
&Type=8
```

### Response Example
    
```json
{
  "Action": "GetCertificateCommodityResponse",
  "Commodity": {},
  "RetCode": 0
}
```





