GetOrderDetail

Updated at:
Copy as MD

Queries the details of a specific order for a user or a distribution customer.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

bss:DescribeOrderDetail

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

OrderId

string

Yes

The order ID.

233501558440169

MemberUid

integer

No

The UID of the member account in the multi-account enterprise managed by the current account. Leave this parameter empty if this scenario does not apply.

1715322405372273

Response elements

Element

Type

Description

Example

object

Code

string

The status code.

Success

Message

string

The error message.

Successful!

RequestId

string

The request ID.

D6E068C3-25BC-455A-85FE-45F0B22ECB1F

Success

boolean

Indicates whether the request is successful.

true

Data

object

The returned data.

HostName

string

The hostname.

test

PageNum

integer

The page number.

1

PageSize

integer

The number of entries per page.

20

TotalCount

integer

The total number of records.

400

OrderList

object

Order

array<object>

The order list.

array<object>

The order details.

Operator

string

The ID of the Resource Access Management (RAM) user that performed the order operation. Leave this field empty if not applicable.

322315

AfterTaxAmount

string

The after-tax amount.

0

Config

string

The configuration of the primary product.

DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]

SubOrderId

string

The sub-order ID.

234343

PaymentTime

string

The payment time of the order. The time is displayed in the YYYY-MM-DDTHH:mm:ssZ format in UTC.

2017-06-08T09:41:30Z

Tax

string

The tax amount.

0

PaymentCurrency

string

The payment currency. Valid values:

  • CNY: Chinese yuan

  • USD: US dollar

  • JPY: Japanese yen

CNY

UsageEndTime

string

The service end time. The time is displayed in the YYYY-MM-DDTHH:mm:ssZ format in UTC.

2117-06-08T16:00:00Z

SubscriptionType

string

The subscription type. Valid values:

  • Subscription: subscription

  • PayAsYouGo: pay-as-you-go

Subscription

PretaxGrossAmount

string

The original amount.

0

OrderType

string

The order type. Valid values:

  • New: new purchase

  • Renew: renewal

  • Upgrade: upgrade

  • TempUpgrade: temporary upgrade

  • Downgrade: downgrade

  • Refund: refund

  • Convert: billing method conversion

  • ResizeDisk: disk resizing

  • CompensatoryRenew: compensatory renewal

  • IncreaseUpgrade: bandwidth upgrade

  • Exchange: exchange

  • ChangeOperatingSystem: operating system replacement

new

Currency

string

The currency. Valid values:

  • CNY.

  • USD.

  • JPY.

CNY

CommodityCode

string

The commodity code.

rds

UsageStartTime

string

The service start time. The time is displayed in the YYYY-MM-DDTHH:mm:ssZ format in UTC.

2017-06-08T16:00:00Z

OriginalConfig

string

The unstandardized module information.

DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]

InstanceIds

string

The list of instance IDs.

["rm-bp1a2vsr018313t6o"]

PaymentStatus

string

The payment status. For non-refund orders, valid values:

  • Unpaid: unpaid

  • Paid: paid

  • Cancelled: cancelled

paid

ExtendInfos

object

The extended information of the order.

{"IsAutoRenew":"true","DiscountAmount":"100.98","DeductedByCoupons":"98.88","CouponNo":"319170900877"}

string

The extended information of the order.

  • IsAutoRenew=true indicates an auto-renewal order. This parameter is not returned for non-auto-renewal orders.

  • CouponNo is the coupon ID.

  • DeductedByCoupons is the amount deducted by coupons, in yuan.

  • DiscountAmount is the discount amount, in yuan.

{"IsAutoRenew":"true","DiscountAmount":"100.98","DeductedByCoupons":"98.88","CouponNo":"319170900877"}

ProductCode

string

The product code.

rds

CreateTime

string

The creation time. The time is displayed in the YYYY-MM-DDTHH:mm:ssZ format in UTC.

2017-06-08T09:41:30Z

ProductType

string

The product type.

rds

Quantity

string

The quantity.

3

RelatedOrderId

string

The ID of the associated order.

241559391310332

OrderId

string

The order ID.

241559391310333

BillModuleConfig

object

billModuleConfig

array<object>

The billing configuration information.

array<object>

BillModuleProperties

object

billModuleProperties

array<object>

The values under the configuration.

object

Value

string

The attribute value of the configuration.

cloud_ssd

AttrApiCode

string

The attribute code of the configuration.

cloud_ssd

ModuleApiCode

string

The API code of the configuration.

cloud_ssd

ApiCode

string

apiCode

datadisk

Code

string

The configuration code.

datadisk

Name

string

The component name.

Data cloud disk

OriginalModuleConfig

object

originalModuleConfig

array<object>

The specific configuration information.

array<object>

ModuleProperties

object

moduleProperties

array<object>

The list of properties for the configuration.

object

Value

string

The configuration attribute value.

cloud_efficiency

Code

string

The configuration attribute code.

cloud_efficiency

Name

string

The configuration attribute name.

Ultra disk

Code

string

The configuration code.

systemdisk

Name

string

The configuration name.

System cloud disk

OrderSubType

string

The sub-order type. Valid values:

  • productsuborder: product sub-order

  • refundsuborder: refund sub-order

productsuborder

PretaxAmount

string

The payable amount of the order.

0

Region

string

The region.

cn-hangzhou

PretaxAmountLocal

string

The local currency amount.

0

Examples

Success response

JSON format

{
  "Code": "Success",
  "Message": "Successful!",
  "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22ECB1F",
  "Success": true,
  "Data": {
    "HostName": "test",
    "PageNum": 1,
    "PageSize": 20,
    "TotalCount": 400,
    "OrderList": {
      "Order": [
        {
          "Operator": "322315",
          "AfterTaxAmount": "0",
          "Config": "DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]",
          "SubOrderId": "234343",
          "PaymentTime": "2017-06-08T09:41:30Z",
          "Tax": "0",
          "PaymentCurrency": "CNY",
          "UsageEndTime": "2117-06-08T16:00:00Z",
          "SubscriptionType": "Subscription",
          "PretaxGrossAmount": "0",
          "OrderType": "new",
          "Currency": "CNY",
          "CommodityCode": "rds",
          "UsageStartTime": "2017-06-08T16:00:00Z",
          "OriginalConfig": "DBInstanceClass:[DBInstanceClass:rds.mysql.s1.small;EngineVersion:8.0;Region:cn-qingdao;]DBFlowType:[Region:cn-qingdao;]",
          "InstanceIds": "[\"rm-bp1a2vsr018313t6o\"]",
          "PaymentStatus": "paid",
          "ExtendInfos": {
            "key": "{\"IsAutoRenew\":\"true\",\"DiscountAmount\":\"100.98\",\"DeductedByCoupons\":\"98.88\",\"CouponNo\":\"319170900877\"}"
          },
          "ProductCode": "rds",
          "CreateTime": "2017-06-08T09:41:30Z",
          "ProductType": "rds",
          "Quantity": "3",
          "RelatedOrderId": "241559391310332",
          "OrderId": "241559391310333",
          "BillModuleConfig": {
            "billModuleConfig": [
              {
                "BillModuleProperties": {
                  "billModuleProperties": [
                    {
                      "Value": "cloud_ssd",
                      "AttrApiCode": "cloud_ssd",
                      "ModuleApiCode": "cloud_ssd"
                    }
                  ]
                },
                "ApiCode": "datadisk",
                "Code": "datadisk",
                "Name": "Data cloud disk"
              }
            ]
          },
          "OriginalModuleConfig": {
            "originalModuleConfig": [
              {
                "ModuleProperties": {
                  "moduleProperties": [
                    {
                      "Value": "cloud_efficiency",
                      "Code": "cloud_efficiency",
                      "Name": "Ultra disk"
                    }
                  ]
                },
                "Code": "systemdisk",
                "Name": "System cloud disk"
              }
            ]
          },
          "OrderSubType": "productsuborder",
          "PretaxAmount": "0",
          "Region": "cn-hangzhou",
          "PretaxAmountLocal": "0"
        }
      ]
    }
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidOwner The specified owner doesn't belong to caller. Invalid user identity.
401 InvalidCaller The caller's primary account is invalid or does not have permission to query enterprise member account information. The caller's primary account is invalid or does not have permission to query enterprise member account information.
500 InternalError The request processing has failed due to some unknown error.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.