Customer Operation Capabilities
| Details
  • Registering a Customer (Partner)
    • CheckUserIdentity
    • CreateSubCustomer
    • SendVerificationMessageCode
  • Managing Customers (Partner)
    • FreezeSubCustomers
    • ListSubCustomers
    • UnfreezeSubCustomers
  • Real-Name Authentication (Partner)
    • ChangeEnterpriseRealnameAuthentication
    • CreateEnterpriseRealnameAuthentication
    • CreatePersonalRealnameAuth
    • ShowRealnameAuthenticationReviewResult
  • Managing Coupons (Public)
    • ListSubCustomerCoupons
  • Managing Customer Budgets (Partner)
    • ListSubCustomerBudget
    • ShowSubCustomerBudget
    • UpdateSubCustomerBudget
  • Managing Accounts (Customer)
    • ShowCustomerAccountBalances
  • Purchasing a Cloud Service (Public)
    • ListFreeResourceUsages
    • ListOnDemandResourceRatings
    • ListRateOnPeriodDetail
    • ListRenewRateOnPeriod
  • Managing Yearly/Monthly Orders (Public)
    • ListCustomerOrders
    • ShowCustomerOrderDetails
    • ShowRefundOrderDetails
  • Managing Yearly/Monthly Orders (Customer)
    • AutoRenewalResources
    • CancelAutoRenewalResources
    • CancelCustomerOrder
    • CancelResourcesSubscription
    • ListOrderDiscounts
    • ListPayPerUseCustomerResources
    • PayOrders
    • RenewalResources
    • UpdatePeriodToOnDemand
  • Managing Pay-Per-Use Resources (Partner)
    • ListCustomerOnDemandResources
  • Managing Bills (Partner)
    • ListPostpaidBillSum
  • Managing Bills (Customer)
    • ListCustomerselfResourceRecordDetails
    • ListCustomerselfResourceRecords
    • ListMonthlyExpenditures
  • Managing Enterprise Projects (Customer)
    • CreateEnterpriseProjectAuth
  • Managing Enterprise Accounts (Customer)
    • ListEnterpriseSubCustomers
  • Managing Products (Public)
    • ListConversions
    • ListMeasureUnits
    • ListResourceTypes
    • ListServiceResources
    • ListServiceTypes
    • ListUsageTypes
  • Managing Resource Packages (Customer)
    • ListFreeResourceInfos
    • ListFreeResourcesUsageRecords
  • Managing Huawei Cloud Resellers (Partner)
    • ListIndirectPartners
  • Cost Management (Customer)
    • ListCosts
  • Managing Credits(Partner)
    • ShowPartnerConsumptionQuota
  • Managing Invoices (Public)
    • ListInvoices

ShowRefundOrderDetails

GET
https://bss-intl.myhuaweicloud.com/v2/orders/customer-orders/refund-orders
Advanced
Required parameters only
Default
Encrypt sensitive parameters
*
Region
Headers
*
Authorization
Parameters
*
order_id
API Description

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:

  • You can query original order IDs for only unsubscription orders generated after May 2018.
Constraints

This API can be invoked using the customer AK/SK or token.

URL
GET  https://bss-intl.myhuaweicloud.com/v2/orders/customer-orders/refund-orders
Request Parameters
NameTypeINMandatoryDescription
X-Auth-Token
stringheader Yes

Call with partner or customer token

order_id
stringquery Yes

ID of an unsubscription or degrade order.

Response Parameters
Status code: 200

ShowRefundOrderDetails Responses

NameTypeDescription
total_count
integer

Total queries.

refund_infos
Array of OrderRefundInfoV2 objects

Resource list. For details, see Table 2.

200 refund_infos
NameTypeDescription
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.

Status code: 400

CBC.0100:Parameter error.

Example Request
Example 1
"GET https://bss-intl.myhuaweicloud.com/v2/orders/customer-orders/refund-orders?order_id=CS1904190917GIBHC"
Example Response
Status code: 200

ShowRefundOrderDetails Responses

Example 1
{
"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"
}
]
}
SDK
Click Customer Operation Capabilities (BSSINTL) SDK to download the SDK in your programming language or view the SDK documentation. To learn how to install an SDK and perform authentication, read Usage.
Error Code
Change History
Jun 21, 2024
Querying the Amount of Unsubscription Orders
GET
   ShowRefundOrderDetails
Modify
Modified Parameters

Outline

API Description
Constraints
URL
Request Parameters
Response Parameters
Example Request
Example Response
SDK
Error Code
Change History