Search via Waybill Number

This endpoint allows you get an order via clients own waybill number (unique idnetifier)

Search Order via waybill Number

Endpoint => /orders/search/{waybillNumber}

GET /orders/search/{waybillNumber}

Headers

Name
Type
Description

Authorization *

String

Your Bearer Token

secret-key*

String

Your Secret Key

Params

Name
Type
Description

waybillNumber

String

The client's unique identifier for a particular order on their own system.

{
    "status": "Success",
    "description": "Order Fetch Successfully",
    "data": {
        "orderNumber": "KMXH15082440",
        "waybillNumber": "74U839SUSY7"
    }
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://apisandbox.fezdelivery.co/v1/orders/search/64-UU0P8-NG',
  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;

The startDate and endDate is based on order Date.

Last updated