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",
    "service": "ClearJet Express",
    "events": [
        {
            "event": "Ordered"
            "datetime": "Mar 4, 2024 11:32 am"
        },
        {
            "event": "Out for Delivery"
            "datetime": "Mar 6, 2024 5:44 pm"
        },
        {
            "event": "Delivered"
            "datetime": "Mar 7, 2024 6:56 pm"
        }
    ]
}

Date

Fri, 09 Aug 2024 12:56:53 GMT

Content-Type

application/json

Transfer-Encoding

chunked

Connection

keep-alive

x-powered-by

Express

access-control-allow-origin

*

x-bubble-perf

{"total":130.2,"percents":{"top":{"bubble_cpu":52.2,"block":47.1,"capacity_rl":0,"other_pause":0,"pre_fiber":0.7},"sub":{"pp_userdb":33,"pp_wait_userdb":0,"http_request":0,"serverjson":3.8,"appserver_cache_misses_time":0,"redis":12.4,"fiber_queue":3.8,"capacity_wait":0}},"counts":{"pp_userdb":2,"http_request":0,"derived_build":0,"serverjson":42,"appserver_cache_attempts":0,"appserver_mem_cache_hits":0,"appserver_cache_hits":0,"appserver_cache_misses":0,"redis":22,"fiber_queue":31,"blocks":30},"misc":{"userdb_results":16,"userdb_data":11776,"spent_time":21184370}}

x-bubble-capacity-used

0.326 unit-seconds used

x-bubble-capacity-limit

0 ms slower

vary

Accept-Encoding

CF-Cache-Status

DYNAMIC

Server

cloudflare

CF-RAY

8b07e8a6dbf13938-IAD

Content-Encoding

br

alt-svc

h3=":443"; ma=86400