# Get the price for purchasing IP - DescribeBuyHighProtectGameIPPrice

## Overview

Get the price for purchasing IP






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `DescribeBuyHighProtectGameIPPrice`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.genesissai.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 |
|:---|:---|:---|:---|
| **ResourceId** | string | Resource ID |**Yes**|
| **ChargeType** | string | Payment method, enumeration values are: Year, pay yearly; Month, pay monthly; Dynamic, pay-as-you-go (permission required); Trial. |**Yes**|
| **Quantity** | int | Purchase Quantity |**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|
| **PremiumPrice** | float | Premium |**Yes**|
| **UnitPrice** | float | Unit Price |**Yes**|
| **OriginalPremiumPrice** | float | Original Premium |No|
| **OriginalUnitPrice** | float | Original Unit Price |No|




## Example

### Request Example
    
```
https://api.genesissai.com/?Action=GetBuyGameIPPrice
&ResourceId="31db0df1-08c5-4547-8ccc-c2d99108403c"
&ChargeType="TypeFree"
&DefenceDDosBaseFlow=10
&Quantity=1
&IsRenew="No"
&UdpBlock=1
&LineType=TlSmsiRc
&AreaLine=EUtwioPD
&EngineRoom=myAGPVRd
```

### Response Example
    
```json
{
  "Action": "DescribeBuyHighProtectGameIPPriceResponse",
  "OriginalPremiumPrice": 9.65833,
  "OriginalPrice": 9.24678,
  "OriginalUnitPrice": 5.95851,
  "PremiumPrice": "2000",
  "RetCode": 0,
  "UnitPrice": "1000"
}
```





