Internal Api to fetch the relationships between user, wallet, enterprise, and organization.

get/api/v2/internal/entityRelationships

Can be filtered by userId, walletId or enterpriseId

If userId is provided, returns the list of enterprises and organizations to which the user belongs If walletId is provided, returns the enterpriseId and orgId to which the wallet belongs If enterpriseId is provided, returns the orgId to which the enterprise belongs

Query Parameters

  • userIdstring
  • walletIdstring
  • enterpriseIdstring

200 Response

enterprises array[object] required
id string required
permissions array[string]
This type represents the permissions that can be assigned to a user when adding them to an enterprise 1. 'admin': Add/remove users, Create wallets, Manage enterprise policies, Add Bank Accounts, Receive invitations to wallets 2. 'auditor': View audit logs across the enterprise, Receive invitations to wallets
Allowed values: admin auditor
beneficialOwner boolean
acceptedInvite boolean
organizations array[object] required
id string required
permissions array[string]
Allowed value: admin
role string
Allowed values: serviceUser admin member customer
Example: admin

400 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id

403 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id

404 Response

name string
Error code
context object required
Properties that apply to a specific error name
error string required
Human-readable error message
requestId string required
Client request id