All Products
Search
Document Center

Expenses and Costs:ConfirmRelation

Last Updated:Oct 28, 2025

Confirms an invitation from an Alibaba Cloud account.

Operation description

1. A RAM user must confirm an invitation for Financial Management account linking only if the real-name authentication information of the RAM user is inconsistent with that of the Alibaba Cloud account. 2. To confirm the invitation, the specified permissions must match those in the original invitation.

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

RelationType

string

No

The type of relationship. Currently, only enterprise_group is supported.

Type of the financial relationship

ParentUserId

integer

No

The UID of the Alibaba Cloud account.

1738376485192612

ConfirmCode

string

Yes

The confirmation action. Valid values:

  • child_agree: The RAM user agrees to the invitation.

  • child_disagree: The RAM user rejects the invitation.

  • Alibaba Cloud account cancellation confirmation: Alibaba Cloud account cancellation confirmation

child_agree

ChildUserId

integer

No

The UID of the RAM user.

1512996702208737

RequestId

string

Yes

The unique ID of the request.

request_id

PermissionCodes

array

Yes

The permissions to grant to the RAM user. Valid values:

  • SYNCHRONIZE_FINANCE_IDENTITY: Allows the synchronization of financial identity to the linked account.

  • SYNCHRONIZE_FINANCE_DISCOUNT_POLICY_TO_TARGET: Allows the synchronization of discounts to the linked account.

  • FORBID_WITHDRAW_CASH: Prohibits the linked account from withdrawing the account balance.

  • FORBID_MANAGE_INVOICE: Prohibits the linked account from managing invoices.

  • CHECK_FINANCE_INFO: Allows viewing of account linking information.

  • MANAGE_TARGET_INVOICE: Allows the management of invoices for the linked account.

  • CHECK_TARGET_CONSUMPTION: Allows viewing of the consumption details of the linked account.

SYNCHRONIZE_FINANCE_IDENTITY

string

No

SYNCHRONIZE_FINANCE_IDENTITY

RelationId

integer

No

The ID of the relationship. Obtain this value from the relationId parameter in the response of the QueryRelationList operation.

51463

Response elements

Parameter

Type

Description

Example

object

Code

string

The status code.

200

Message

string

The message returned.

Message returned

RequestId

string

The unique ID of the request.

request_id

Success

boolean

Indicates whether the request was successful.

true

Data

object

The data returned.

HostId

string

The host ID.

HostId

Examples

Success response

JSON format

{
  "Code": "200",
  "Message": "Message returned\n",
  "RequestId": "request_id",
  "Success": true,
  "Data": {
    "HostId": "HostId"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.