# Import Delivery Cost

Delivery Cost

## Endpoint => /orders/import-price

<mark style="color:green;">`POST`</mark> `/orders/import-price`

#### Headers

| Name                                             | Type   | Description       |
| ------------------------------------------------ | ------ | ----------------- |
| Authorization <mark style="color:red;">\*</mark> | String | Your Bearer Token |
| secret-key<mark style="color:red;">\*</mark>     | String | Your Secret Key   |

#### Request Body

| Name                                               | Type    | Description                                                                               |
| -------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------- |
| destinationState<mark style="color:red;">\*</mark> | string  | State to importing to                                                                     |
| weight<mark style="color:red;">\*</mark>           | integer | Weight of item to be imported in Kg                                                       |
| importLocationId<mark style="color:red;">\*</mark> | integer | Fez's ID for the international location you are importing from. Check import location API |

{% tabs %}
{% tab title="200 Success" %}

```json
{
    "status": "Success",
    "description": "Request Successful",
    "data": {
        "price": "20.00",
        "currency": "£"
    }
}
```

{% endtab %}

{% tab title="401 Unauthorized" %}

```
{
    "status": "Error",
    "description": "Organization Secret Key is Required"
}
```

{% endtab %}
{% endtabs %}

<pre class="language-php"><code class="lang-php">&#x3C;?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
<strong>  }',
</strong>  CURLOPT_HTTPHEADER => array(
    'secret-key: {{Your Secret Key}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
</code></pre>
