> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useautumn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Advance Test Clock

> Advance a customer's Stripe test clock to a future time in milliseconds. Only Stripe test-mode customers with a test clock are supported. Advancement is asynchronous; Stripe enforces clock status and advancement limits.

### Body Parameters

The ID of the customer whose Stripe test clock to advance.

Target time as a Unix timestamp in milliseconds. Rounded down to whole seconds; must be later than the current clock time.

### Response

The Stripe test clock's frozen time in milliseconds.


## OpenAPI

````yaml openapi POST /v1/customers.advance_test_clock
openapi: 3.1.0
info:
  title: Autumn API
  version: 2.6.0
servers:
  - url: https://api.useautumn.com
    description: Production server
security:
  - secretKey: []
paths:
  /v1/customers.advance_test_clock:
    post:
      tags:
        - customers
      description: >-
        Advance a customer's Stripe test clock to a future time in milliseconds.
        Only Stripe test-mode customers with a test clock are supported.
        Advancement is asynchronous; Stripe enforces clock status and
        advancement limits.
      operationId: advanceTestClock
      parameters:
        - name: x-api-version
          in: header
          required: true
          schema:
            type: string
            default: 2.6.0
          x-speakeasy-globals-hidden: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                customer_id:
                  type: string
                  minLength: 1
                  description: The ID of the customer whose Stripe test clock to advance.
                frozen_time:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                  description: >-
                    Target time as a Unix timestamp in milliseconds. Rounded
                    down to whole seconds; must be later than the current clock
                    time.
              required:
                - customer_id
                - frozen_time
              title: AdvanceTestClockParams
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  customer_id:
                    type: string
                  frozen_time:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                    description: The Stripe test clock's frozen time in milliseconds.
                  status:
                    enum:
                      - advancing
                      - internal_failure
                      - ready
                    type: string
                required:
                  - customer_id
                  - frozen_time
                  - status
                title: AdvanceTestClockResponse
      x-codeSamples:
        - lang: typescript
          label: Typescript (SDK)
          source: |-
            import { Autumn } from 'autumn-js'

            const autumn = new Autumn()

            const result = await autumn.customers.advanceTestClock({
              customerId: "<id>",
              frozenTime: 202884,
            });
        - lang: python
          label: Python (SDK)
          source: |-
            from autumn_sdk import Autumn

            autumn = Autumn(secret_key="am_sk_test...")

            res = autumn.customers.advance_test_clock(
                customer_id="<id>",
                frozen_time=202884,
            )
components:
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.