Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Image Modified

This service returns list of all active legal entities of all types (except MIS) filtering result by query parameters

Authorize user

  1. Verify the validity of access token
  2. Check user scope legal_entity:read in order to perform this action

Check user context

Return response to user limited by context from user's token

Token typeLimitation
TOKENS_TYPES_PERSONALLimited by Legal Entity (ID)
TOKENS_TYPES_MISNo limitations
TOKENS_TYPES_ADMINNo limitations

Get legal entities

Invoke PRM.Legal Entities List

  1. By default service returns legal entities with type - MSP
  2. Service return only active legal_entities, where is_active = true
  3. Method returns list of objects with short details from PRM DM legal_entity tableand pagination information.
    1. For each legal entity return in response:
      1. legal entity details from legal_entities table and from edr_data table
      2. licenses from licenses table
      3. services from capitation_contract table
      4. addresses from legal_entity table
      5. phones from legal_entity table
      6. emails from legal_entity table
      7. founders from legal_entity table
  4. If according to filters Legal Entities are not found, WS returns empty data array.

...