Docs
api
Web Application Firewall(UEWAF)
DescribeWafUserTransactionInfo

Obtain user purchase details - DescribeWafUserTransactionInfo

Overview

Obtain detailed information about user purchases, including resource ID, version type, expiration time, payment method, and purchase price.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeWafUserTransactionInfo.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TransactionInfoTransactionInfoDetailed information about the user’s purchase of services, refer to TransactionInfoYes

Data Model

TransactionInfo

Field NameTypeDescription InformationRequired
ResourceIdstringResource IDNo
EditonstringVersion TypeNo
ExpireTimestringService Expiration TimeNo
ChargeTypestringPayment TypeNo
TransactionIdintUnique Index of ResourcesNo
TransactionNostringResource Order NumberNo
HasWafbooleanHave you purchased WAF?No
ExpiredstringWhether it has expired, if this field exists, it means it has expired.No
WorkZonestringMain WorkspaceNo
WorkRegionsstringDeployment area, when WorkZone is ULB, display as ULB id (list)No
ServingstringIs the service in effect?No
ServersobjectWhen WorkZone is set to ULB, display the corresponding domain name list on ULB.No
LogStorageintEnable log extension package?No

Example

Request Example

https://api.dezai.com/?Action=DescribeWafUserTransactionInfo
&ProjectId=org-xxx

Response Example

{
  "Action": "DescribeWafUserTransactionInfoResponse",
  "RetCode": 0,
  "TransactionInfo": {
    "ChargeType": "Month",
    "CreateTime": "2017-04-10 13:30:05",
    "Editon": "Professional",
    "ExpireTime": "2020-06-03 00:00:00",
    "Expired": "",
    "HasWaf": true,
    "LogStorage": 0,
    "ResourceId": "usecure_uewaf-lbjszn",
    "Serving": "Y",
    "TransactionId": 31,
    "TransactionNo": "20170410050160160645159",
    "WorkRegions": "cn-gd,cn-sh,hk,cn-bj,tw-tp,us-ca,kr-seoul,jpn-tky",
    "WorkZone": "mainland"
  }
}