Fez Business API
  • Introduction
  • API ENDPOINTS
    • Auth
      • Authenticate
      • Logout
      • Change Password
    • Orders
      • Create
      • Get
      • Update
      • Delete
      • Search
      • Search via Waybill Number
      • Status With Date Range
      • Fetch Delivery Cost
      • Track
      • Delivery Time Estimate
    • International Orders
      • Create Import Order
      • Import Items Categories
      • Import Locations
      • Import Delivery Cost
      • Export Locations
      • Create Export Order
      • Export Delivery Cost
    • Users
      • Create
      • Get All
      • Delete
    • Locker
      • Get All
      • Check Availability
    • Webhook
      • Register Order Webhook
      • Order Webhook Request
Powered by GitBook
On this page
  1. API ENDPOINTS
  2. Orders

Track

This is the endpoint can be used to get the status of an order and view the delivery timeline of that order.

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}

GET /order/track/{orderNumber}

Headers

Name
Type
Description

Authorization *

String

Your Bearer Token

secret-key*

String

Your Secret Key

{
  "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"
  },
  "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"
    }
  ]
}
{
    "status": "Error",
    "description": "Organization Secret Key is Required"
}
<?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;
PreviousFetch Delivery CostNextDelivery Time Estimate

Last updated 12 months ago