Import Delivery Cost

This is the endpoint for fetching Import delivery cost.

Delivery Cost

Endpoint => /orders/import-price

POST /orders/import-price

Headers

Request Body

{
    "status": "Success",
    "description": "Request Successful",
    "data": {
        "price": "20.00",
        "currency": "£"
    }
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://apisandbox.fezdelivery.co/v1/orders/import-price',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
   "destinationState":"KANO",
    "importLocationId": 2,
    "weight": 5
  }',
  CURLOPT_HTTPHEADER => array(
    'secret-key: {{Your Secret Key}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Last updated