All Products
Search
Document Center

Expenses and Costs:GetAccountRelation

Last Updated:Oct 12, 2026

Queries the details of an account linking.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RelationId

integer

No

The account linking ID.

1234

RequestId

string

No

The unique request ID, used to identify the request and facilitate troubleshooting.

79EE7556-0CFD-44EB-9CD6-B3B526E3A85F

Response elements

Element

Type

Description

Example

object

result

Message

string

The message.

Message

RequestId

string

The request ID.

RequestId

Data

object

data

Id

integer

The account linking ID.

Account linking ID

ParentUserId

integer

The UID of the parent account.

Alibaba Cloud UID of the main account

ChildUserId

integer

The UID of the child account.

Alibaba Cloud account UID of the child account

StartTime

integer

The start time of the account linking, in the YYYY-MM-DD format.

2021-11-01

EndTime

integer

The end time of the account linking, in the YYYY-MM-DD format.

2021-12-01

Type

string

The account linking type.

enterprise_group

Status

string

The account linking status. Valid values:

  • RELATED: linked.

  • CONFIRMING: pending confirmation from the other party.

  • REJECTED: rejected by the other party.

  • CONNECTION_CANCELED: application canceled by the child account.

  • CONNECTION_MASTER_CANCEL: invitation canceled by the main account.

  • CHANGE_CONFIRMING: pending confirmation for relationship change.

  • INITIAL: initial status of a newly created linking.

RELATED: linked

GmtModified

integer

The update time of the account linking.

2021-12-01

Code

string

The request status code.

200

Success

boolean

Indicates whether the request is successful.

true

Examples

Success response

JSON format

{
  "Message": "Message returned\n",
  "RequestId": "RequestId",
  "Data": {
    "Id": 0,
    "ParentUserId": 0,
    "ChildUserId": 0,
    "StartTime": 0,
    "EndTime": 0,
    "Type": "enterprise_group",
    "Status": "RELATED",
    "GmtModified": 0
  },
  "Code": "200",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.