Advance test clock
curl --request POST \
--url https://uat-api.clinkbill.com/api/subscription/test-clocks/{clockId}/advance \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"targetFrozenTime": 1755078906689
}
'HttpResponse<String> response = Unirest.post("https://uat-api.clinkbill.com/api/subscription/test-clocks/{clockId}/advance")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"targetFrozenTime\": 1755078906689\n}")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/subscription/test-clocks/{clockId}/advance"
payload = { "targetFrozenTime": 1755078906689 }
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({targetFrozenTime: 1755078906689})
};
fetch('https://uat-api.clinkbill.com/api/subscription/test-clocks/{clockId}/advance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "success",
"data": {
"taskId": "<string>",
"clockId": "<string>",
"subscriptionId": "<string>",
"fromTime": 123,
"toTime": 123,
"status": "CREATED",
"lastEventId": "<string>",
"lastEventTime": 123,
"summary": "<string>",
"errorMessage": "<string>",
"createTime": 123,
"updateTime": 123
}
}"<string>"Test Clock
Advance Test Clock
Advance a test clock to the target frozen timestamp
POST
/
subscription
/
test-clocks
/
{clockId}
/
advance
Advance test clock
curl --request POST \
--url https://uat-api.clinkbill.com/api/subscription/test-clocks/{clockId}/advance \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"targetFrozenTime": 1755078906689
}
'HttpResponse<String> response = Unirest.post("https://uat-api.clinkbill.com/api/subscription/test-clocks/{clockId}/advance")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"targetFrozenTime\": 1755078906689\n}")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/subscription/test-clocks/{clockId}/advance"
payload = { "targetFrozenTime": 1755078906689 }
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-API-KEY': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({targetFrozenTime: 1755078906689})
};
fetch('https://uat-api.clinkbill.com/api/subscription/test-clocks/{clockId}/advance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "success",
"data": {
"taskId": "<string>",
"clockId": "<string>",
"subscriptionId": "<string>",
"fromTime": 123,
"toTime": 123,
"status": "CREATED",
"lastEventId": "<string>",
"lastEventTime": 123,
"summary": "<string>",
"errorMessage": "<string>",
"createTime": 123,
"updateTime": 123
}
}"<string>"Authorizations
Your secret API key obtained from the Clink dashboard (Developers section)
Headers
Current timestamp in milliseconds since Unix epoch (required for request signing)
Example:
"1783513683000"
Path Parameters
Unique identifier of the test clock
Body
application/json
Parameters required to advance a test clock
Target frozen timestamp in milliseconds since Unix epoch
Response
Test clock advance task created successfully