---
title: "Retrieve a test environment response"
method: GET
path: "/test-environments/{id}"
tags: ["Test Environments"]
---

# Retrieve a test environment response

`GET /test-environments/{id}`

Use this operation to retrieves a specific Test Environment by its unique identifier. 
It returns a TestEnvironmentResponse object if the environment is found. If the specified 
Test Environment does not exist, it returns a 404 error.

### User Access Permission

You must be assigned the **Refresh Central Sandbox** permission to run 
this operation.

## Path parameters

- `id` string, required

## Headers

- `Zuora-Entity-Ids` string
- `Zuora-Track-Id` string
- `Accept-Encoding` string
- `Content-Encoding` string

## Response `200`

Successfully retrieved Test Environment response

- TestEnvironmentResponse — The response containing details about the Test Environment
  - `createTime` string, date-time — The date and time when the Test Environment was first synced to self-service
  - `createdById` string — The automatically generated ID of the Zuora user who created the Test Environment object
  - `dataCopyType` 'FULL' | 'CONFIGURATION' — The data copy approach for the Test Environment
  - `deactivationTime` string, date-time — The date and time when the Test Environment will be deactivated
  - `environmentType` 'TEST' | 'ENTERPRISE' | 'TRIAL' | 'DEMO' | 'DEVELOPER' — The type of tenant for the Test Environment
  - `id` string — The unique ID (UUID) of the Test Environment
  - `lastRefreshTime` string, date-time — The date and time when the Test Environment was last refreshed
  - `nextRefreshTime` string, date-time — The date and time when the Test Environment can be refreshed again
  - `provisionTime` string, date-time — The date and time when the Test Environment was provisioned
  - `revenueTenantId` string — The revenue tenant ID if a revenue sandbox is attached
  - `revenueTenantName` string — The revenue tenant name if a revenue sandbox is attached
  - `sourceTenantId` string — The source tenant ID from which the Test Environment was created
  - `status` 'ACTIVE' | 'PROCESSING' | 'INACTIVE' | 'DEACTIVATED' | 'DELETED' — The current status of the Test Environment
  - `tenantId` string — The tenant ID of the Test Environment
  - `tenantName` string — The tenant name of the Test Environment
  - `updateTime` string, date-time — The date and time when the Test Environment was last synced to self-service
  - `updatedById` string — The automatically generated ID of the Zuora user who updated the Test Environment object

## Other responses

- `404` — The resource you were trying to reach is not found
- `500` — Internal Error

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
