Creates an enterprise code.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateEnterpriseCode |
The operation that you want to perform. Set the value to CreateEnterpriseCode. |
EnterpriseCode | String | Yes | 12P** |
The enterprise code that you want to create. The enterprise code must be five characters in length, and can contain letters and digits. The enterprise code must be globally unique. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where you want to create the enterprise code. You can call the DescribeRegions operation to query the most recent region list. |
ClientToken | String | No | 02fb3da4**** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | FBDB18D8-E91E-4978-8D6C-6E2E3EE10133 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CreateEnterpriseCode
&EnterpriseCode=12P**
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
XML
format
<CreateEnterpriseCodeResponse>
<RequestId>FBDB18D8-E91E-4978-8D6C-6E2E3EE10133</RequestId>
</CreateEnterpriseCodeResponse>
JSON
format
{"RequestId":"FBDB18D8-E91E-4978-8D6C-6E2E3EE10133"}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | EnterpriseCode.BeenOccupied | The specified enterprise code is occupied by other enterprises. | The error message returned because the specified enterprise code already exists. |
For a list of error codes, visit the API Error Center.