# JDHistoryApi

All URIs are relative to _http://localhost_

| Method                                                          | HTTP request                          | Description           |
| --------------------------------------------------------------- | ------------------------------------- | --------------------- |
| [**apiJdCookieHistoryCookieGet**](#apijdcookiehistorycookieget) | **GET** /api/jd-cookie/history/cookie | Cookie Change History |
| [**apiJdCookieHistoryOrderGet**](#apijdcookiehistoryorderget)   | **GET** /api/jd-cookie/history/order  | Order Change History  |

# **apiJdCookieHistoryCookieGet**

> KamiApiJdCookieV1CookieHistoryRes apiJdCookieHistoryCookieGet()

### Example

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

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

let cookieId: string; //Cookie ID (default to undefined)
let page: number; //页码 (optional) (default to 1)
let size: number; //每页大小 (optional) (default to 20)
let changeType:
  | 'batch delete'
  | 'create'
  | 'delete'
  | 'fail'
  | 'refresh fail'
  | 'replaced'
  | 'resume'
  | 'suspend'
  | 'update'
  | 'use'; //变更类型筛选 (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdCookieHistoryCookieGet(
  cookieId,
  page,
  size,
  changeType
);
```

### Parameters

| Name           | Type                        | Description      | Notes                     |
| -------------- | --------------------------- | ---------------- | ------------------------- | -------------- | ---------------------- | ------------------ | ---------------- | ----------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------------------------------- |
| **cookieId**   | [**string**]                | Cookie ID        | defaults to undefined     |
| **page**       | [**number**]                | 页码             | (optional) defaults to 1  |
| **size**       | [**number**]                | 每页大小         | (optional) defaults to 20 |
| **changeType** | [\*\*&#39;batch delete&#39; | &#39;create&#39; | &#39;delete&#39;          | &#39;fail&#39; | &#39;refresh fail&#39; | &#39;replaced&#39; | &#39;resume&#39; | &#39;suspend&#39; | &#39;update&#39; | &#39;use&#39;**]**Array<&#39;batch delete&#39; &#124; &#39;create&#39; &#124; &#39;delete&#39; &#124; &#39;fail&#39; &#124; &#39;refresh fail&#39; &#124; &#39;replaced&#39; &#124; &#39;resume&#39; &#124; &#39;suspend&#39; &#124; &#39;update&#39; &#124; &#39;use&#39;>\*\* | 变更类型筛选 | (optional) defaults to undefined |

### Return type

**KamiApiJdCookieV1CookieHistoryRes**

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

# **apiJdCookieHistoryOrderGet**

> KamiApiJdCookieV1OrderHistoryRes apiJdCookieHistoryOrderGet()

### Example

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

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

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

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

### Parameters

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

### Return type

**KamiApiJdCookieV1OrderHistoryRes**

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