# JDV2OrderApi

All URIs are relative to _http://localhost_

| Method                                                            | HTTP request                           | Description  |
| ----------------------------------------------------------------- | -------------------------------------- | ------------ |
| [**apiJdV2OrderAccountOrdersGet**](#apijdv2orderaccountordersget) | **GET** /api/jd-v2/order/accountOrders | 账号历史订单 |
| [**apiJdV2OrderCallbackPost**](#apijdv2ordercallbackpost)         | **POST** /api/jd-v2/order/callback     | 手动回调     |
| [**apiJdV2OrderDetailGet**](#apijdv2orderdetailget)               | **GET** /api/jd-v2/order/detail        | 订单详情     |
| [**apiJdV2OrderHistoryGet**](#apijdv2orderhistoryget)             | **GET** /api/jd-v2/order/history       | 订单历史记录 |
| [**apiJdV2OrderListGet**](#apijdv2orderlistget)                   | **GET** /api/jd-v2/order/list          | 订单列表     |
| [**apiJdV2OrderSubmitPost**](#apijdv2ordersubmitpost)             | **POST** /api/jd-v2/order/submit       | 提交订单     |

# **apiJdV2OrderAccountOrdersGet**

> KamiApiCamelOilV1AccountOrderListRes apiJdV2OrderAccountOrdersGet()

### Example

```typescript
import { JDV2OrderApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let accountId: number; //账号ID (default to undefined)
let status: 2 | 3 | 0 | 1; //订单状态筛选 (optional) (default to undefined)
let payStatus: 1 | 2 | 3 | 0; //支付状态筛选 (optional) (default to undefined)
let dateRange: Array<string>; //时间范围 (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdV2OrderAccountOrdersGet(
  current,
  pageSize,
  accountId,
  status,
  payStatus,
  dateRange
);
```

### Parameters

| Name          | Type                    | Description | Notes                            |
| ------------- | ----------------------- | ----------- | -------------------------------- | --------------------------------------------- | ------------ | ----------------------------------------------------------------------- | ---- | --------------------- |
| **current**   | [**number**]            | 页数        | defaults to undefined            |
| **pageSize**  | [\*\*5                  | 10          | 15                               | 20                                            | 50           | 100**]**Array<5 &#124; 10 &#124; 15 &#124; 20 &#124; 50 &#124; 100>\*\* | 页码 | defaults to undefined |
| **accountId** | [**number**]            | 账号ID      | defaults to undefined            |
| **status**    | [\*\*2                  | 3           | 0                                | 1**]**Array<2 &#124; 3 &#124; 0 &#124; 1>\*\* | 订单状态筛选 | (optional) defaults to undefined                                        |
| **payStatus** | [\*\*1                  | 2           | 3                                | 0**]**Array<1 &#124; 2 &#124; 3 &#124; 0>\*\* | 支付状态筛选 | (optional) defaults to undefined                                        |
| **dateRange** | **Array&lt;string&gt;** | 时间范围    | (optional) defaults to undefined |

### Return type

**KamiApiCamelOilV1AccountOrderListRes**

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
| ----------- | ----------- | ---------------- |
| **200**     |             | -                |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **apiJdV2OrderCallbackPost**

> KamiApiCamelOilV1OrderCallbackRes apiJdV2OrderCallbackPost()

### Example

```typescript
import {
  JDV2OrderApi,
  Configuration,
  KamiApiCamelOilV1OrderCallbackReq
} from './api';

const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);

let kamiApiCamelOilV1OrderCallbackReq: KamiApiCamelOilV1OrderCallbackReq; // (optional)

const { status, data } = await apiInstance.apiJdV2OrderCallbackPost(
  kamiApiCamelOilV1OrderCallbackReq
);
```

### Parameters

| Name                                  | Type                                  | Description | Notes |
| ------------------------------------- | ------------------------------------- | ----------- | ----- |
| **kamiApiCamelOilV1OrderCallbackReq** | **KamiApiCamelOilV1OrderCallbackReq** |             |       |

### Return type

**KamiApiCamelOilV1OrderCallbackRes**

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
| ----------- | ----------- | ---------------- |
| **200**     |             | -                |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **apiJdV2OrderDetailGet**

> KamiApiCamelOilV1OrderDetailRes apiJdV2OrderDetailGet()

### Example

```typescript
import { JDV2OrderApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);

let orderNo: string; //订单号 (default to undefined)

const { status, data } = await apiInstance.apiJdV2OrderDetailGet(orderNo);
```

### Parameters

| Name        | Type         | Description | Notes                 |
| ----------- | ------------ | ----------- | --------------------- |
| **orderNo** | [**string**] | 订单号      | defaults to undefined |

### Return type

**KamiApiCamelOilV1OrderDetailRes**

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
| ----------- | ----------- | ---------------- |
| **200**     |             | -                |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **apiJdV2OrderHistoryGet**

> KamiApiCamelOilV1OrderHistoryRes apiJdV2OrderHistoryGet()

### Example

```typescript
import { JDV2OrderApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let orderNo: string; //订单号 (default to undefined)

const { status, data } = await apiInstance.apiJdV2OrderHistoryGet(
  current,
  pageSize,
  orderNo
);
```

### Parameters

| Name         | Type         | Description | Notes                 |
| ------------ | ------------ | ----------- | --------------------- | --- | --- | ----------------------------------------------------------------------- | ---- | --------------------- |
| **current**  | [**number**] | 页数        | defaults to undefined |
| **pageSize** | [\*\*5       | 10          | 15                    | 20  | 50  | 100**]**Array<5 &#124; 10 &#124; 15 &#124; 20 &#124; 50 &#124; 100>\*\* | 页码 | defaults to undefined |
| **orderNo**  | [**string**] | 订单号      | defaults to undefined |

### Return type

**KamiApiCamelOilV1OrderHistoryRes**

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
| ----------- | ----------- | ---------------- |
| **200**     |             | -                |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **apiJdV2OrderListGet**

> KamiApiCamelOilV1ListOrderRes apiJdV2OrderListGet()

### Example

```typescript
import { JDV2OrderApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let merchantOrderId: string; //商户订单号 (optional) (default to undefined)
let orderNo: string; //系统订单号 (optional) (default to undefined)
let accountId: number; //账号ID (optional) (default to undefined)
let status: 2 | 3 | 0 | 1; //订单状态 (optional) (default to undefined)
let payStatus: 1 | 2 | 3 | 0; //支付状态 (optional) (default to undefined)
let dateRange: Array<string>; //时间范围 (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdV2OrderListGet(
  current,
  pageSize,
  merchantOrderId,
  orderNo,
  accountId,
  status,
  payStatus,
  dateRange
);
```

### Parameters

| Name                | Type                    | Description | Notes                            |
| ------------------- | ----------------------- | ----------- | -------------------------------- | --------------------------------------------- | -------- | ----------------------------------------------------------------------- | ---- | --------------------- |
| **current**         | [**number**]            | 页数        | defaults to undefined            |
| **pageSize**        | [\*\*5                  | 10          | 15                               | 20                                            | 50       | 100**]**Array<5 &#124; 10 &#124; 15 &#124; 20 &#124; 50 &#124; 100>\*\* | 页码 | defaults to undefined |
| **merchantOrderId** | [**string**]            | 商户订单号  | (optional) defaults to undefined |
| **orderNo**         | [**string**]            | 系统订单号  | (optional) defaults to undefined |
| **accountId**       | [**number**]            | 账号ID      | (optional) defaults to undefined |
| **status**          | [\*\*2                  | 3           | 0                                | 1**]**Array<2 &#124; 3 &#124; 0 &#124; 1>\*\* | 订单状态 | (optional) defaults to undefined                                        |
| **payStatus**       | [\*\*1                  | 2           | 3                                | 0**]**Array<1 &#124; 2 &#124; 3 &#124; 0>\*\* | 支付状态 | (optional) defaults to undefined                                        |
| **dateRange**       | **Array&lt;string&gt;** | 时间范围    | (optional) defaults to undefined |

### Return type

**KamiApiCamelOilV1ListOrderRes**

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
| ----------- | ----------- | ---------------- |
| **200**     |             | -                |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **apiJdV2OrderSubmitPost**

> KamiApiCamelOilV1SubmitOrderRes apiJdV2OrderSubmitPost()

### Example

```typescript
import {
  JDV2OrderApi,
  Configuration,
  KamiApiCamelOilV1SubmitOrderReq
} from './api';

const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);

let kamiApiCamelOilV1SubmitOrderReq: KamiApiCamelOilV1SubmitOrderReq; // (optional)

const { status, data } = await apiInstance.apiJdV2OrderSubmitPost(
  kamiApiCamelOilV1SubmitOrderReq
);
```

### Parameters

| Name                                | Type                                | Description | Notes |
| ----------------------------------- | ----------------------------------- | ----------- | ----- |
| **kamiApiCamelOilV1SubmitOrderReq** | **KamiApiCamelOilV1SubmitOrderReq** |             |       |

### Return type

**KamiApiCamelOilV1SubmitOrderRes**

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
| ----------- | ----------- | ---------------- |
| **200**     |             | -                |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
