# Mslpsapi.FreightApi

All URIs are relative to *http://192.168.1.80/lps*

Method | HTTP request | Description
------------- | ------------- | -------------
[**freightCalcFreight**](FreightApi.md#freightCalcFreight) | **POST** /api/Freight/CalcFreight | 计算运费
[**freightGetAllTemplate**](FreightApi.md#freightGetAllTemplate) | **GET** /api/Freight/GetAllTemplate | 获取所有运费模版


<a name="freightCalcFreight"></a>
# **freightCalcFreight**
> BaseResponseResult freightCalcFreight(channelCode, orderPrice, weigth, countryCode)

计算运费

### Example
```javascript
var Mslpsapi = require('mslpsapi');

var apiInstance = new Mslpsapi.FreightApi();

var channelCode = "channelCode_example"; // String | 渠道编码

var orderPrice = 1.2; // Number | 价格

var weigth = 1.2; // Number | 重量

var countryCode = "countryCode_example"; // String | 国家编码


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.freightCalcFreight(channelCode, orderPrice, weigth, countryCode, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **channelCode** | **String**| 渠道编码 | 
 **orderPrice** | **Number**| 价格 | 
 **weigth** | **Number**| 重量 | 
 **countryCode** | **String**| 国家编码 | 

### Return type

[**BaseResponseResult**](BaseResponseResult.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json

<a name="freightGetAllTemplate"></a>
# **freightGetAllTemplate**
> BaseResponseResult freightGetAllTemplate()

获取所有运费模版

### Example
```javascript
var Mslpsapi = require('mslpsapi');

var apiInstance = new Mslpsapi.FreightApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.freightGetAllTemplate(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**BaseResponseResult**](BaseResponseResult.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/json

