BillKit/Docs Console
Test clocks

Create test clock

Create a frozen clock so you can test billing over time.

POST/v1/test_clocks
Operation create_test_clock · Scope test_clocks:write · Spec snapshot 2026-09-13

Parameters

ParameterDescription
frozen_timeintegerrequiredNo description in the spec.
namestring | nulloptionalAt most 255 characters.

Returns

Returns a TestClockResponse object.

Errors

Status Cause
401 Missing or invalid API key.
403 Key is missing the test_clocks:write scope.
422 Validation Error
429 Rate limited. Back off and retry.
Request · curl
curl -X POST https://api.billkit.eu/v1/test_clocks \
  -H "Authorization: Bearer $BILLKIT_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"frozen_time":1789392000}'
Request body · every field
{
  "frozen_time": 1789392000,
  "name": "Ada Lovelace"
}
Response · 200 OK
{
  "created": 1789392000,
  "frozen_time": 1789392000,
  "id": "tc_9XKp2vQ1",
  "livemode": false,
  "name": "Ada Lovelace",
  "object": "test_clock"
}