cj logo

Tracking

Copied!
copy

This HTTP POST request is used to track a workflow using ClearJet's tracking ID. The request should include a JSON payload with the tracking ID.

Upon successful execution, the response will include the latest status along with the historical list of events related to the tracking ID. Available statuses are configurable and available upon request. The date/time returned is UTC+0.

Request Body

tracking_id

(string)

The tracking ID for the workflow.

Authorization

Token   <token>

Body

raw (json)
json
Copied!
copy
{
    "tracking_id": "CJ29263298"
}

Example Request

curl
Copied!
copy
curl --location 'https://os.clearjet.com/version-test/api/1.1/wf/tracking' \
--data '{
    "tracking_id": "CJ29263298"
}'

Example Response

json
Copied!
copy
{
    "status": "Delivered",
    "events": [
        {
            "event": "Ordered"
            "datetime": "Mar 4, 2024 11:32 am"
        },
        {
            "event": "Out for Delivery"
            "datetime": "Mar 29, 2024 5:44 pm"
        },
        {
            "event": "Delivered"
            "datetime": "Mar 4, 2024 6:56 pm"
        }
    ]
}

Date

Wed, 13 Mar 2024 09:10:48 GMT

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

x-powered-by

Express

access-control-allow-origin

*

x-bubble-perf

{"total":280.2,"percents":{"top":{"bubble_cpu":53.4,"block":45.5,"capacity_rl":0,"other_pause":0,"pre_fiber":0.2},"sub":{"pp_userdb":11.1,"pp_wait_userdb":0.4,"http_request":0,"serverjson":25.8,"appserver_cache_misses_time":0,"redis":49.7,"fiber_queue":0.8,"capacity_wait":0}},"counts":{"pp_userdb":11,"http_request":0,"derived_build":0,"derived_cache_attempts":2,"derived_cache_memory_misses":2,"serverjson":38,"appserver_cache_attempts":1,"appserver_mem_cache_hits":0,"appserver_cache_hits":1,"appserver_cache_misses":0,"redis":66,"fiber_queue":75,"blocks":74},"misc":{"userdb_results":18,"userdb_data":10832,"spent_time":31440101}}

x-bubble-capacity-used

0.484 unit-seconds used

x-bubble-capacity-limit

0 ms slower

vary

Accept-Encoding

CF-Cache-Status

DYNAMIC

Server

cloudflare

CF-RAY

863ae498afb0392e-IAD

Content-Encoding

br

alt-svc

h3=":443"; ma=86400