Internal Api to fetch the list of enterprises and organizations to which user belongs

get/api/v2/internal/user/{userId}/enterprisesAndOrganizations

Can be filtered by walletId or enterpriseId

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

Path Parameters

  • userIdstringRequired
    Min length: >= 1 characters

Query Parameters

  • walletIdstring
  • enterpriseIdstring
  • startIndexstring
  • limitstring
  • fieldsstring or array

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
nextStartIndex number

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