BillKit/Docs Console
Test clocks

Advance test clock

Move a test clock forward and let everything due in between happen.

POST/v1/test_clocks/{test_clock_id}/advance
Operation advance_test_clock · Scope test_clocks:write · Spec snapshot 2026-09-13

Parameters

ParameterDescription
test_clock_idstring · pathrequiredNo description in the spec.
frozen_timeintegerrequiredNo description in the spec.

Returns

Returns a TestClockResponse object.

Errors

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