GetSimpleBuyBwPrice - GetSimpleBuyBwPrice
Overview
Get the price of the simplified bandwidth package
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is GetSimpleBuyBwPrice . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ProjectId | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList API | Yes |
RegionA | string | Region A Name | Yes |
RegionB | string | Region B Name | Yes |
PayMode | string | Billing Mode FixedBw: Fixed Bandwidth | Max5: Fifth Peak | Traffic: Traffic Billing Fixed Bandwidth: Monthly/Yearly Max5: Postpaid Traffic Billing: Pay-as-you-go | Yes |
ChargeType | string | Payment Method Month: Monthly | Year: Yearly | PostPay: Postpaid | Count: By Volume | Yes |
Qos | string | Service Quality Diamond: Diamond | Platinum: Platinum | Gold: Gold | Yes |
Path | string | Intelligent Path Delay: Lowest Latency | IGP: Standard Route | TCO: Lowest Cost | Yes |
BandWidth | int | The purchased bandwidth value, default is 1 | No |
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 |
TotalPrice | int | Final Price = Original Price * User Discount * Product Discount | Yes |
CustomPrice | int | Customer Discount Price = Original Price * User Discount | Yes |
OriginalPrice | int | Original Price | Yes |
Example
Request Example
https://api.surfercloud.com/?Action=GetSimpleBuyBwPrice
&RegionA=fRpJDnxZ
&RegionB=eKMkSCGn
&PayMode=JAJikQtx
&ChargeType=uiBMSaYK
&Qos=XNOubKqj
&Path=PyruDAeA
&BandWidth=6
&ProjectId=dYgxmVoW
Response Example
{
"Action": "GetSimpleBuyBwPriceResponse",
"CustomPrice": 9,
"OriginalPrice": 2,
"RetCode": 0,
"TotalPrice": 8
}