# Mslpsapi.LogisticsApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**logisticsDeleteChannelInfo**](LogisticsApi.md#logisticsDeleteChannelInfo) | **POST** /api/Logistics/DeleteChannelInfo | 根据标识和渠道编码删除渠道信息
[**logisticsDeleteCofigs**](LogisticsApi.md#logisticsDeleteCofigs) | **POST** /api/Logistics/DeleteCofigs | 根据物流标识删除配置信息
[**logisticsGetChannelInfo**](LogisticsApi.md#logisticsGetChannelInfo) | **GET** /api/Logistics/GetChannelInfo | 根据物流标识及渠道编码获取渠道信息
[**logisticsGetConfig**](LogisticsApi.md#logisticsGetConfig) | **GET** /api/Logistics/GetConfig | 根据物流标识获取配置信息
[**logisticsRefreshLogisticsNo**](LogisticsApi.md#logisticsRefreshLogisticsNo) | **POST** /api/Logistics/RefreshLogisticsNo | 根据提交单号更新物流单号并记录物流信息
[**logisticsSaveChannelInfo**](LogisticsApi.md#logisticsSaveChannelInfo) | **POST** /api/Logistics/SaveChannelInfo | 保存渠道信息
[**logisticsSaveConfig**](LogisticsApi.md#logisticsSaveConfig) | **POST** /api/Logistics/SaveConfig | 保存配置信息
[**logisticsSubMit**](LogisticsApi.md#logisticsSubMit) | **POST** /api/Logistics/SubMit | 提交物流并记录提交结果


<a name="logisticsDeleteChannelInfo"></a>
# **logisticsDeleteChannelInfo**
> BaseResponseResult logisticsDeleteChannelInfo(identity, channelCode)

根据标识和渠道编码删除渠道信息

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

var apiInstance = new Mslpsapi.LogisticsApi();

var identity = "identity_example"; // String | 物流标识

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **identity** | **String**| 物流标识 | 
 **channelCode** | **String**| 渠道编码 | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

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

根据物流标识删除配置信息

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

var apiInstance = new Mslpsapi.LogisticsApi();

var identity = "identity_example"; // String | 


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **identity** | **String**|  | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="logisticsGetChannelInfo"></a>
# **logisticsGetChannelInfo**
> BaseResponseResult logisticsGetChannelInfo(identity, channelCode)

根据物流标识及渠道编码获取渠道信息

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

var apiInstance = new Mslpsapi.LogisticsApi();

var identity = "identity_example"; // String | 物流标识

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


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **identity** | **String**| 物流标识 | 
 **channelCode** | **String**| 渠道编码 | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

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

根据物流标识获取配置信息

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

var apiInstance = new Mslpsapi.LogisticsApi();

var identity = "identity_example"; // String | 物流标识


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **identity** | **String**| 物流标识 | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="logisticsRefreshLogisticsNo"></a>
# **logisticsRefreshLogisticsNo**
> BaseResponseResult logisticsRefreshLogisticsNo(identity, configs, _number)

根据提交单号更新物流单号并记录物流信息

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

var apiInstance = new Mslpsapi.LogisticsApi();

var identity = "identity_example"; // String | 物流标识

var configs = [new Mslpsapi.ConfigInfo()]; // [ConfigInfo] | 配置信息

var _number = "_number_example"; // String | 提交单号


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **identity** | **String**| 物流标识 | 
 **configs** | [**[ConfigInfo]**](ConfigInfo.md)| 配置信息 | 
 **_number** | **String**| 提交单号 | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json, text/json, application/x-www-form-urlencoded
 - **Accept**: application/json, text/json

<a name="logisticsSaveChannelInfo"></a>
# **logisticsSaveChannelInfo**
> BaseResponseResult logisticsSaveChannelInfo(identity, channelCode, configJson, declareJson)

保存渠道信息

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

var apiInstance = new Mslpsapi.LogisticsApi();

var identity = "identity_example"; // String | 物流标识

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

var configJson = "configJson_example"; // String | 配置信息（json格式）

var declareJson = "declareJson_example"; // String | 报关信息（json格式）


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **identity** | **String**| 物流标识 | 
 **channelCode** | **String**| 渠道编码 | 
 **configJson** | **String**| 配置信息（json格式） | 
 **declareJson** | **String**| 报关信息（json格式） | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="logisticsSaveConfig"></a>
# **logisticsSaveConfig**
> BaseResponseResult logisticsSaveConfig(identity, configJson)

保存配置信息

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

var apiInstance = new Mslpsapi.LogisticsApi();

var identity = "identity_example"; // String | 物流标识

var configJson = "configJson_example"; // String | 配置信息（json格式）


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **identity** | **String**| 物流标识 | 
 **configJson** | **String**| 配置信息（json格式） | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="logisticsSubMit"></a>
# **logisticsSubMit**
> BaseResponseResult logisticsSubMit(identity, configs, opts)

提交物流并记录提交结果

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

var apiInstance = new Mslpsapi.LogisticsApi();

var identity = "identity_example"; // String | 物流标识

var configs = ["configs_example"]; // [String] | 配置信息

var opts = { 
  'orderInfoProductInfos': ["orderInfoProductInfos_example"], // [String] | 
  'orderInfoOrderNumber': "orderInfoOrderNumber_example", // String | 
  'orderInfoLogisticsNo': "orderInfoLogisticsNo_example", // String | 
  'orderInfoComment': "orderInfoComment_example", // String | 
  'orderInfoWeight': 1.2, // Number | 
  'orderInfoPrice': 1.2, // Number | 
  'orderInfoContact': "orderInfoContact_example", // String | 
  'orderInfoCompany': "orderInfoCompany_example", // String | 
  'orderInfoTel': "orderInfoTel_example", // String | 
  'orderInfoMobilePhone': "orderInfoMobilePhone_example", // String | 
  'orderInfoCountryCode': "orderInfoCountryCode_example", // String | 
  'orderInfoCountryCn': "orderInfoCountryCn_example", // String | 
  'orderInfoCountryEn': "orderInfoCountryEn_example", // String | 
  'orderInfoProvince': "orderInfoProvince_example", // String | 
  'orderInfoCity': "orderInfoCity_example", // String | 
  'orderInfoCountry': "orderInfoCountry_example", // String | 
  'orderInfoAddress1': "orderInfoAddress1_example", // String | 
  'orderInfoAddress2': "orderInfoAddress2_example", // String | 
  'orderInfoZipCode': "orderInfoZipCode_example", // String | 
  'orderInfoEmail': "orderInfoEmail_example", // String | 
  'orderInfoFax': "orderInfoFax_example", // String | 
  'orderInfoQuantity': 56, // Integer | 
  'orderInfoEShopIdentity': "orderInfoEShopIdentity_example", // String | 
  'orderInfoOriginalNo': "orderInfoOriginalNo_example", // String | 
  'orderInfoSendAddressCountry': "orderInfoSendAddressCountry_example", // String | 
  'orderInfoSendAddressCountryName': "orderInfoSendAddressCountryName_example", // String | 
  'orderInfoSendAddressProvince': "orderInfoSendAddressProvince_example", // String | 
  'orderInfoSendAddressCity': "orderInfoSendAddressCity_example", // String | 
  'orderInfoSendAddressPostcode': "orderInfoSendAddressPostcode_example", // String | 
  'orderInfoSendAddressStreetAddress': "orderInfoSendAddressStreetAddress_example", // String | 
  'orderInfoSendAddressName': "orderInfoSendAddressName_example", // String | 
  'orderInfoSendAddressPhone': "orderInfoSendAddressPhone_example", // String | 
  'orderInfoSendAddressMobile': "orderInfoSendAddressMobile_example", // String | 
  'orderInfoSendAddressEmail': "orderInfoSendAddressEmail_example", // String | 
  'orderInfoSendAddressTrademanageId': "orderInfoSendAddressTrademanageId_example", // String | 
  'orderInfoSendAddressAddressId': "orderInfoSendAddressAddressId_example", // String | 
  'orderInfoSendAddressFax': "orderInfoSendAddressFax_example", // String | 
  'orderInfoSendAddressCounty': "orderInfoSendAddressCounty_example", // String | 
  'orderInfoSendAddressCompany': "orderInfoSendAddressCompany_example", // String | 
  'orderInfoReturnAddressCountry': "orderInfoReturnAddressCountry_example", // String | 
  'orderInfoReturnAddressCountryName': "orderInfoReturnAddressCountryName_example", // String | 
  'orderInfoReturnAddressProvince': "orderInfoReturnAddressProvince_example", // String | 
  'orderInfoReturnAddressCity': "orderInfoReturnAddressCity_example", // String | 
  'orderInfoReturnAddressPostcode': "orderInfoReturnAddressPostcode_example", // String | 
  'orderInfoReturnAddressStreetAddress': "orderInfoReturnAddressStreetAddress_example", // String | 
  'orderInfoReturnAddressName': "orderInfoReturnAddressName_example", // String | 
  'orderInfoReturnAddressPhone': "orderInfoReturnAddressPhone_example", // String | 
  'orderInfoReturnAddressMobile': "orderInfoReturnAddressMobile_example", // String | 
  'orderInfoReturnAddressEmail': "orderInfoReturnAddressEmail_example", // String | 
  'orderInfoReturnAddressTrademanageId': "orderInfoReturnAddressTrademanageId_example", // String | 
  'orderInfoReturnAddressAddressId': "orderInfoReturnAddressAddressId_example", // String | 
  'orderInfoReturnAddressFax': "orderInfoReturnAddressFax_example", // String | 
  'orderInfoReturnAddressCounty': "orderInfoReturnAddressCounty_example", // String | 
  'orderInfoReturnAddressCompany': "orderInfoReturnAddressCompany_example", // String | 
  'orderInfoPickupAddressCountry': "orderInfoPickupAddressCountry_example", // String | 
  'orderInfoPickupAddressCountryName': "orderInfoPickupAddressCountryName_example", // String | 
  'orderInfoPickupAddressProvince': "orderInfoPickupAddressProvince_example", // String | 
  'orderInfoPickupAddressCity': "orderInfoPickupAddressCity_example", // String | 
  'orderInfoPickupAddressPostcode': "orderInfoPickupAddressPostcode_example", // String | 
  'orderInfoPickupAddressStreetAddress': "orderInfoPickupAddressStreetAddress_example", // String | 
  'orderInfoPickupAddressName': "orderInfoPickupAddressName_example", // String | 
  'orderInfoPickupAddressPhone': "orderInfoPickupAddressPhone_example", // String | 
  'orderInfoPickupAddressMobile': "orderInfoPickupAddressMobile_example", // String | 
  'orderInfoPickupAddressEmail': "orderInfoPickupAddressEmail_example", // String | 
  'orderInfoPickupAddressTrademanageId': "orderInfoPickupAddressTrademanageId_example", // String | 
  'orderInfoPickupAddressAddressId': "orderInfoPickupAddressAddressId_example", // String | 
  'orderInfoPickupAddressFax': "orderInfoPickupAddressFax_example", // String | 
  'orderInfoPickupAddressCounty': "orderInfoPickupAddressCounty_example", // String | 
  'orderInfoPickupAddressCompany': "orderInfoPickupAddressCompany_example" // String | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **identity** | **String**| 物流标识 | 
 **configs** | [**[String]**](String.md)| 配置信息 | 
 **orderInfoProductInfos** | [**[String]**](String.md)|  | [optional] 
 **orderInfoOrderNumber** | **String**|  | [optional] 
 **orderInfoLogisticsNo** | **String**|  | [optional] 
 **orderInfoComment** | **String**|  | [optional] 
 **orderInfoWeight** | **Number**|  | [optional] 
 **orderInfoPrice** | **Number**|  | [optional] 
 **orderInfoContact** | **String**|  | [optional] 
 **orderInfoCompany** | **String**|  | [optional] 
 **orderInfoTel** | **String**|  | [optional] 
 **orderInfoMobilePhone** | **String**|  | [optional] 
 **orderInfoCountryCode** | **String**|  | [optional] 
 **orderInfoCountryCn** | **String**|  | [optional] 
 **orderInfoCountryEn** | **String**|  | [optional] 
 **orderInfoProvince** | **String**|  | [optional] 
 **orderInfoCity** | **String**|  | [optional] 
 **orderInfoCountry** | **String**|  | [optional] 
 **orderInfoAddress1** | **String**|  | [optional] 
 **orderInfoAddress2** | **String**|  | [optional] 
 **orderInfoZipCode** | **String**|  | [optional] 
 **orderInfoEmail** | **String**|  | [optional] 
 **orderInfoFax** | **String**|  | [optional] 
 **orderInfoQuantity** | **Integer**|  | [optional] 
 **orderInfoEShopIdentity** | **String**|  | [optional] 
 **orderInfoOriginalNo** | **String**|  | [optional] 
 **orderInfoSendAddressCountry** | **String**|  | [optional] 
 **orderInfoSendAddressCountryName** | **String**|  | [optional] 
 **orderInfoSendAddressProvince** | **String**|  | [optional] 
 **orderInfoSendAddressCity** | **String**|  | [optional] 
 **orderInfoSendAddressPostcode** | **String**|  | [optional] 
 **orderInfoSendAddressStreetAddress** | **String**|  | [optional] 
 **orderInfoSendAddressName** | **String**|  | [optional] 
 **orderInfoSendAddressPhone** | **String**|  | [optional] 
 **orderInfoSendAddressMobile** | **String**|  | [optional] 
 **orderInfoSendAddressEmail** | **String**|  | [optional] 
 **orderInfoSendAddressTrademanageId** | **String**|  | [optional] 
 **orderInfoSendAddressAddressId** | **String**|  | [optional] 
 **orderInfoSendAddressFax** | **String**|  | [optional] 
 **orderInfoSendAddressCounty** | **String**|  | [optional] 
 **orderInfoSendAddressCompany** | **String**|  | [optional] 
 **orderInfoReturnAddressCountry** | **String**|  | [optional] 
 **orderInfoReturnAddressCountryName** | **String**|  | [optional] 
 **orderInfoReturnAddressProvince** | **String**|  | [optional] 
 **orderInfoReturnAddressCity** | **String**|  | [optional] 
 **orderInfoReturnAddressPostcode** | **String**|  | [optional] 
 **orderInfoReturnAddressStreetAddress** | **String**|  | [optional] 
 **orderInfoReturnAddressName** | **String**|  | [optional] 
 **orderInfoReturnAddressPhone** | **String**|  | [optional] 
 **orderInfoReturnAddressMobile** | **String**|  | [optional] 
 **orderInfoReturnAddressEmail** | **String**|  | [optional] 
 **orderInfoReturnAddressTrademanageId** | **String**|  | [optional] 
 **orderInfoReturnAddressAddressId** | **String**|  | [optional] 
 **orderInfoReturnAddressFax** | **String**|  | [optional] 
 **orderInfoReturnAddressCounty** | **String**|  | [optional] 
 **orderInfoReturnAddressCompany** | **String**|  | [optional] 
 **orderInfoPickupAddressCountry** | **String**|  | [optional] 
 **orderInfoPickupAddressCountryName** | **String**|  | [optional] 
 **orderInfoPickupAddressProvince** | **String**|  | [optional] 
 **orderInfoPickupAddressCity** | **String**|  | [optional] 
 **orderInfoPickupAddressPostcode** | **String**|  | [optional] 
 **orderInfoPickupAddressStreetAddress** | **String**|  | [optional] 
 **orderInfoPickupAddressName** | **String**|  | [optional] 
 **orderInfoPickupAddressPhone** | **String**|  | [optional] 
 **orderInfoPickupAddressMobile** | **String**|  | [optional] 
 **orderInfoPickupAddressEmail** | **String**|  | [optional] 
 **orderInfoPickupAddressTrademanageId** | **String**|  | [optional] 
 **orderInfoPickupAddressAddressId** | **String**|  | [optional] 
 **orderInfoPickupAddressFax** | **String**|  | [optional] 
 **orderInfoPickupAddressCounty** | **String**|  | [optional] 
 **orderInfoPickupAddressCompany** | **String**|  | [optional] 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

