You are not logged in.
ShowRefundOrderDetails
A customer can query the resources and original orders of the unsubscription amount for an unsubscription order or degrade order on the partner sales platform.
NOTE:
- After you invoke the API in Unsubscribing from Yearly/Monthly Resources to generate an unsubscription order ID, you can invoke this API to query the resources and amount of an unsubscription order. For example, after you invoke the API in Unsubscribing from Yearly/Monthly Resources, you can invoke this API to query the original order ID and original subscription renewal order ID.
- You can query original order IDs for only unsubscription orders generated after May 2018.
This API can be invoked using the customer AK/SK or token.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
X-Auth-Token | string | header | Yes | Call with partner or customer token |
order_id | string | query | Yes | ID of an unsubscription or degrade order. |
ShowRefundOrderDetails Responses
Name | Type | Description |
---|---|---|
total_count | integer | Total queries. |
refund_infos | Array of OrderRefundInfoV2 objects | Resource list. For details, see Table 2. |
Name | Type | Description |
---|---|---|
id | string | Record ID. |
amount | number | Amount. A negative number indicates the unsubscription amount.A positive amount indicates the consumption amount or the unsubscription handling fee. |
measure_id | string | Fee unit. 1: 1 Yuan/Dollar |
customer_id | string | Customer account ID. |
resource_type_code | string | Resource type code. For example, the VM resource type code of ECS is hws.resource.type.vm. To obtain a specific resource type, call the API in Querying Resource Types. |
service_type_code | string | Cloud service type code. For example, the cloud service type code of OBS is hws.service.type.obs. |
resource_type_name | string | Resource type. For example, the resource type of ECS is Cloud Host. |
service_type_name | string | Cloud service type. For example, the cloud service type of ECS is Elastic Cloud Server. |
region_code | string | Cloud service region code, for example, ap-southeast-1. Obtain the value from the Region column in Regions and Endpoints. |
base_order_id | string | ID of the original order corresponding to the unsubscription amount, consumption amount, or unsubscription handling fee. |
CBC.0100:Parameter error.
"GET https://bss-intl.myhuaweicloud.com/v2/orders/customer-orders/refund-orders?order_id=CS1904190917GIBHC"
ShowRefundOrderDetails Responses
{
"total_count": 1,
"refund_infos": [
{
"id": "e9bb1650-0f34-49b8-9628-23d4155abc1c",
"amount": -1200,
"measure_id": "1",
"customer_id": "cd1b7080452c410fa2b922baa9b6a408",
"resource_type_code": "hws.resource.type.volume",
"service_type_code": "hws.service.type.ebs",
"region_code": "ap-southeast-1",
"base_order_id": "CS20061811411F8CI"
}
]
}