Commet
  • Precios
Iniciar SesiónRegistrarse
Advance test clock POSTGet test clock state GETProcess pending billing POST
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

Get test clock state

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

Advance test clock POST

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.

Process pending billing POST

Discovers customers due for billing at the org's current (simulated) time and enqueues a billing cycle for each — renewals, expired trials, pending cancellations. Enqueueing is asynchronous. Sandbox only.

GET
/test-clock

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://commet.co/api/v1/test-clock"

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

{
  "success": true,
  "data": {
    "object": "test_clock",
    "livemode": true,
    "simulatedTime": "2019-08-24T14:15:22Z",
    "isActive": true,
    "now": "2019-08-24T14:15:22Z"
  }
}
{
  "success": false,
  "error": {
    "type": "validation_error",
    "code": "string",
    "message": "string",
    "doc_url": "string",
    "param": "string"
  }
}
{
  "success": false,
  "error": {
    "type": "validation_error",
    "code": "string",
    "message": "string",
    "doc_url": "string",
    "param": "string"
  }
}