Export Delivery Cost

This is the endpoint for fetching Export delivery cost.

Delivery Cost

Endpoint => /orders/export-price

GET /orders/export-price

Headers

Name
Type
Description

Authorization *

String

Your Bearer Token

secret-key*

String

Your Secret Key

Request Body

Name
Type
Description

weightId*

integer

WeightID for the item from the location and weight API

exportLocationId*

integer

Fez's ID for the international location you are importing from. Check import location API

{
    "status": "Success",
    "description": "Request Successful",
    "data": {
        "price": "17500.00",
        "discountedRate": "17500.00",
        "discount": "N",
        "orderLocked": "N"
    }
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://apisandbox.fezdelivery.co/v1/orders/export-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 =>'{
    "exportLocationId": 2,
    "weightId": 5
  }',
  CURLOPT_HTTPHEADER => array(
    'secret-key: {{Your Secret Key}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Last updated