ЕСОЗ - публічна документація

Get Legal Entities list/ID

n/ndescriptioninputsexpected_resultactual_result
1GET LE by Id without scopeinvalid token
id
200,  "code": "FORBIDDEN",
"message": "Your scope does not allow to access this resource"

2GET LE with not valid tokeninvalid token
id
401, 
"error": {
"message": "Invalid access token",
"type": "access_denied"
}
401, 
"error": {
"message": "Invalid access token",
"type": "access_denied"
}
3GET LE by invalid ID (global)token
invalid id
"message": "In argument \"id\": Could not decode ID value `TGVnYWxFbnRpdHk6ZjQxZWJiMzMtZTlkMC00ZWY0LThlOTItZTcxOWQxNjU1NWU'",
"path": [
"legalEntity"
]
"message": "In argument \"id\": Could not decode ID value `TGVnYWxFbnRpdHk6ZjQxZWJiMzMtZTlkMC00ZWY0LThlOTItZTcxOWQxNjU1NWU'",
"path": [
"legalEntity"
]
4GET LE by valid non existing ID (global)token
non existing id
200, {
"data": {
"legalEntity": null
}
}
200, {
"data": {
"legalEntity": null
}
}
5GET LE by valid ID (global)
200, data by requested ID

200, data by requested ID

medicalServiceProvider always returns empty value

absent fields

  • receiverFundsCode
  • archive
  • owner
  • divisions
6GET LE by EDRPOUtoken, 
fields,
LegalEntityMergeJobFilter
200, filtered by edrpou200, filtered by edrpou
7GET LE by invalid EDRPOUtoken, 
fields,
LegalEntityMergeJobFilter
200,"nodes": []200, "nodes": []
8GET LE by non-existing EDRPOUtoken, 
fields,
LegalEntityMergeJobFilter
200, "nodes": []200, "nodes": []
9GET list of LE

token

fields

200, data200, data
10GET list of LE filtered by nhsVerifiedtoken, 
fields,
LegalEntityMergeJobFilter
200, data filtered by nhsVerified200, data filtered by nhsVerified
10GET list of LE filtered by areatoken, 
fields,
LegalEntityMergeJobFilter
200, data filtered by area
11GET list of LE filtered by settlementtoken, 
fields,
LegalEntityMergeJobFilter
200, data filtered by settlement 
12Sort list of LE by LegalEntityOrderBy

token, 
fields,
LegalEntityMergeJobOrderBy

200, sorted by LegalEntityMergeJobOrderBy

  1. EDRPOU_ASC
  2. EDRPOU_DESC
  3. INSERTED_AT_ASC
  4. INSERTED_AT_DESC
  5. NHS_VERIFIED_ASC
  6. NHS_VERIFIED_DESC
  7. STATUS_ASC
  8. STATUS_DESC

200, sorted by LegalEntityMergeJobOrderBy

  1. done
  2. done
  3. done
  4. done
  5. done
  6. done
  7. done
  8. done
13GET LE List  by valid ID (database)token, 
fields,
LegalEntityMergeJobFilter
200, data filtered by databaseId200, filtered by ID
14GET LE List  by not valid ID (database)token, 
fields,
LegalEntityMergeJobFilter
200, "message": "Malformed request. Probably, you have sent corrupted JSON."200, "message": "Malformed request. Probably, you have sent corrupted JSON."
15GET LE List  by valid  non existing ID (database)token, 
fields, 
LegalEntityMergeJobFilter
200, "nodes": []200, "nodes": []
16GET related to LE division filtered by DivisionFilter and sorted by DivisionOrderBytoken, 
fields

divisions are not present
17GET related to LE mergedFromLegalEntities filtered by mergedFromLegalEntities and sorted by mergedFromLegalEntitiestoken, 
fields

there is no filter by edrpou

ЕСОЗ - публічна документація