> For the complete documentation index, see [llms.txt](https://fez-delivery-co.gitbook.io/fezcorporate-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fez-delivery-co.gitbook.io/fezcorporate-api-docs/api-endpoints/orders/track.md).

# Track

This endpoints returns an order object which includes the status of the order, sender/recipient name and sender/recipient address. It also returns the history object which contains the history/timeline of the order.

## Endpoint => /order/track/{orderNumber}

<mark style="color:blue;">`GET`</mark> `/order/track/{orderNumber}`

#### Headers

| Name                                             | Type   | Description       |
| ------------------------------------------------ | ------ | ----------------- |
| Authorization <mark style="color:red;">\*</mark> | String | Your Bearer Token |
| secret-key<mark style="color:red;">\*</mark>     | String | Your Secret Key   |

{% tabs %}
{% tab title="200 Success" %}

```json
{
  "status": "Success",
  "description": "History Fetched",
  "order": {
    "orderNo": "1T7002122309",
    "orderStatus": "Dispatched",
    "recipientAddress": "10",
    "recipientName": "ferferf",
    "senderAddress": "3A SULAIMON SHODERU STREET, HARUNA BUS STOP, IKORODU",
    "senderName": "  KIDS PLACE",
    "recipientState": "Lagos",
    "createdAt": "2023-12-02 06:14:09",
    "timezone": "Africa/Lagos",
    "proofOfDelivery": null
  },
  "history": [
    {
      "orderStatus": "Dispatched",
      "statusCreationDate": "2023-12-02 13:14:40",
      "statusDescription": "Your package is on its way to the delivery address and is en route to the customer"
    },
    {
      "orderStatus": "Picked-Up",
      "statusCreationDate": "2023-12-02 13:14:09",
      "statusDescription": "Our rider has picked-up your item and is heading back to the office"
    }
  ]
}
```

{% endtab %}

{% tab title="401 Unauthorized" %}

```
{
    "status": "Error",
    "description": "Organization Secret Key is Required"
}
```

{% endtab %}
{% endtabs %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://apisandbox.fezdelivery.co/v1/order/track/1T7002122309',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'secret-key: {{Your Secret Key}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```
