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.
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.
ApiKeyAuth In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= valuedate-timeapplication/json
application/json
curl -X POST "https://commet.co/api/v1/test-clock" \ -H "Content-Type: application/json" \ -d '{}'application/json
application/json
Days to move the simulated clock forward. Mutually exclusive with frozenTime.
Absolute ISO 8601 instant to move the clock to. Must be in the future. Mutually exclusive with advanceDays.
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.
{
"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"
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}