Compliance

Batch create account entity relationships

Associates multiple entities with an account under a single relationship type.

post/v0/accounts/{id}/entity_relationships/batch

Request

  • Base URL
    https://api.sandbox.lead.bank
  • URL
    https://api.sandbox.lead.bank/v0/accounts/{id}/entity_relationships/batch
  • Auth
    HTTP bearer

Path parameters

idstring required

The ID of the Account object.

Example:account_xyz123

Account ID

Headers

Idempotency-Keystring required

Unique key to ensure idempotent requests

Request body

entity_idsEntityID[] required

List of entity IDs to associate with the account under the specified relationship type.

relationship_type'account_holder' | 'authorized_signer' | 'authorized_user' required

Indicates the type of Entity

Example request

{
  "entity_ids": [
    "entity_xyz123"
  ],
  "relationship_type": "account_holder"
}

Response

Entity relationships created successfully.

account_idstring required

The ID of the Account object.

relationship_type'account_holder' | 'authorized_signer' | 'authorized_user' required

Indicates the type of Entity

entity_idsEntityID[] required

List of entity IDs associated with the account under the specified relationship type.

Example response

{
  "account_id": "account_xyz123",
  "relationship_type": "account_holder",
  "entity_ids": [
    "entity_xyz123"
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.