Commet
  • Pricing
Log InTry out
Advance test clock POSTGet test clock state GETProcess pending billing POST
System status
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Advance test clock

Moves the test clock forward, by a number of days (advanceDays) or to an absolute instant (frozenTime). The clock can only move forward. Sandbox only.

POST
/test-clock

Moves the test clock forward, by a number of days (advanceDays) or to an absolute instant (frozenTime). The clock can only move forward. Sandbox only.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

advanceDays?integer
Range0 < value <= 9007199254740991
frozenTime?string
Formatdate-time

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/test-clock" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "data": {    "simulatedTime": "2019-08-24T14:15:22Z",    "isActive": true,    "now": "2019-08-24T14:15:22Z",    "object": "test_clock",    "livemode": true  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}

Update payment method POST

Creates a hosted checkout session for the customer to update the subscription's default payment method.

Get test clock state GET

Returns the organization's current test clock state. Sandbox only.