Skip to main content

Service status

The API version and the health of its services.

Get the API version

GET https://api.dawatrack.com/partner-api/v1/version/

The API version and the EPCIS version it supports. No credentials needed.

No credentials needed Limit 60 per hour per IP address

Example request

curl -X GET https://api.dawatrack.com/partner-api/v1/version/
import requests

response = requests.get(
    "https://api.dawatrack.com/partner-api/v1/version/",
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.dawatrack.com/partner-api/v1/version/", {
  method: "GET",
});
console.log(await response.json());

Response fields

  • api string

    The API version.

    Default: v1

  • epcis_version string

    The EPCIS version supported.

    Default: 2.0

  • status string

    Default: ok

Example response

JSON
{
  "api": "v1",
  "epcis_version": "2.0",
  "status": "OPEN"
}

Status codes

200OK
429Rate limit exceeded

Check service health

GET https://api.dawatrack.com/partner-api/v1/health/

The status of the database, cache and task queue. No credentials needed.

No credentials needed

Returns 503 when a service is down. Not rate limited, so a monitor can poll it as often as it needs.

Example request

curl -X GET https://api.dawatrack.com/partner-api/v1/health/
import requests

response = requests.get(
    "https://api.dawatrack.com/partner-api/v1/health/",
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.dawatrack.com/partner-api/v1/health/", {
  method: "GET",
});
console.log(await response.json());

Response fields

  • status string

    Default: ok

  • database string

    Database status.

    Default: ok

  • redis string

    Cache status.

    Default: ok

  • celery string

    Task queue status.

    Default: ok

Example response

JSON
{
  "status": "OPEN",
  "database": "ok",
  "redis": "ok",
  "celery": "ok"
}

Status codes

200OK
503A service is unavailable

Partner API v1. The API reference is generated from the API's own code.