Retrieve Delegates
Retrieves the delegates linked with an intermediary based on itemId , intermediaryTaxId, delegatedTaxId.
[GET]/api/v1/{itemId}/intermediary/{intermediaryTaxId}/delegated
[GET]/api/v1/{itemId}/intermediary/{intermediaryTaxId}/delegated/{delegatedTaxId}
delegatedTaxId parameter is optional.
Response: List of delegates.
Header
Header used on this API are those taken from header standards of TS Digital.
Content-type is accepted in application/json
Query Parameters
Parameters used to make a successful request.
Body
No body is needed to make this request.
Response
On successful response
If successful, the API responds with HTTP code 200(OK) with the following body:
[
{
"id": "string",
"taxId": "string",
"firstName": "string",
"lastName": "string",
"description": "string",
"deleted": true,
"deletedAt": "2022-05-06T12:21:24.675Z",
"deletedBy": "string",
"intermediaryId": "string",
"createdAt": "2022-05-06T12:21:24.675Z",
"createdBy": "string",
"updatedAt": "2022-05-06T12:21:24.675Z",
"updatedBy": "string"
}
]
On error response
In the event of an error, the API responds with a body JSON with the following format:
{
"code": "string",
"timestamp": "2022-05-05T12:46:42.016Z",
"message": "string",
"subErrors": [
{}
]
}
Possible errors are: