Skip to main content

Scheduler Status API

Overview​

The Scheduler Status API provides visibility into the data synchronization tasks that keep the platform's data up to date. You can use this API to check when data was last synchronized and whether sync tasks completed successfully.

Note: This API provides read-only access to task status information. All scheduled tasks are managed and executed automatically by the system.

Base Endpoint: /api/scheduler

API Endpoints​

1. List All Registered Tasks​

Retrieve a list of all registered scheduled task names.

Endpoint: GET /api/scheduler/tasks

Request:

curl "https://api.alaikis.com/std/api/scheduler/tasks" \
-H "X-API-Key: your_api_key" \
-H "X-API-Secret: your_api_secret"

Response:

{
"code": 200,
"msg": "Request successful",
"data": [
"china-tax-sync",
"eu-vat-sync",
"gst-sales-tax-sync",
"hs-code-sync",
"oecd-corporate-tax-sync",
"postcode-sync",
"un-numbers-sync",
"wikipedia-vat-sync"
]
}

2. Get Task Status​

Retrieve the current execution status of a specific task.

Endpoint: GET /api/scheduler/status/taskName}

Parameters:

ParameterTypeRequiredDescription
taskNameStringYesTask name

Request:

curl "https://api.alaikis.com/std/api/scheduler/status/eu-vat-sync" \
-H "X-API-Key: your_api_key" \
-H "X-API-Secret: your_api_secret"

Response:

{
"code": 200,
"msg": "Request successful",
"data": "SUCCESS"
}

Status Values:

StatusDescription
RUNNINGTask is currently executing
SUCCESSTask completed successfully
FAILEDTask execution failed

3. Get Last Run Time​

Retrieve the last successful execution time of a specific task.

Endpoint: GET /api/scheduler/last-run/taskName}

Parameters:

ParameterTypeRequiredDescription
taskNameStringYesTask name

Request:

curl "https://api.alaikis.com/std/api/scheduler/last-run/eu-vat-sync" \
-H "X-API-Key: your_api_key" \
-H "X-API-Secret: your_api_secret"

Response:

{
"code": 200,
"msg": "Request successful",
"data": "2026-05-21T02:00:00"
}

4. Get Task Overview​

Retrieve a summary of all registered tasks including their status and last run time.

Endpoint: GET /api/scheduler/overview

Request:

curl "https://api.alaikis.com/std/api/scheduler/overview" \
-H "X-API-Key: your_api_key" \
-H "X-API-Secret: your_api_secret"

Response:

{
"code": 200,
"msg": "Request successful",
"data": {
"totalTasks": 8,
"tasks": [
"china-tax-sync",
"eu-vat-sync",
"gst-sales-tax-sync",
"hs-code-sync",
"oecd-corporate-tax-sync",
"postcode-sync",
"un-numbers-sync",
"wikipedia-vat-sync"
],
"details": [
{
"taskName": "china-tax-sync",
"status": "SUCCESS",
"lastRun": "2026-05-21T02:00:00"
},
{
"taskName": "eu-vat-sync",
"status": "SUCCESS",
"lastRun": "2026-05-21T02:15:00"
},
{
"taskName": "gst-sales-tax-sync",
"status": "SUCCESS",
"lastRun": "2026-05-21T02:30:00"
},
{
"taskName": "hs-code-sync",
"status": "SUCCESS",
"lastRun": "2026-05-01T03:00:00"
},
{
"taskName": "oecd-corporate-tax-sync",
"status": "SUCCESS",
"lastRun": "2026-05-21T02:45:00"
},
{
"taskName": "postcode-sync",
"status": "SUCCESS",
"lastRun": "2026-05-01T03:30:00"
},
{
"taskName": "un-numbers-sync",
"status": "SUCCESS",
"lastRun": "2026-05-01T04:00:00"
},
{
"taskName": "wikipedia-vat-sync",
"status": "SUCCESS",
"lastRun": "2026-05-21T02:00:00"
}
]
}
}

Registered Tasks Reference​

Task NameDescriptionScheduleRelated API
china-tax-syncChina tax rate synchronizationMonthlyTax Rate API
eu-vat-syncEU VAT rate synchronizationDailyTax Rate API
gst-sales-tax-syncGST/SalesTax rate synchronizationMonthlyTax Rate API
hs-code-syncHS Code synchronizationMonthlyHS Code API
oecd-corporate-tax-syncOECD corporate tax synchronizationMonthlyTax Rate API
postcode-syncPostcode data synchronizationMonthlyBig Data API
un-numbers-syncUN Numbers synchronizationMonthlyUN Numbers API
wikipedia-vat-syncWikipedia VAT rate synchronizationMonthlyTax Rate API