# Module Triển Khai

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

#### Primary Key: `Code`

#### Schema

| Field                    | Type     | Description                 |
| ------------------------ | -------- | --------------------------- |
| Branch                   | string   | Branch                      |
| Code                     | string   | Code                        |
| Contact                  | string   | Contact                     |
| ContactAddress           | string   | Contact Address             |
| ContactEmail             | string   | Contact Email               |
| ContactIdentifiedNumber  | string   | Contact Identified Number   |
| ContactName              | string   | Contact Name                |
| ContactPhone             | string   | Contact Phone               |
| Created                  | datetime | Created                     |
| Creator                  | string   | Creator                     |
| DeliveryAddress          | string   | Delivery Address            |
| DeliveryDistrict         | string   | Delivery District           |
| DeliveryDistrictLabel    | string   | Delivery District Label     |
| DeliveryProvince         | string   | Delivery Province           |
| DeliveryProvinceLabel    | string   | Delivery Province Label     |
| DeliveryWard             | string   | Delivery Ward               |
| DeliveryWardLabel        | string   | Delivery Ward Label         |
| DeploymentDate           | datetime | Deployment Date             |
| DirectReceiver           | string   | Direct Receiver             |
| DirectReceiverAddress    | string   | Direct Receiver Address     |
| DirectReceiverEmail      | string   | Direct Receiver Email       |
| DirectReceiverName       | string   | Direct Receiver Name        |
| DirectReceiverPhone      | string   | Direct Receiver Phone       |
| Driver                   | string   | Driver                      |
| DriverName               | string   | Driver Name                 |
| DriverPhone              | string   | Driver Phone                |
| Employee                 | string   | Employee                    |
| FullDeliveryAddress      | string   | Full Delivery Address       |
| Id                       | numeric  | Id                          |
| Implementer              | string   | Implementer                 |
| ImplementerEmail         | string   | Implementer Email           |
| ImplementerName          | string   | Implementer Name            |
| ImplementerPhone         | string   | Implementer Phone           |
| IsDebt                   | boolean  | Is Debt                     |
| MapUrl                   | string   | Map Url                     |
| Note                     | string   | Note                        |
| Object                   | string   | Object                      |
| ObjectAddress            | string   | Object Address              |
| ObjectBankCode           | string   | Object Bank Code            |
| ObjectBankName           | string   | Object Bank Name            |
| ObjectEmail              | string   | Object Email                |
| ObjectIdentifiedNumber   | string   | Object Identified Number    |
| ObjectName               | string   | Object Name                 |
| ObjectPhone              | string   | Object Phone                |
| ObjectTaxCode            | string   | Object Tax Code             |
| Permission               | string   | Permission                  |
| Recipient                | string   | Recipient                   |
| SequenceNumber           | numeric  | Sequence Number             |
| ShippingCost             | double   | Shipping Cost               |
| ShippingCostPaymentBy    | string   | Shipping Cost Payment By    |
| ShippingCostPaymentRatio | double   | Shipping Cost Payment Ratio |
| State                    | string   | State                       |
| SubNote                  | string   | Sub Note                    |
| Thread                   | string   | Thread                      |
| Title                    | string   | Title                       |
| Transportation           | string   | Transportation              |
| TransportationName       | string   | Transportation Name         |

#### GET

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

**Endpoint(s):**

* `GET /v4/deployment/vouchers/{Code}`: for get exacly item
* `GET /v4/deployment/vouchers`: 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/deployment/vouchers`**

**Payload:**

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

#### PUT

**Description: Update items by ids**

* `PUT /v4/deployment/vouchers/{Code}`: for put exacly item
* `PUT /v4/deployment/vouchers`: 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/deployment/vouchers/{Code}`: for delete exacly item
* `DELETE /v4/deployment/vouchers?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) Deployment VoucherComments

#### Primary Key: `Voucher, SystemUuid`

#### Schema

| Field        | Type      | Description   |
| ------------ | --------- | ------------- |
| Attachments  | serialize | Attachments   |
| Content      | string    | Content       |
| DateOfPost   | datetime  | Date Of Post  |
| Id           | numeric   | Id            |
| Sender       | string    | Sender        |
| SenderAvatar | serialize | Sender Avatar |
| SenderName   | string    | Sender Name   |
| SystemUuid   | string    | System Uuid   |
| Voucher      | string    | Voucher       |

#### GET

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

**Endpoint(s):**

* `GET /v4/deployment/voucher-comments/{Voucher}-{SystemUuid}`: for get exacly item
* `GET /v4/deployment/voucher-comments`: 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/deployment/voucher-comments`**

**Payload:**

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

#### PUT

**Description: Update items by ids**

* `PUT /v4/deployment/voucher-comments/{Voucher}-{SystemUuid}`: for put exacly item
* `PUT /v4/deployment/voucher-comments`: 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/deployment/voucher-comments/{Voucher}-{SystemUuid}`: for delete exacly item
* `DELETE /v4/deployment/voucher-comments?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-trien-khai.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.
