# NomadEnvoyCli.CustomsApi

All URIs are relative to *https://nomad.samarkand-global.cn/envoy*

Method | HTTP request | Description
------------- | ------------- | -------------
[**postCustomsOrder**](CustomsApi.md#postCustomsOrder) | **POST** /customs/{region}/order | postCustomsOrder
[**postCustomsPayment**](CustomsApi.md#postCustomsPayment) | **POST** /customs/{region}/payment | postCustomsPayment
[**postCustomsProduct**](CustomsApi.md#postCustomsProduct) | **POST** /customs/{region}/product | postCustomsProduct
[**putCustomsOrder**](CustomsApi.md#putCustomsOrder) | **PUT** /customs/{region}/order | putCustomsOrder



## postCustomsOrder

> ApiResponse postCustomsOrder(region, order)

postCustomsOrder

Register order to Shanghai Customs

### Example

```javascript
var NomadEnvoyCli = require('nomad_envoy_cli');
var defaultClient = NomadEnvoyCli.ApiClient.instance;
// Configure API key authorization: ca_key
var ca_key = defaultClient.authentications['ca_key'];
ca_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ca_key.apiKeyPrefix = 'Token';
// Configure API key authorization: ca_stage
var ca_stage = defaultClient.authentications['ca_stage'];
ca_stage.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ca_stage.apiKeyPrefix = 'Token';

var apiInstance = new NomadEnvoyCli.CustomsApi();
var region = "region_example"; // String | The region of the customs. e.g. shanghai
var order = new NomadEnvoyCli.Order(); // Order | Order detail
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.postCustomsOrder(region, order, callback);
```

### Parameters



Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **region** | **String**| The region of the customs. e.g. shanghai | 
 **order** | [**Order**](Order.md)| Order detail | 

### Return type

[**ApiResponse**](ApiResponse.md)

### Authorization

[ca_key](../README.md#ca_key), [ca_stage](../README.md#ca_stage)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json


## postCustomsPayment

> ApiResponse postCustomsPayment(region, order)

postCustomsPayment

Register payment to Shanghai Customs

### Example

```javascript
var NomadEnvoyCli = require('nomad_envoy_cli');
var defaultClient = NomadEnvoyCli.ApiClient.instance;
// Configure API key authorization: ca_key
var ca_key = defaultClient.authentications['ca_key'];
ca_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ca_key.apiKeyPrefix = 'Token';
// Configure API key authorization: ca_stage
var ca_stage = defaultClient.authentications['ca_stage'];
ca_stage.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ca_stage.apiKeyPrefix = 'Token';

var apiInstance = new NomadEnvoyCli.CustomsApi();
var region = "region_example"; // String | The region of the customs. e.g. shanghai
var order = new NomadEnvoyCli.Order(); // Order | Order detail
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.postCustomsPayment(region, order, callback);
```

### Parameters



Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **region** | **String**| The region of the customs. e.g. shanghai | 
 **order** | [**Order**](Order.md)| Order detail | 

### Return type

[**ApiResponse**](ApiResponse.md)

### Authorization

[ca_key](../README.md#ca_key), [ca_stage](../README.md#ca_stage)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json


## postCustomsProduct

> ApiResponse postCustomsProduct(region, product)

postCustomsProduct

Register products to Shanghai Customs

### Example

```javascript
var NomadEnvoyCli = require('nomad_envoy_cli');
var defaultClient = NomadEnvoyCli.ApiClient.instance;
// Configure API key authorization: ca_key
var ca_key = defaultClient.authentications['ca_key'];
ca_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ca_key.apiKeyPrefix = 'Token';
// Configure API key authorization: ca_stage
var ca_stage = defaultClient.authentications['ca_stage'];
ca_stage.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ca_stage.apiKeyPrefix = 'Token';

var apiInstance = new NomadEnvoyCli.CustomsApi();
var region = "region_example"; // String | The region of the customs. e.g. shanghai
var product = new NomadEnvoyCli.Product(); // Product | Product detail
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.postCustomsProduct(region, product, callback);
```

### Parameters



Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **region** | **String**| The region of the customs. e.g. shanghai | 
 **product** | [**Product**](Product.md)| Product detail | 

### Return type

[**ApiResponse**](ApiResponse.md)

### Authorization

[ca_key](../README.md#ca_key), [ca_stage](../README.md#ca_stage)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json


## putCustomsOrder

> ApiResponse putCustomsOrder(region, order)

putCustomsOrder

update order to Shanghai Customs

### Example

```javascript
var NomadEnvoyCli = require('nomad_envoy_cli');
var defaultClient = NomadEnvoyCli.ApiClient.instance;
// Configure API key authorization: ca_key
var ca_key = defaultClient.authentications['ca_key'];
ca_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ca_key.apiKeyPrefix = 'Token';
// Configure API key authorization: ca_stage
var ca_stage = defaultClient.authentications['ca_stage'];
ca_stage.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ca_stage.apiKeyPrefix = 'Token';

var apiInstance = new NomadEnvoyCli.CustomsApi();
var region = "region_example"; // String | The region of the customs. e.g. shanghai
var order = new NomadEnvoyCli.Order(); // Order | Order detail
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.putCustomsOrder(region, order, callback);
```

### Parameters



Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **region** | **String**| The region of the customs. e.g. shanghai | 
 **order** | [**Order**](Order.md)| Order detail | 

### Return type

[**ApiResponse**](ApiResponse.md)

### Authorization

[ca_key](../README.md#ca_key), [ca_stage](../README.md#ca_stage)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

