# Get the Subsidiaries of a TOE source: https://developer.mastercard.com/riskrecon-api/documentation/testing/subsidiaries-samples/subs-smpl/index.md Allows you to fetch a list of all subsidiaries associated with a given TOE. ## Pre-requisites {#pre-requisites} Refer to the [Retrieve the Subsidiaries of a TOE](https://developer.mastercard.com/riskrecon-api/documentation/use-cases/portfolio-management/subsidiaries/retrve-subs-toe/index.md) use case. ## Request URL for Sandbox environment {#request-url-for-sandbox-environment} GET https://api.sandbox.riskrecon.com/v1/subsidiaries/toe_id/{toe_id} ## Request URL for Production environment {#request-url-for-production-environment} GET https://api.riskrecon.com/v1/subsidiaries/toe_id/{toe_id} ## Test Cases {#test-cases} ### Test Case: Success - Retrieve a list of subsidiaries associated with the given TOE ID. {#test-case-success---retrieve-a-list-of-subsidiaries-associated-with-the-given-toe-id} **Request** Here is an example of a request made using a `curl` command. ```bash curl -X 'GET' \ 'https://api.sandbox.riskrecon.com/v1/subsidiaries/toe_id/09918d09-8d52-4e86-a3ec-5ef4d461e2ba' \ -H 'accept: application/json' -H 'Authorization: valid_JWT_token' ``` **Response** get: ```json [ { "created_at": "2019-03-11T15:25:45", "date_updated": "2019-08-16 06:10:39.639475", "domains": [ "orn.com" ], "factset_id": "207554", "id": 207586, "is_removed": true, "is_scannable": true, "name": "Dooley-Johns", "note": "", "own_toe_id": null, "possible_own_toe_ids": [], "primary_evidence": "Redirect", "primary_evidence_reference": "Redirects to http://klocko.net", "scan": "1", "secondary_evidence": "Factset", "support_email": "cleora1902@weissnat.net", "toe_id": "09918d09-8d52-4e86-a3ec-5ef4d461e2ba", "updated_at": "2020-03-12T05:45:44", "verified": "1" }, { "created_at": "2019-03-11T15:25:45", "date_updated": "2019-08-16 06:10:39.639475", "domains": [ "roob.com" ], "factset_id": "1186", "id": 1218, "is_removed": true, "is_scannable": true, "name": "Lockman, Bosco and Roberts", "note": "", "own_toe_id": null, "possible_own_toe_ids": [], "primary_evidence": "Redirect", "primary_evidence_reference": "Redirects to http://powlowski.net", "scan": "1", "secondary_evidence": "Factset", "support_email": "jennyfer2057@marquardt.biz", "toe_id": "5976423a-ee35-11e3-8569-14109ff1a304", "updated_at": "2020-03-12T05:45:44", "verified": "1" } ] ``` ### Test Case: Fail - Incorrect Endpoint {#test-case-fail---incorrect-endpoint} **Request** Here is an example of a request made with an incorrect endpoint URL using a `curl` command. ```bash curl -X 'GET' \ 'https://api.sandbox.riskrecon.com/v1/subsidiary/toe_id/5976423a-ee35-11e3-14109ff1a304' \ -H 'accept: application/json' -H 'Authorization: valid_JWT_token' ``` **Response** HTTP Error response 404 ```json { "Errors": { "Error": [ { "Description": "Resource Not found.", "Details": null, "ReasonCode": "NOT_FOUND", "Recoverable": false, "Source": "RISKRECON_API" } ] } } ```