All Products
Search
Document Center

Domain Names:SaveBatchTaskForCreatingOrderRenew

更新時間:Sep 26, 2024

Submits a task to renew one or more domain names at a time.

You can call the QueryTaskDetailList operation to query the task execution result.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

SaveBatchTaskForCreatingOrderRenew

The operation that you want to perform. Set the value to SaveBatchTaskForCreatingOrderRenew.

PromotionNo

String

No

123123123

The ID of the coupon that you want to use.

UsePromotion

Boolean

No

false

Specifies whether to use a coupon. Valid values:

  • false: no

  • true: yes

OrderRenewParam.N.DomainName

String

No

example.com

The one or more domain names that you want to renew. If you want to renew multiple domain names, specify a domain name list. You can call the QueryDomainList operation to query the domain name list.

OrderRenewParam.N.CurrentExpirationDate

Long

No

1522080000000

The time when the domain name expires. Set the value to a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

OrderRenewParam.N.SubscriptionDuration

Integer

No

1

The renewal duration. Default value: 1. Valid values: 1 to 10. Unit: years.

CouponNo

String

No

12312412

The ID of the voucher that you want to use.

UseCoupon

Boolean

No

false

Specifies whether to use a voucher. Valid values:

  • false: no

  • true: yes

Lang

String

No

en

The language in which the system returns the error message. Valid values:

  • zh: Chinese

  • en: English

Default value: en

UserClientIp

String

No

127.0.0.1

The IP address of the client. Set the value to 127.0.0.1.

Response parameters

Parameter

Type

Example

Description

RequestId

String

F51977F9-2B40-462B-BCCD-CF5BB1E9DB56

The ID of the request.

TaskNo

String

d3babb0a-c939-4c25-8c65-c47b65f5492a

The ID of the task.

Examples

Sample requests

http://domain.aliyuncs.com/?Action=SaveBatchTaskForCreatingOrderRenew
&OrderRenewParam.1.DomainName=example.com
&OrderRenewParam.1.SubscriptionDuration=1
&OrderRenewParam.1.CurrentExpirationDate=0000
&OrderRenewParam.2.DomainName=example.com
&OrderRenewParam.2.SubscriptionDuration=2
&OrderRenewParam.2.CurrentExpirationDate=0000
&<Common request parameters>

Sample success responses

XML format

<SaveBatchTaskForCreatingOrderRenewResponse>
      <TaskNo>d3babb0a-c939-4c25-8c65-c47b65f5492a</TaskNo>
      <RequestId>F51977F9-2B40-462B-BCCD-CF5BB1E9DB56</RequestId>
</SaveBatchTaskForCreatingOrderRenewResponse>

JSON format

{
  "requestId": "9DFBA504-3C59-427D-907D-B6C61F2A3A27",
  "taskNo": "2daff10d-c284-4b98-a6f4-796148116b2b"
}

Error codes

For a list of error codes, visit the API Error Center.