# Tính giá

## GetPriceForCustomerAPI

<mark style="color:green;">`POST`</mark> `/Api/Customer/GetPriceForCustomerAPI`

#### Request Body

| Name             | Type   | Description                                                                               |
| ---------------- | ------ | ----------------------------------------------------------------------------------------- |
| ServiceTypeID    | string | Mã dịch vụ                                                                                |
| ClientHubID      | number | Mã điểm lấy hàng (Không truyền hoặc truyền giá trị 0 khi KH có địa chỉ gửi không cố định) |
| RealWeight       | string | Trọng lượng thực (trọng lượng sau khi đã đóng gói) (kg)                                   |
| Height           | number | Chiều cao (truyền 0 nếu chưa xác định được kích thước) (cm)                               |
| Width            | number | Độ rộng (truyền 0 nếu chưa xác định được kích thước) (cm)                                 |
| Length           | number | Chiều dài (truyền 0 nếu chưa xác định được kích thước) (cm)                               |
| FromProvinceName | string | Tỉnh thành gửi (bắt buộc khi KH có địa chỉ gửi không cố định)                             |
| ToWardName       | string | Phường xã đến                                                                             |
| ToProvinceName   | string | Tỉnh thành đến                                                                            |

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

```
{
    "ExtraServices": [
        {
            "ServiceName": "Chuyển phát nhanh",
            "ServiceID": "DE",
            "Cost": 1184800.0
        },
        {
            "ServiceName": "Phí xăng dầu",
            "ServiceID": "Fuel",
            "Cost": 236960.0
        },
        {
            "ServiceName": "Phí VAT",
            "ServiceID": "VAT",
            "Cost": 142176.0
        }
    ],
    "TotalServiceCost": 1563936.0,
    "IsError": false,
    "Errors": [],
    "ErrorMessage": ""
}
```

{% endtab %}
{% endtabs %}

### Mẫu ví dụ:

```
{
    "ToProvinceName": "Hồ Chí Minh",
    "ToWardName": "Phường Cầu Ông Lãnh",
    "Length": 60,
    "Width": 60,
    "Height": 60,
    "RealWeight": 60,
    "ClientHubID": "5590",
    "ServiceTypeID": "DE"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidoc.247express.vn/customer/tinh-gia.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
