# Query User Payment Information - QueryPayInfo

## Overview

Query user's payment information, protect current unused points, points expiration time, automatic renewal switch, etc.






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `QueryPayInfo`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.ckcloudai.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 |
|:---|:---|:---|:---|
| **ProjectId** | string | Project 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|
| **BillPoint** | int | Unused prepaid points |**Yes**|
| **RemainTime** | string | Remaining usage time of prepaid points |**Yes**|
| **ExpiratTime** | string | Prepaid points expiration time |**Yes**|
| **AutoRenew** | boolean | Automatic renewal switch |**Yes**|
| **AutoBusinessVer** | boolean | Automatic Enterprise Switch |**Yes**|
| **RenewPointNum** | int | The amount of points the user recently purchased. |No|
| **CompanyId** | int | Company ID |No|
| **OrganizationId** | int | Project ID |No|
| **ResourceLongId** | string | Resource ID |No|
| **UpdateTime** | string | Change time |No|




## Example

### Request Example
    
```
https://api.ckcloudai.com/?Action=QueryPayInfo
&ProjectId=pQAVszca
```

### Response Example
    
```json
{
  "Action": "QueryPayInfoResponse",
  "AutoBusinessVer": false,
  "AutoRenew": true,
  "BillPoint": 5000000000000,
  "CompanyId": 5,
  "ExpiratTime": "HwrfnHxQ",
  "OrganizationId": 5,
  "RemainTime": "UnPTuuFs",
  "RenewPointNum": 2,
  "ResourceLongId": "QMINioPc",
  "RetCode": 0,
  "UpdateTime": "gJgdtqKU"
}
```





