ConfirmRelation

Updated at:
Copy as MD

Confirms a financial association invitation initiated by the primary account.

Operation description

  1. Currently, secondary account confirmation is required only for financial management associations when the real-name verification information of the primary and secondary accounts is inconsistent. 2. To ensure a successful confirmation, the confirmed permissions must match the permissions specified in the invitation initiated by the primary account.

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 relationship type. Valid value: enterprise_group.

enterprise_group

ParentUserId

integer

No

The Alibaba Cloud UID of the primary account.

1738376485192612

ConfirmCode

string

Yes

The confirmation action. Valid values:

  • child_agree: The secondary account agrees.

  • child_disagree: The secondary account rejects.

  • parent_cancel: The primary account cancels the confirmation.

child_agree

ChildUserId

integer

No

The Alibaba Cloud UID of the secondary account.

1512996702208737

RequestId

string

Yes

The unique identifier of the request.

request_id

PermissionCodes

array

Yes

The permissions granted to the secondary account. Valid values:

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

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

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

  • FORBID_MANAGE_INVOICE: Prohibits the linked account from managing invoices.

  • CHECK_FINANCE_INFO: Allows requesting to view account linking information.

  • MANAGE_TARGET_INVOICE: Allows managing invoices of the target account.

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

SYNCHRONIZE_FINANCE_IDENTITY

string

No

The permission code. For the meaning of valid values, see the description of the PermissionCodes parameter.

SYNCHRONIZE_FINANCE_IDENTITY

RelationId

integer

No

The relationship ID. You can obtain the value from the relationId field in the response of the QueryRelationList operation.

51463

Response elements

Element

Type

Description

Example

object

Code

string

The backend business status code.

200

Message

string

The returned message.

The returned message

RequestId

string

The unique identifier of the request.

request_id

Success

boolean

Indicates whether the request is successful.

true

Data

object

The returned data.

HostId

string

The host ID.

HostId

Examples

Success response

JSON format

{
  "Code": "200",
  "Message": "The returned message",
  "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.