---
search:
  tags:
    - testClocks
    - POST
seo:
  description: Reference for the POST /v1/test-clocks endpoint in the Vortex Payments API.
sidebar:
  label: POST /v1/test-clocks
  badge: POST
title: POST /v1/test-clocks
type: openapi-operation
---
`POST /v1/test-clocks`

**curl**

```bash
curl "https://api.vortex.nyc/v1/test-clocks?environment=...&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{...}'
```

**TypeScript**

```ts
import { createTestClock, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await createTestClock({
  client: vortex,
  query: { environment: "...", merchantAccountId: "..." },
  body: {...},
});
```

**Request body** (`application/json`, required)

- `environment` (string | null)
- `merchantAccountId` (string | null)
- `testClockId` (string | null)
- `frozenTime` (string | null)

Request body example:

```json
{
  "environment": "sandbox",
  "merchantAccountId": "string",
  "testClockId": "string",
  "frozenTime": "string"
}
```

**Responses**

- `201` — Success

Response example, 201:

```json
{
  "data": {
    "testClockId": "string",
    "frozenTime": "string",
    "status": "ready",
    "createdAt": "string",
    "deletedAt": "string"
  },
  "requestId": "string"
}
```
