---
title: "CalculateShippingCharge"
method: POST
path: "/v2/CalculateShippingCharge"
tags: ["Shipping"]
---

# CalculateShippingCharge

`POST /v2/CalculateShippingCharge`

Calculates the shipping charge supported by the MyFatoorah Shipping Module for either DHL or ARAMEX. You should provide the CityName and CountryCode parameters which can be retrieved by the GetCities and GetCountries endpoints respectively.

## Request body

- object
  - `ShippingMethod` 1 | 2, required — 1 for DHL, 2 for ARAMEX
  - `Items` object[], required — Array of shipping items
    - `ProductName` string — The product name
    - `Description` string — The product description
    - `Weight` number — Weight in kg (100 >= Weight > 0)
    - `Width` number — Width in cm (200 >= Width > 0)
    - `Height` number — Height in cm (160 >= Height > 0)
    - `Depth` number — Depth in cm (200 >= Depth > 0)
    - `Quantity` integer — The quantity of items
    - `UnitPrice` number — The unit price per item
  - `CityName` string, required — The city name retrieved from GetCities endpoint
  - `PostalCode` string — The postal code (optional)
  - `CountryCode` string, required — The country code retrieved from GetCountries endpoint

## Response `200`

Successful response

- object
  - `IsSuccess` boolean — Indicates if the request was successful
  - `Message` string — Response message
  - `FieldsErrors` unknown[] — List of validation errors if any
    - unknown
  - `Data` object — Shipping charge calculation result
    - `Currency` string — The currency of the shipping charge
    - `Fees` number — The calculated shipping fees

---

[API](https://skmtc.net/myfatoorah/apis/myfatoorah-api-v3.md) · [All operations](https://skmtc.net/myfatoorah/apis/myfatoorah-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myfatoorah/myfatoorah-api-v3/revisions/994a74287a16/schema)
