tencent cloud

文档反馈

DescribeDBInstanceDeal

最后更新时间:2023-03-20 10:55:17

1. API Description

Domain name for API request: mongodb.tencentcloudapi.com.

This API is used to get details of purchase, renewal, and specification adjustment orders of a MongoDB instance.

A maximum of 5 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeDBInstanceDeal.
Version Yes String Common Params. The value used for this API: 2019-07-25.
Region No String Common Params. This parameter is not required for this API.
DealId Yes String Order ID. It is returned by the CreateDBInstance and other APIs.

3. Output Parameters

Parameter Name Type Description
Status Integer Order status. Valid values: 1 (unpaid), 2 (paid), 3 (delivering), 4 (delivered), 5 (delivery failed), 6 (refunded), 7 (order closed), 8 (order closed because it failed to be paid within timeout period).
OriginalPrice Float Original price of the order.
DiscountPrice Float Discounted price of the order.
Action String Operation performed by the order. Valid values: purchase, renew, upgrade, downgrade, refund.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying order details

Input Example

https://mongodb.tencentcloudapi.com/?Action=DescribeDBInstanceDeal
&DealId=20200420111635
&<Common request parameters>

Output Example

{
    "Response": {
        "Action": "purchase",
        "DiscountPrice": 759.33,
        "OriginalPrice": 1116.67,
        "RequestId": "e79836e8-1864-45bf-aa63-0c7af31e7de5",
        "Status": 4
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error
InvalidParameter Parameter error
InvalidParameter.PermissionDenied The current subaccount has no permission to perform this operation.
联系我们

联系我们,为您的业务提供专属服务。

技术支持

如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

7x24 电话支持