Create a test clock

Changed on

Creates a new test clock that can be attached to new customers and quotes.

post/v1/test_helpers/test_clocks

Request

  • Base URL: https://api.stripe.com
  • URL: https://api.stripe.com/v1/test_helpers/test_clocks
  • Auth: one of:
    • HTTP basic
    • HTTP bearer

Request body application/x-www-form-urlencoded

customerstring

Existing customer this test clock will be attached to. Once attached, customers can't be removed from a test clock.

expandstring[]

Specifies which fields in the response should be expanded.

frozen_timeinteger required

The initial frozen time for this test clock.

namestring

The name for this test clock.

Response

Successful response.

createdinteger required

Time at which the object was created. Measured in seconds since the Unix epoch.

deletes_afterinteger required

Time at which this clock is scheduled to auto delete.

frozen_timeinteger required

Time at which all objects belonging to this clock are frozen.

idstring required

Unique identifier for the object.

livemodeboolean required

If the object exists in live mode, the value is true. If the object exists in test mode, the value is false.

namestring nullable

The custom name supplied at creation.

object'test_helpers.test_clock' required

String representing the object's type. Objects of the same type share the same value.

status'advancing' | 'internal_failure' | 'ready' required

The status of the Test Clock.

Changes

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////////// to the response with the status

Some revisions have not been checked yet.