# Module Web Bán Hàng

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress WpSites

#### Primary Key: `Code`

#### Schema

| Field                   | Type    | Description                |
| ----------------------- | ------- | -------------------------- |
| ApiPassword             | string  | Api Password               |
| ApiToken                | string  | Api Token                  |
| ApiUrl                  | string  | Api Url                    |
| ApiUsername             | string  | Api Username               |
| BaseUrl                 | string  | Base Url                   |
| Code                    | string  | Code                       |
| Cp2fa                   | string  | Cp2fa                      |
| CpAccessLink1           | string  | Cp Access Link1            |
| CpAccessLink2           | string  | Cp Access Link2            |
| CpNote                  | string  | Cp Note                    |
| CpPassword              | string  | Cp Password                |
| CpUsername              | string  | Cp Username                |
| Description             | string  | Description                |
| Domain                  | string  | Domain                     |
| Exprired                | string  | Exprired                   |
| Hosting                 | string  | Hosting                    |
| Id                      | numeric | Id                         |
| ManagerEmail            | string  | Manager Email              |
| ManagerPhone            | string  | Manager Phone              |
| Name                    | string  | Name                       |
| RegisterDatetime        | string  | Register Datetime          |
| ServiceIdentifed        | string  | Service Identifed          |
| ServiceName             | string  | Service Name               |
| State                   | string  | State                      |
| Supplier                | string  | Supplier                   |
| SupportAdminObject      | string  | Support Admin Object       |
| SupportEmail            | string  | Support Email              |
| SupportHotline          | string  | Support Hotline            |
| SyncCategories          | string  | Sync Categories            |
| SyncPages               | string  | Sync Pages                 |
| SyncTags                | string  | Sync Tags                  |
| WebhookUser             | string  | Webhook User               |
| WebhookUserToken        | string  | Webhook User Token         |
| WebhookUserTokenExpired | string  | Webhook User Token Expired |
| WooConsumerKey          | string  | Woo Consumer Key           |
| WooConsumerSecret       | string  | Woo Consumer Secret        |
| WooVersion              | string  | Woo Version                |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/wp-sites/{Code}`: for get exacly item
* `GET /v4/wordpress/wp-sites`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/wp-sites`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/wp-sites/{Code}`: for put exacly item
* `PUT /v4/wordpress/wp-sites`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/wp-sites/{Code}`: for delete exacly item
* `DELETE /v4/wordpress/wp-sites?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress WpSites

#### Primary Key: `Code`

#### Schema

| Field                   | Type    | Description                |
| ----------------------- | ------- | -------------------------- |
| ApiPassword             | string  | Api Password               |
| ApiToken                | string  | Api Token                  |
| ApiUrl                  | string  | Api Url                    |
| ApiUsername             | string  | Api Username               |
| BaseUrl                 | string  | Base Url                   |
| Code                    | string  | Code                       |
| Cp2fa                   | string  | Cp2fa                      |
| CpAccessLink1           | string  | Cp Access Link1            |
| CpAccessLink2           | string  | Cp Access Link2            |
| CpNote                  | string  | Cp Note                    |
| CpPassword              | string  | Cp Password                |
| CpUsername              | string  | Cp Username                |
| Description             | string  | Description                |
| Domain                  | string  | Domain                     |
| Exprired                | string  | Exprired                   |
| Hosting                 | string  | Hosting                    |
| Id                      | numeric | Id                         |
| ManagerEmail            | string  | Manager Email              |
| ManagerPhone            | string  | Manager Phone              |
| Name                    | string  | Name                       |
| RegisterDatetime        | string  | Register Datetime          |
| ServiceIdentifed        | string  | Service Identifed          |
| ServiceName             | string  | Service Name               |
| State                   | string  | State                      |
| Supplier                | string  | Supplier                   |
| SupportAdminObject      | string  | Support Admin Object       |
| SupportEmail            | string  | Support Email              |
| SupportHotline          | string  | Support Hotline            |
| SyncCategories          | string  | Sync Categories            |
| SyncPages               | string  | Sync Pages                 |
| SyncTags                | string  | Sync Tags                  |
| WebhookUser             | string  | Webhook User               |
| WebhookUserToken        | string  | Webhook User Token         |
| WebhookUserTokenExpired | string  | Webhook User Token Expired |
| WooConsumerKey          | string  | Woo Consumer Key           |
| WooConsumerSecret       | string  | Woo Consumer Secret        |
| WooVersion              | string  | Woo Version                |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/sites/{Code}`: for get exacly item
* `GET /v4/wordpress/sites`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/sites`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/sites/{Code}`: for put exacly item
* `PUT /v4/wordpress/sites`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/sites/{Code}`: for delete exacly item
* `DELETE /v4/wordpress/sites?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress SyncProfiles

#### Primary Key: `Code`

#### Schema

| Field             | Type    | Description          |
| ----------------- | ------- | -------------------- |
| Code              | string  | Code                 |
| Id                | numeric | Id                   |
| IsNotInCategories | numeric | Is Not In Categories |
| IsNotInGroups     | numeric | Is Not In Groups     |
| IsNotInProducts   | numeric | Is Not In Products   |
| ProductCategories | string  | Product Categories   |
| ProductGroups     | string  | Product Groups       |
| Products          | string  | Products             |
| Schedule          | string  | Schedule             |
| Sites             | objects | Sites                |
| State             | string  | State                |
| Status            | string  | Status               |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/wp-sync-profiles/{Code}`: for get exacly item
* `GET /v4/wordpress/wp-sync-profiles`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/wp-sync-profiles`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/wp-sync-profiles/{Code}`: for put exacly item
* `PUT /v4/wordpress/wp-sync-profiles`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/wp-sync-profiles/{Code}`: for delete exacly item
* `DELETE /v4/wordpress/wp-sync-profiles?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress SyncProfiles

#### Primary Key: `Code`

#### Schema

| Field             | Type    | Description          |
| ----------------- | ------- | -------------------- |
| Code              | string  | Code                 |
| Id                | numeric | Id                   |
| IsNotInCategories | numeric | Is Not In Categories |
| IsNotInGroups     | numeric | Is Not In Groups     |
| IsNotInProducts   | numeric | Is Not In Products   |
| ProductCategories | string  | Product Categories   |
| ProductGroups     | string  | Product Groups       |
| Products          | string  | Products             |
| Schedule          | string  | Schedule             |
| Sites             | objects | Sites                |
| State             | string  | State                |
| Status            | string  | Status               |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/sync-profiles/{Code}`: for get exacly item
* `GET /v4/wordpress/sync-profiles`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/sync-profiles`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/sync-profiles/{Code}`: for put exacly item
* `PUT /v4/wordpress/sync-profiles`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/sync-profiles/{Code}`: for delete exacly item
* `DELETE /v4/wordpress/sync-profiles?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress SyncTasks

#### Primary Key: `Code`

#### Schema

| Field               | Type     | Description           |
| ------------------- | -------- | --------------------- |
| Code                | string   | Code                  |
| Created             | string   | Created               |
| Creator             | string   | Creator               |
| CreatorName         | string   | Creator Name          |
| EndTime             | datetime | End Time              |
| Executor            | string   | Executor              |
| ExecutorName        | string   | Executor Name         |
| Id                  | numeric  | Id                    |
| IsOverwritePictures | boolean  | Is Overwrite Pictures |
| Loaded              | integer  | Loaded                |
| Message             | string   | Message               |
| NumOfProducts       | integer  | Num Of Products       |
| ProcessId           | numeric  | Process Id            |
| Profile             | string   | Profile               |
| ProfileName         | string   | Profile Name          |
| Site                | string   | Site                  |
| SiteName            | string   | Site Name             |
| StartTime           | datetime | Start Time            |
| State               | string   | State                 |
| Status              | string   | Status                |
| Total               | integer  | Total                 |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/sync-tasks/{Code}`: for get exacly item
* `GET /v4/wordpress/sync-tasks`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/sync-tasks`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/sync-tasks/{Code}`: for put exacly item
* `PUT /v4/wordpress/sync-tasks`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/sync-tasks/{Code}`: for delete exacly item
* `DELETE /v4/wordpress/sync-tasks?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress SyncTaskDetails

#### Primary Key: `Id`

#### Schema

| Field              | Type      | Description         |
| ------------------ | --------- | ------------------- |
| Created            | string    | Created             |
| Creator            | string    | Creator             |
| CreatorName        | string    | Creator Name        |
| Description        | string    | Description         |
| Executor           | string    | Executor            |
| ExecutorName       | string    | Executor Name       |
| FeaturePicture     | serialize | Feature Picture     |
| Id                 | numeric   | Id                  |
| IsStopBusiness     | numeric   | Is Stop Business    |
| Message            | string    | Message             |
| No                 | numeric   | No                  |
| Pictures           | serialize | Pictures            |
| Price              | string    | Price               |
| Product            | string    | Product             |
| ProductDescription | string    | Product Description |
| ProductName        | string    | Product Name        |
| ProductTechnical   | string    | Product Technical   |
| Profile            | string    | Profile             |
| ProfileName        | string    | Profile Name        |
| RefCategories      | objects   | Ref Categories      |
| RefId              | numeric   | Ref Id              |
| RefUnitId          | numeric   | Ref Unit Id         |
| SalePrice          | string    | Sale Price          |
| Site               | string    | Site                |
| SiteName           | string    | Site Name           |
| Sku                | string    | Sku                 |
| Slug               | string    | Slug                |
| Status             | string    | Status              |
| SyncTime           | datetime  | Sync Time           |
| Task               | string    | Task                |
| Technical          | string    | Technical           |
| Unit               | string    | Unit                |
| UnitName           | string    | Unit Name           |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/sync-task-details/{Id}`: for get exacly item
* `GET /v4/wordpress/sync-task-details`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/sync-task-details`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/sync-task-details/{Id}`: for put exacly item
* `PUT /v4/wordpress/sync-task-details`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/sync-task-details/{Id}`: for delete exacly item
* `DELETE /v4/wordpress/sync-task-details?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress Products

#### Primary Key: `Id`

#### Schema

| Field          | Type      | Description     |
| -------------- | --------- | --------------- |
| FeaturePicture | serialize | Feature Picture |
| Id             | numeric   | Id              |
| LastSync       | datetime  | Last Sync       |
| Name           | string    | Name            |
| Pictures       | serialize | Pictures        |
| Price          | double    | Price           |
| Product        | string    | Product         |
| RefCategories  | serialize | Ref Categories  |
| RefId          | numeric   | Ref Id          |
| RefUnitId      | numeric   | Ref Unit Id     |
| SalePrice      | double    | Sale Price      |
| Site           | string    | Site            |
| SiteName       | string    | Site Name       |
| Sku            | string    | Sku             |
| Slug           | string    | Slug            |
| State          | string    | State           |
| Unit           | string    | Unit            |
| UnitName       | string    | Unit Name       |
| Categories     | serialize | Categories      |
| Groups         | serialize | Groups          |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/products/{Id}`: for get exacly item
* `GET /v4/wordpress/products`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/products`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/products/{Id}`: for put exacly item
* `PUT /v4/wordpress/products`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/products/{Id}`: for delete exacly item
* `DELETE /v4/wordpress/products?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress RefCategories

#### Primary Key: `Id`

#### Schema

| Field          | Type    | Description     |
| -------------- | ------- | --------------- |
| FeaturePicture | string  | Feature Picture |
| Id             | numeric | Id              |
| LastSync       | string  | Last Sync       |
| Name           | string  | Name            |
| Pictures       | string  | Pictures        |
| Price          | string  | Price           |
| Product        | string  | Product         |
| RefCategories  | string  | Ref Categories  |
| RefId          | numeric | Ref Id          |
| RefUnitId      | numeric | Ref Unit Id     |
| SalePrice      | string  | Sale Price      |
| Site           | string  | Site            |
| SiteName       | string  | Site Name       |
| Sku            | string  | Sku             |
| Slug           | string  | Slug            |
| State          | string  | State           |
| Unit           | string  | Unit            |
| UnitName       | string  | Unit Name       |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/ref-categories/{Id}`: for get exacly item
* `GET /v4/wordpress/ref-categories`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/ref-categories`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/ref-categories/{Id}`: for put exacly item
* `PUT /v4/wordpress/ref-categories`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/ref-categories/{Id}`: for delete exacly item
* `DELETE /v4/wordpress/ref-categories?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress Webhooks

#### Primary Key: `Code`

#### Schema

| Field       | Type    | Description |
| ----------- | ------- | ----------- |
| Description | string  | Description |
| ExtendData  | string  | Extend Data |
| Feature     | string  | Feature     |
| Id          | numeric | Id          |
| InputType   | string  | Input Type  |
| IsApplied   | numeric | Is Applied  |
| IsPublic    | numeric | Is Public   |
| Module      | string  | Module      |
| Name        | string  | Name        |
| Type        | string  | Type        |
| User        | string  | User        |
| Value       | string  | Value       |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/webhooks/{Code}`: for get exacly item
* `GET /v4/wordpress/webhooks`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/webhooks`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/webhooks/{Code}`: for put exacly item
* `PUT /v4/wordpress/webhooks`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/webhooks/{Code}`: for delete exacly item
* `DELETE /v4/wordpress/webhooks?id0=123&id1=456&...`: for delete multiple items with id0 id1,...

### RESTFul API working with GET, POST, PUT, DELETE / RESTFul API thao tác Lấy (GET), Thêm (POST), Sửa (PUT), Xóa (DELETE) Wordpress Orders

#### Primary Key: `Code`

#### Schema

| Field                    | Type     | Description                |
| ------------------------ | -------- | -------------------------- |
| Account                  | string   | Account                    |
| Amount                   | double   | Amount                     |
| Approved                 | string   | Approved                   |
| ApprovedDate             | string   | Approved Date              |
| ApprovedUser             | string   | Approved User              |
| ApprovedUserName         | string   | Approved User Name         |
| Approver                 | string   | Approver                   |
| Billing                  | string   | Billing                    |
| BillingAddress1          | string   | Billing Address1           |
| BillingAddress2          | string   | Billing Address2           |
| BillingCity              | string   | Billing City               |
| BillingCompany           | string   | Billing Company            |
| BillingCountry           | string   | Billing Country            |
| BillingEmail             | string   | Billing Email              |
| BillingFirstName         | string   | Billing First Name         |
| BillingLastName          | string   | Billing Last Name          |
| BillingPhone             | string   | Billing Phone              |
| BillingPostCode          | numeric  | Billing Post Code          |
| BillingState             | string   | Billing State              |
| Branch                   | string   | Branch                     |
| CashAmount               | double   | Cash Amount                |
| CashTransferAmount       | double   | Cash Transfer Amount       |
| Code                     | string   | Code                       |
| Contact                  | string   | Contact                    |
| ContactAddress           | string   | Contact Address            |
| ContactEmail             | string   | Contact Email              |
| ContactName              | string   | Contact Name               |
| ContactPhone             | string   | Contact Phone              |
| Created                  | datetime | Created                    |
| Creator                  | string   | Creator                    |
| DateOfDelivery           | datetime | Date Of Delivery           |
| DateOfProcessing         | string   | Date Of Processing         |
| DateOfSale               | datetime | Date Of Sale               |
| DateOfTransport          | string   | Date Of Transport          |
| DeliveryAddress          | string   | Delivery Address           |
| DeliveryCost             | string   | Delivery Cost              |
| DeliveryLocation         | string   | Delivery Location          |
| DirectReceiverName       | string   | Direct Receiver Name       |
| District                 | string   | District                   |
| DistrictLabel            | string   | District Label             |
| Employee                 | string   | Employee                   |
| EmployeeName             | string   | Employee Name              |
| Id                       | numeric  | Id                         |
| InventoryDeliveryVoucher | string   | Inventory Delivery Voucher |
| Invoice                  | string   | Invoice                    |
| InvoiceAddress           | string   | Invoice Address            |
| InvoiceLocation          | string   | Invoice Location           |
| IsExportVatInvoice       | numeric  | Is Export Vat Invoice      |
| IsObjectRevenue          | boolean  | Is Object Revenue          |
| LastUpdate               | string   | Last Update                |
| No                       | numeric  | No                         |
| Note                     | string   | Note                       |
| Object                   | string   | Object                     |
| ObjectAddress            | string   | Object Address             |
| ObjectEmail              | string   | Object Email               |
| ObjectName               | string   | Object Name                |
| ObjectPhone              | string   | Object Phone               |
| OriginDeliveryCost       | string   | Origin Delivery Cost       |
| Page                     | string   | Page                       |
| PageName                 | string   | Page Name                  |
| PaymentMethod            | string   | Payment Method             |
| Permission               | string   | Permission                 |
| PriceTable               | string   | Price Table                |
| Province                 | string   | Province                   |
| ProvinceLabel            | string   | Province Label             |
| Publisher                | string   | Publisher                  |
| PublisherName            | string   | Publisher Name             |
| ReceiptBankAccount       | string   | Receipt Bank Account       |
| RefId                    | numeric  | Ref Id                     |
| RefOrderData             | string   | Ref Order Data             |
| RefVendorId              | numeric  | Ref Vendor Id              |
| RefVendorName            | string   | Ref Vendor Name            |
| RelativeVouchers         | string   | Relative Vouchers          |
| Revision                 | numeric  | Revision                   |
| Saler                    | string   | Saler                      |
| SalerName                | string   | Saler Name                 |
| Shipper                  | string   | Shipper                    |
| ShipperName              | string   | Shipper Name               |
| Shipping                 | string   | Shipping                   |
| ShippingAddress1         | string   | Shipping Address1          |
| ShippingAddress2         | string   | Shipping Address2          |
| ShippingCity             | string   | Shipping City              |
| ShippingCompany          | string   | Shipping Company           |
| ShippingCountry          | string   | Shipping Country           |
| ShippingFirstName        | string   | Shipping First Name        |
| ShippingLastName         | string   | Shipping Last Name         |
| ShippingPhone            | string   | Shipping Phone             |
| ShippingPostCode         | numeric  | Shipping Post Code         |
| ShippingState            | string   | Shipping State             |
| Site                     | string   | Site                       |
| SiteDomain               | string   | Site Domain                |
| SiteName                 | string   | Site Name                  |
| State                    | string   | State                      |
| Status                   | string   | Status                     |
| SubNote                  | string   | Sub Note                   |
| Title                    | string   | Title                      |
| Type                     | string   | Type                       |
| Ward                     | string   | Ward                       |
| WardLabel                | string   | Ward Label                 |

#### GET

**Description: Get item or list paging by offset and limit parameters**

**Endpoint(s):**

* `GET /v4/wordpress/orders/{Code}`: for get exacly item
* `GET /v4/wordpress/orders`: for get multiple items

**Parameters:**

* `token`: authentication token (Type: `string`)
* `offset`: get items from offset (Type: `int`)
* `limit`: get number of items (Type: `int`)
* `id<no>`: type is string and start from 0 for get one or more special items, id maybe end of enpoint / (Type: `string`)
* `filter_<Field>`: filter items by like value (Type: `string`)
* `left_<Field>`: filter items by like left of value (Type: `string`)
* `right_<Field>`: filter items by like right of value (Type: `string`)
* `eq_<Field>`: filter items by equal value (Type: `string`)
* `ne_<Field>`: filter items by not equal value (Type: `string`)
* `lt_<Field>`: filter items by less than value (Type: `string`)
* `le_<Field>`: filter items by less than or equal value (Type: `string`)
* `gt_<Field>`: filter items by greater then value (Type: `string`)
* `ge_<Field>`: filter items by greater than or equal value (Type: `string`)

#### POST

**Description: Create new items**

**Endpoint: `POST /v4/wordpress/orders`**

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### PUT

**Description: Update items by ids**

* `PUT /v4/wordpress/orders/{Code}`: for put exacly item
* `PUT /v4/wordpress/orders`: for put multiple items

**Payload:**

* Content-Type: `application/json`
* Data: JSON Array of objects defined in Schema

#### DELETE

**Description: Delete items by ids**

**Endpoint(s):**

* `DELETE /v4/wordpress/orders/{Code}`: for delete exacly item
* `DELETE /v4/wordpress/orders?id0=123&id1=456&...`: for delete multiple items with id0 id1,...


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.crm.ai.vn/api-update-9-4-2025/module-web-ban-hang.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
