# JDOrderManagementApi

All URIs are relative to _http://localhost_

| Method                                                                      | HTTP request                                  | Description          |
| --------------------------------------------------------------------------- | --------------------------------------------- | -------------------- |
| [**apiJdCookieOrderCreatePost**](#apijdcookieordercreatepost)               | **POST** /api/jd-cookie/order/create          | Create Order         |
| [**apiJdCookieOrderExportGet**](#apijdcookieorderexportget)                 | **GET** /api/jd-cookie/order/export           | Export JD Orders     |
| [**apiJdCookieOrderGetGet**](#apijdcookieordergetget)                       | **GET** /api/jd-cookie/order/get              | Get Single Order     |
| [**apiJdCookieOrderJdListGet**](#apijdcookieorderjdlistget)                 | **GET** /api/jd-cookie/order/jd-list          | JD Order List Query  |
| [**apiJdCookieOrderJdOrderGet**](#apijdcookieorderjdorderget)               | **GET** /api/jd-cookie/order/jd-order         | Get Single JD Order  |
| [**apiJdCookieOrderJdOrderHistoryGet**](#apijdcookieorderjdorderhistoryget) | **GET** /api/jd-cookie/order/jd-order-history | Get JD Order History |
| [**apiJdCookieOrderListGet**](#apijdcookieorderlistget)                     | **GET** /api/jd-cookie/order/list             | Order List Query     |
| [**apiJdCookieOrderPaymentUrlPost**](#apijdcookieorderpaymenturlpost)       | **POST** /api/jd-cookie/order/payment-url     | Get Payment URL      |
| [**apiJdCookieOrderStatusGet**](#apijdcookieorderstatusget)                 | **GET** /api/jd-cookie/order/status           | Query Order Status   |

# **apiJdCookieOrderCreatePost**

> KamiApiJdCookieV1CreateOrderRes apiJdCookieOrderCreatePost()

### Example

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

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

let kamiApiJdCookieV1CreateOrderReq: KamiApiJdCookieV1CreateOrderReq; // (optional)

const { status, data } = await apiInstance.apiJdCookieOrderCreatePost(
  kamiApiJdCookieV1CreateOrderReq
);
```

### Parameters

| Name                                | Type                                | Description | Notes |
| ----------------------------------- | ----------------------------------- | ----------- | ----- |
| **kamiApiJdCookieV1CreateOrderReq** | **KamiApiJdCookieV1CreateOrderReq** |             |       |

### Return type

**KamiApiJdCookieV1CreateOrderRes**

### 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)

# **apiJdCookieOrderExportGet**

> object apiJdCookieOrderExportGet()

### Example

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

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

let status: 5 | 6 | 4 | 2 | 1 | 3; //状态筛选 (optional) (default to undefined)
let startTime: string; //开始时间 (optional) (default to undefined)
let endTime: string; //结束时间 (optional) (default to undefined)
let orderId: string; //关联的内部订单号筛选 (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdCookieOrderExportGet(
  status,
  startTime,
  endTime,
  orderId
);
```

### Parameters

| Name          | Type         | Description          | Notes                            |
| ------------- | ------------ | -------------------- | -------------------------------- | --- | --- | --------------------------------------------------------------- | -------- | -------------------------------- |
| **status**    | [\*\*5       | 6                    | 4                                | 2   | 1   | 3**]**Array<5 &#124; 6 &#124; 4 &#124; 2 &#124; 1 &#124; 3>\*\* | 状态筛选 | (optional) defaults to undefined |
| **startTime** | [**string**] | 开始时间             | (optional) defaults to undefined |
| **endTime**   | [**string**] | 结束时间             | (optional) defaults to undefined |
| **orderId**   | [**string**] | 关联的内部订单号筛选 | (optional) defaults to undefined |

### Return type

**object**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

### 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)

# **apiJdCookieOrderGetGet**

> KamiApiJdCookieV1GetOrderRes apiJdCookieOrderGetGet()

### Example

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

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

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

const { status, data } = await apiInstance.apiJdCookieOrderGetGet(orderId);
```

### Parameters

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

### Return type

**KamiApiJdCookieV1GetOrderRes**

### 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)

# **apiJdCookieOrderJdListGet**

> KamiApiJdCookieV1ListJdOrderRes apiJdCookieOrderJdListGet()

### Example

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

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

let page: number; //页码 (optional) (default to 1)
let size: number; //每页大小 (optional) (default to 20)
let status: 5 | 6 | 4 | 2 | 1 | 3; //状态筛选 (optional) (default to undefined)
let startTime: string; //开始时间 (optional) (default to undefined)
let endTime: string; //结束时间 (optional) (default to undefined)
let orderId: string; //关联的内部订单号筛选 (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdCookieOrderJdListGet(
  page,
  size,
  status,
  startTime,
  endTime,
  orderId
);
```

### Parameters

| Name          | Type         | Description          | Notes                            |
| ------------- | ------------ | -------------------- | -------------------------------- | --- | --- | --------------------------------------------------------------- | -------- | -------------------------------- |
| **page**      | [**number**] | 页码                 | (optional) defaults to 1         |
| **size**      | [**number**] | 每页大小             | (optional) defaults to 20        |
| **status**    | [\*\*5       | 6                    | 4                                | 2   | 1   | 3**]**Array<5 &#124; 6 &#124; 4 &#124; 2 &#124; 1 &#124; 3>\*\* | 状态筛选 | (optional) defaults to undefined |
| **startTime** | [**string**] | 开始时间             | (optional) defaults to undefined |
| **endTime**   | [**string**] | 结束时间             | (optional) defaults to undefined |
| **orderId**   | [**string**] | 关联的内部订单号筛选 | (optional) defaults to undefined |

### Return type

**KamiApiJdCookieV1ListJdOrderRes**

### 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)

# **apiJdCookieOrderJdOrderGet**

> KamiApiJdCookieV1GetJdOrderRes apiJdCookieOrderJdOrderGet()

### Example

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

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

let jdOrderId: string; //京东订单号 (default to undefined)

const { status, data } =
  await apiInstance.apiJdCookieOrderJdOrderGet(jdOrderId);
```

### Parameters

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

### Return type

**KamiApiJdCookieV1GetJdOrderRes**

### 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)

# **apiJdCookieOrderJdOrderHistoryGet**

> KamiApiJdCookieV1GetJdOrderHistoryRes apiJdCookieOrderJdOrderHistoryGet()

### Example

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

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

let jdOrderId: string; //京东订单号 (default to undefined)
let page: number; //页码 (optional) (default to 1)
let size: number; //每页大小 (optional) (default to 20)

const { status, data } = await apiInstance.apiJdCookieOrderJdOrderHistoryGet(
  jdOrderId,
  page,
  size
);
```

### Parameters

| Name          | Type         | Description | Notes                     |
| ------------- | ------------ | ----------- | ------------------------- |
| **jdOrderId** | [**string**] | 京东订单号  | defaults to undefined     |
| **page**      | [**number**] | 页码        | (optional) defaults to 1  |
| **size**      | [**number**] | 每页大小    | (optional) defaults to 20 |

### Return type

**KamiApiJdCookieV1GetJdOrderHistoryRes**

### 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)

# **apiJdCookieOrderListGet**

> KamiApiJdCookieV1ListOrderRes apiJdCookieOrderListGet()

### Example

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

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

let page: number; //页码 (optional) (default to 1)
let size: number; //每页大小 (optional) (default to 20)
let status: 4 | 5 | 0 | 3 | 6 | 2 | 1 | 7; //状态筛选 (optional) (default to undefined)
let startTime: string; //开始时间 (optional) (default to undefined)
let endTime: string; //结束时间 (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdCookieOrderListGet(
  page,
  size,
  status,
  startTime,
  endTime
);
```

### Parameters

| Name          | Type         | Description | Notes                            |
| ------------- | ------------ | ----------- | -------------------------------- | --- | --- | --- | --- | --------------------------------------------------------------------------------- | -------- | -------------------------------- |
| **page**      | [**number**] | 页码        | (optional) defaults to 1         |
| **size**      | [**number**] | 每页大小    | (optional) defaults to 20        |
| **status**    | [\*\*4       | 5           | 0                                | 3   | 6   | 2   | 1   | 7**]**Array<4 &#124; 5 &#124; 0 &#124; 3 &#124; 6 &#124; 2 &#124; 1 &#124; 7>\*\* | 状态筛选 | (optional) defaults to undefined |
| **startTime** | [**string**] | 开始时间    | (optional) defaults to undefined |
| **endTime**   | [**string**] | 结束时间    | (optional) defaults to undefined |

### Return type

**KamiApiJdCookieV1ListOrderRes**

### 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)

# **apiJdCookieOrderPaymentUrlPost**

> KamiApiJdCookieV1GetPaymentUrlRes apiJdCookieOrderPaymentUrlPost()

### Example

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

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

let kamiApiJdCookieV1GetPaymentUrlReq: KamiApiJdCookieV1GetPaymentUrlReq; // (optional)

const { status, data } = await apiInstance.apiJdCookieOrderPaymentUrlPost(
  kamiApiJdCookieV1GetPaymentUrlReq
);
```

### Parameters

| Name                                  | Type                                  | Description | Notes |
| ------------------------------------- | ------------------------------------- | ----------- | ----- |
| **kamiApiJdCookieV1GetPaymentUrlReq** | **KamiApiJdCookieV1GetPaymentUrlReq** |             |       |

### Return type

**KamiApiJdCookieV1GetPaymentUrlRes**

### 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)

# **apiJdCookieOrderStatusGet**

> KamiApiJdCookieV1GetOrderStatusRes apiJdCookieOrderStatusGet()

### Example

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

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

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

const { status, data } = await apiInstance.apiJdCookieOrderStatusGet(orderId);
```

### Parameters

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

### Return type

**KamiApiJdCookieV1GetOrderStatusRes**

### 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)
