Accepts the invitation of a ledger and becomes a member.

Request parameters

Parameter Type Required Example Description
Action String Required AcceptMember

The operation that you want to perform. Value: AcceptMember

LedgerId String Required l-c8cc7be3eea542axxxxxxxxxx

The ID of the ledger instance.

KeyType String No SECP256K1

The type of the public key used for identity authentication. Value: secp256k1. SECP256K1 uses the Secp256k1 signature algorithm.

PublicKey String No 04d45eb3bcbd2a47aeb5de87b73fd6a324bb7b57a081fd474a82d8dc7e830d42868aeb15a9fa02ac09205b68ecfc78e8e67c70c67736aa0e867a9a7011b83fab4b

The public key of this Member in Ledger.

Response parameters

Parameter Type Example Description
MemberId String m-04389ec1075443bcxxxxxxxxxx

The generated Member ID.

RequestId String 89E6B5F5-7511-46A7-9EDB-3C6F8AA4D48C

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=AcceptMember
&LedgerId=l-c8cc7be3eea542axxxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<MemberId>m-04389ec1075443bcxxxxxxxxxx</MemberId>
<RequestId>89E6B5F5-7511-46A7-9EDB-3C6F8AA4D48C</RequestId>

JSON format

{
    "MemberId": "m-04389ec1075443bcxxxxxxxxxx",
    "RequestId": "89E6B5F5-7511-46A7-9EDB-3C6F8AA4D48C"
}

Error codes

HttpCode Error code Error message Description
400 InvalidParameter The specified parameter %s is invalid. The error message returned because the specified parameters are invalid.
400 MissingParameter You must specify the parameter %s. The error message returned when the client token is not specified.
404 ResourceNotFound The specified resource %s does not exist. Resource not found
409 ResourceAlreadyExist The resource %s already exists. The resource already exists.
403 UnauthorizedOperation You are not authorized to perform this operation. %s No operation permissions

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