Import Delivery Cost
This is the endpoint for fetching Import delivery cost.
Delivery Cost
Endpoint => /orders/import-price
POST
/orders/import-price
Headers
Name
Type
Description
Authorization *
String
Your Bearer Token
secret-key*
String
Your Secret Key
Request Body
Name
Type
Description
destinationState*
string
State to importing to
weight*
integer
Weight of item to be imported in Kg
importLocationId*
integer
Fez's ID for the international location you are importing from. Check import location API
{
"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