Skip to main content

Health Check

Check the health of the Payment Links API.

Endpoint​

GET /health

Response Parameters​

Status Code: 200 OK​

ParameterTypeDescription
statusstringOverall status to indicate whether the API is healthy - healthy
versionstringVersion of the API major.minor.patch
uptimeMsintegerMilliseconds the service has been running
durationMsintegerMilliseconds the health check request took to complete
componentsobjectList of components and their health status

Components Object​

ParameterTypeDescription
self.statusstringIndicates the state of the component
self.durationMsintegerTime taken to call the component (ms)
SQL Server.statusstringIndicates the state of the component
SQL Server.durationMsintegerTime taken to call the component (ms)
Merchant API.statusstringIndicates the state of the component
Merchant API.durationMsintegerTime taken to call the component (ms)

Example Request​

GET /health

Example Response​

{
"status": "healthy",
"version": "1.0.109-manual",
"uptimeMs": 7949156,
"durationMs": 73,
"components": {
"self": {
"status": "healthy",
"durationMs": 0
},
"SQL Server": {
"status": "healthy",
"durationMs": 1
},
"Merchant API": {
"status": "healthy",
"durationMs": 73
}
}
}

Status Code: 503 Service Unavailable​

Returned when one or more components are unhealthy.