SureTax Config API
GET LegalEntities
Overview
The GET LegalEntities API endpoint facilitates the process of getting a legal entity info.
OperationId: GET LegalEntities
Authorization Method(s): OAuth
Verb: GET
End Point: /api/v1/Account/LegalEntities/{entitycode}
Query parameters in an API operation are key-value pairs that are included in the URL of an API request to filter or modify the data returned by the API. They come after the `?` in the URL and are often used to pass optional parameters like search terms, pagination information, sorting criteria, or filters to narrow down the data in the response.
Display String | Field Name | Field Type |
---|---|---|
Entitycode* | entitycode | string |
Overview
Represents the response containing the legal entity info.
Example Response
The following is an example response you can expect for this operation
{
"validationKey": "7dd28433-3c1b-4a44-a723-89aa9ead9a9b",
"entityName": "003258888",
"contactNumbers": [
{
"contactNumberType": "Office",
"contactPhonenumber": "1238123234"
}
],
"entityAddress": {
"address1": "1567 Street ct",
"address2": "",
"city": "Frisco",
"state": "TX",
"country": "US",
"zipcode": "11111",
"plus4": "1234"
},
"contactPersons": [
{
"personType": "PRIMARY",
"personName": "testname",
"emailAddress": "example@example.com"
}
],
"fein": "1234567890",
"website": "www.example.com",
"notificationBusinessEmail": "business@wk.com",
"entityDescription": "Description"
}
Response codes in an API indicate the outcome of a request. They are three-digit numbers returned by the server to help the client understand if the request was successful, encountered an error, or needs further action. This operation has the following possible responses.
code | description |
---|---|
200 | The API Response contains the information of the legal entity. |
204 | 204 No Content If no records are found for the provided request, the API will respond with a No Content status. |
400 | Bad request. Invalid parameters or missing required information. |
401 | Unauthorized access. The request requires user authentication. |
500 | Internal server error. An error occurred while processing the request. |