All Products
Search
Document Center

BSS OpenAPI:CreateAgAccount

Last Updated:Mar 01, 2024

Creates an account to establish a financial relationship.

Operation description

You can call this operation to create an account so as to establish a master-member financial relationship.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
LoginEmailstringYes

The email address used to log on to the account.

email
AccountAttrstringYes

The attribute of the account. To view the attribute of the account, use the account to log on to the Alibaba Cloud Management Console, move the pointer over the profile picture in the upper-right corner, and then click Security Settings.

1
EnterpriseNamestringNo

The name of the enterprise.

Dongguan ChuangNeng Electric Appliance Co., Ltd
FirstNamestringNo

The first name.

Zhicheng
LastNamestringNo

The last name.

The last name can be up to 64 characters in length.

Wu
NationCodestringNo

The country code.

CN
ProvinceNamestringNo

The name of the province. This parameter is optional.

Beijing
CityNamestringNo

The name of the city.

Beijing
PostcodestringNo

The zip code.

350000

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The status code returned.

LOGIN_EMAIL_HAS_BEEN_USED
Messagestring

The error message returned.

loginEmail=685741089H@chinaunicom.cn,has used
RequestIdstring

The ID of the request.

EAE08A27-386C-579E-966D-8853EC3C5D0E
Successboolean

Indicates whether the request is successful.

true
AgRelationDtoobject

The relationship between the account that is used to call the CreateAgAccount operation and the account that is created.

Typestring

The type of the relationship.

FINACE_CLOUD
Pkstring

The ID of the account that is created.

1728240534507590
RamAdminRoleNamestring

The role of the account that is created.

admin-role
Mpkstring

The ID of the account that is used to call the CreateAgAccount operation.

1785287436011964

Examples

Sample success responses

JSONformat

{
  "Code": "LOGIN_EMAIL_HAS_BEEN_USED",
  "Message": "loginEmail=685741089H@chinaunicom.cn,has used",
  "RequestId": "EAE08A27-386C-579E-966D-8853EC3C5D0E",
  "Success": true,
  "AgRelationDto": {
    "Type": "FINACE_CLOUD",
    "Pk": "1728240534507590",
    "RamAdminRoleName": "admin-role",
    "Mpk": "1785287436011964"
  }
}

Error codes

For a list of error codes, visit the Service error codes.