> For the complete documentation index, see [llms.txt](https://docs.shipbubble.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shipbubble.com/api-reference/duties-calculator-beta/calculate-custom-landed-cost-duties.md).

# Calculate custom (landed cost) duties

With this API, you will be able to fetch custom duty rates for your shipment package.

<mark style="color:blue;">`GET`</mark> `https://api.shipbubble.com/v1/shipping/landed-cost`

#### Query Parameters

| Name                                             | Type   | Description                                                                           |
| ------------------------------------------------ | ------ | ------------------------------------------------------------------------------------- |
| request\_token<mark style="color:red;">\*</mark> | String | <p>Request token from </p><p><strong>Fetch Rates API</strong></p>                     |
| store\_checkout\_currency                        | string | Currency you want the figure returned in (must be a valid **ISO 4217** currency code) |

{% hint style="warning" %}
This cost is only available for 24 hours after initial fetching. If you want to book a shipment after 24 hours with customs duties, you would need to fetch the duty rate again before booking
{% endhint %}

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "status": "success",
    "message": "Duties calculated successfully",
    "data": {
        "currency": "NGN",
        "amount": 83311.3
    }
}
```

{% endtab %}

{% tab title="400: Failed" %}

```json
{
    "status": "failed",
    "message": "No custom duty fees calculated for NG -> GB"
}
```

{% endtab %}
{% endtabs %}
