e-Próspera
Reference

Get a consented legal entity

View as Markdown
GET
/api/v1/me/legal-entities/{id}

Authorization

oauth2 eprospera:entity.read
AuthorizationBearer <token>

In: header

Scope: eprospera:entity.read

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/me/legal-entities/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "optionId": "string",    "type": "string",    "name": "string",    "extension": "string",    "nameStartsWithExtension": true,    "formationDate": "2019-08-24T14:15:22Z",    "registrationDate": "2019-08-24T14:15:22Z",    "dissolutionDate": "2019-08-24T14:15:22Z",    "residentPermitNumber": "string",    "principalOfficeAddress": {      "line1": "string",      "line2": "string",      "city": "string",      "state": "string",      "postalCode": "string",      "country": "string"    },    "createdAt": "2019-08-24T14:15:22Z"  }}
{  "error": "string",  "error_description": "string",  "details": [    null  ]}
{  "error": "string",  "error_description": "string",  "details": [    null  ]}
{  "error": "string",  "error_description": "string",  "details": [    null  ]}
{  "error": "string",  "error_description": "string",  "details": [    null  ]}
{  "error": "string",  "error_description": "string",  "details": [    null  ]}
{  "error": "string",  "error_description": "string",  "details": [    null  ]}
{  "error": "string",  "error_description": "string",  "details": [    null  ]}