KiotViet MCP by usefulapi is an MCP server published by io.usefulapi, hosted at kiotviet.usefulapi.io. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 29 tools, including kiotviet_list_products, kiotviet_get_product, kiotviet_get_product_by_code, kiotviet_list_categories, kiotviet_get_category.
Read KiotViet products, customers, invoices, orders and stock; create customers and orders.
4,433 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
List products (code, barcode, name, category, base price, units, attributes). Optionally include stock per branch (include_inventory) and price-book prices. Filter by name, category, branch, active flag or last change. GET /products.
| Parameter | Type | Description |
|---|---|---|
| name | string | Filter by product name. |
| order_by | string | Sort field. |
| is_active | boolean | Only active (true) or inactive (false) products. |
| page_size | integer | Records per page, 1-100 (default 20). |
| branch_ids | array | Only these branches (see kiotviet_list_branches). |
| category_id | integer | Only products in this category (see kiotviet_list_categories). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| order_direction | string | Sort direction. |
| include_inventory | boolean | Include the stock on hand per branch. |
| include_pricebook | boolean | Include the price-book prices. |
| last_modified_from | string | Only records changed at or after this date-time (shop local time). |
{
"name": "kiotviet_list_products",
"title": "List products",
"description": "List products (code, barcode, name, category, base price, units, attributes). Optionally include stock per branch (include_inventory) and price-book prices. Filter by name, category, branch, active flag or last change. GET /products.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Filter by product name."
},
"order_by": {
"enum": [
"name",
"code",
"createdDate",
"modifiedDate"
],
"type": "string",
"description": "Sort field."
},
"is_active": {
"type": "boolean",
"description": "Only active (true) or inactive (false) products."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"branch_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Only these branches (see kiotviet_list_branches)."
},
"category_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Only products in this category (see kiotviet_list_categories).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"order_direction": {
"enum": [
"Asc",
"Desc"
],
"type": "string",
"description": "Sort direction."
},
"include_inventory": {
"type": "boolean",
"description": "Include the stock on hand per branch."
},
"include_pricebook": {
"type": "boolean",
"description": "Include the price-book prices."
},
"last_modified_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only records changed at or after this date-time (shop local time)."
}
}
},
"annotations": {
"title": "List products",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One product by id: code, barcode, name, category, base price, units, attributes, images, stock per branch and price books. GET /products/{id}.
| Parameter | Type | Description |
|---|---|---|
| product_id * | integer | KiotViet product id. |
{
"name": "kiotviet_get_product",
"title": "Get product",
"description": "One product by id: code, barcode, name, category, base price, units, attributes, images, stock per branch and price books. GET /products/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"product_id"
],
"properties": {
"product_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet product id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get product",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One product by its product code (SKU). GET /products/code/{code}.
| Parameter | Type | Description |
|---|---|---|
| code * | string | KiotViet product code. |
{
"name": "kiotviet_get_product_by_code",
"title": "Get product by code",
"description": "One product by its product code (SKU). GET /products/code/{code}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "KiotViet product code."
}
}
},
"annotations": {
"title": "Get product by code",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List product categories (id, name, parent, whether it has children). Set hierarchical to get the category tree. GET /categories.
| Parameter | Type | Description |
|---|---|---|
| order_by | string | Sort field. |
| page_size | integer | Records per page, 1-100 (default 20). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| hierarchical | boolean | Return the nested tree (ignores last_modified_from). |
| order_direction | string | Sort direction. |
| last_modified_from | string | Only records changed at or after this date-time (shop local time). |
{
"name": "kiotviet_list_categories",
"title": "List categories",
"description": "List product categories (id, name, parent, whether it has children). Set hierarchical to get the category tree. GET /categories.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"order_by": {
"enum": [
"categoryName",
"createdDate",
"modifiedDate"
],
"type": "string",
"description": "Sort field."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"hierarchical": {
"type": "boolean",
"description": "Return the nested tree (ignores last_modified_from)."
},
"order_direction": {
"enum": [
"Asc",
"Desc"
],
"type": "string",
"description": "Sort direction."
},
"last_modified_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only records changed at or after this date-time (shop local time)."
}
}
},
"annotations": {
"title": "List categories",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One product category by id (name, parent, children). GET /categories/{id}.
| Parameter | Type | Description |
|---|---|---|
| category_id * | integer | KiotViet category id. |
{
"name": "kiotviet_get_category",
"title": "Get category",
"description": "One product category by id (name, parent, children). GET /categories/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"category_id"
],
"properties": {
"category_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet category id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get category",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List customers (code, name, phone, email, address, debt, total invoiced, reward points, groups). Contains personal data of the shop's customers. Filter by code, name, phone, group or last change. GET /customers.
| Parameter | Type | Description |
|---|---|---|
| code | string | Customer code. |
| name | string | Filter by customer name. |
| group_id | integer | Only customers in this customer group. |
| order_by | string | Sort field. |
| page_size | integer | Records per page, 1-100 (default 20). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| include_total | boolean | Include financial totals (debt, total invoiced, points). |
| contact_number | string | Filter by phone number. |
| order_direction | string | Sort direction. |
| last_modified_from | string | Only records changed at or after this date-time (shop local time). |
One customer by id: contact data, debt, total invoiced, reward points, groups. GET /customers/{id}.
| Parameter | Type | Description |
|---|---|---|
| customer_id * | integer | KiotViet customer id. |
{
"name": "kiotviet_get_customer",
"title": "Get customer",
"description": "One customer by id: contact data, debt, total invoiced, reward points, groups. GET /customers/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"customer_id"
],
"properties": {
"customer_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet customer id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get customer",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One customer by customer code. GET /customers/code/{code}.
| Parameter | Type | Description |
|---|---|---|
| code * | string | KiotViet customer code. |
{
"name": "kiotviet_get_customer_by_code",
"title": "Get customer by code",
"description": "One customer by customer code. GET /customers/code/{code}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "KiotViet customer code."
}
}
},
"annotations": {
"title": "Get customer by code",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}WRITE: create a new customer in the shop (name required; code is generated by KiotViet if omitted). Always check with the user first, and look the customer up by phone before creating a duplicate. POST /customers.
| Parameter | Type | Description |
|---|---|---|
| code | string | Customer code (optional; KiotViet generates one). |
| name * | string | Customer name. |
| string | Email address. | |
| address | string | Street address. |
| comments | string | Note on the customer. |
| tax_code | string | Tax code (ma so thue). |
| group_ids | array | Customer group ids. |
| birth_date | string | Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time). |
| organization | string | Company name. |
| contact_number | string | Phone number. |
List sales invoices (code, date, branch, customer, total, amount paid, status, lines). Filter by branch, customer, status, order, purchase-date range or last change. GET /invoices.
| Parameter | Type | Description |
|---|---|---|
| status | array | KiotViet status code(s) to include. |
| order_by | string | Sort field. |
| order_id | integer | Only the invoice created from this sales order. |
| page_size | integer | Records per page, 1-100 (default 20). |
| branch_ids | array | Only these branches (see kiotviet_list_branches). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| customer_ids | array | Only invoices of these customers. |
| customer_code | string | Only invoices of the customer with this code. |
| include_payment | boolean | Include the payments. |
| order_direction | string | Sort direction. |
One invoice by id with its lines, payments and delivery. GET /invoices/{id}.
| Parameter | Type | Description |
|---|---|---|
| invoice_id * | integer | KiotViet invoice id. |
{
"name": "kiotviet_get_invoice",
"title": "Get invoice",
"description": "One invoice by id with its lines, payments and delivery. GET /invoices/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"invoice_id"
],
"properties": {
"invoice_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet invoice id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get invoice",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One invoice by invoice code (for example HD000123). GET /invoices/code/{code}.
| Parameter | Type | Description |
|---|---|---|
| code * | string | KiotViet invoice code. |
{
"name": "kiotviet_get_invoice_by_code",
"title": "Get invoice by code",
"description": "One invoice by invoice code (for example HD000123). GET /invoices/code/{code}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "KiotViet invoice code."
}
}
},
"annotations": {
"title": "Get invoice by code",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List sales orders (code, date, branch, customer, total, status, lines, delivery). Filter by branch, customer, status, creation date (from) or last change (from/to). GET /orders.
| Parameter | Type | Description |
|---|---|---|
| status | array | KiotViet status code(s) to include. |
| order_by | string | Sort field. |
| page_size | integer | Records per page, 1-100 (default 20). |
| branch_ids | array | Only these branches (see kiotviet_list_branches). |
| created_date | string | Only orders created at or after this date. |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| customer_ids | array | Only orders of these customers. |
| customer_code | string | Only orders of the customer with this code. |
| include_payment | boolean | Include the payments. |
| order_direction | string | Sort direction. |
One sales order by id with its lines, payments and delivery. GET /orders/{id}.
| Parameter | Type | Description |
|---|---|---|
| order_id * | integer | KiotViet order id. |
{
"name": "kiotviet_get_order",
"title": "Get sales order",
"description": "One sales order by id with its lines, payments and delivery. GET /orders/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"order_id"
],
"properties": {
"order_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet order id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get sales order",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One sales order by order code (for example DH000123). GET /orders/code/{code}.
| Parameter | Type | Description |
|---|---|---|
| code * | string | KiotViet order code. |
{
"name": "kiotviet_get_order_by_code",
"title": "Get sales order by code",
"description": "One sales order by order code (for example DH000123). GET /orders/code/{code}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "KiotViet order code."
}
}
},
"annotations": {
"title": "Get sales order by code",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}WRITE: create a sales order (an order, not an invoice: no invoice is made and no payment is recorded) with lines of existing products in a branch, for an existing customer or none. Always confirm the products, quantities and prices with the user first. POST /orders.
| Parameter | Type | Description |
|---|---|---|
| items * | array | The order lines. |
| discount | number | Order discount amount. |
| branch_id * | integer | Branch the order is for (see kiotviet_list_branches). |
| sold_by_id | integer | Salesperson user id (see kiotviet_list_users). |
| customer_id | integer | Existing customer id (see kiotviet_list_customers). |
| description | string | Note on the order. |
| sale_channel_id | integer | Sales channel id. |
{
"name": "kiotviet_create_order",
"title": "Create sales order",
"description": "WRITE: create a sales order (an order, not an invoice: no invoice is made and no payment is recorded) with lines of existing products in a branch, for an existing customer or none. Always confirm the products, quantities and prices with the user first. POST /orders.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"branch_id",
"items"
],
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"product_id",
"quantity",
"price"
],
"properties": {
"note": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Line note."
},
"price": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "Unit price."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "Line discount amount."
},
"quantity": {
"type": "number",
"maximum": 1000000,
"description": "Quantity.",
"exclusiveMinimum": 0
},
"product_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Product id.",
"exclusiveMinimum": 0
}
}
},
"maxItems": 100,
"minItems": 1,
"description": "The order lines."
},
"discount": {
"type": "number",
"maximum": 1000000000000,
"minimum": 0,
"description": "Order discount amount."
},
"branch_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Branch the order is for (see kiotviet_list_branches).",
"exclusiveMinimum": 0
},
"sold_by_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Salesperson user id (see kiotviet_list_users).",
"exclusiveMinimum": 0
},
"customer_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Existing customer id (see kiotviet_list_customers).",
"exclusiveMinimum": 0
},
"description": {
"type": "string",
"maxLength": 1000,
"minLength": 1,
"description": "Note on the order."
},
"sale_channel_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Sales channel id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Create sales order",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}List the shop's branches (id, name, code, phone, address). Use the ids to filter other tools. GET /branches.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Records per page, 1-100 (default 20). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
{
"name": "kiotviet_list_branches",
"title": "List branches",
"description": "List the shop's branches (id, name, code, phone, address). Use the ids to filter other tools. GET /branches.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
}
}
},
"annotations": {
"title": "List branches",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Stock on hand and reserved quantity per product and branch. Filter by branch or last change. GET /productOnHands.
| Parameter | Type | Description |
|---|---|---|
| order_by | string | Sort field. |
| page_size | integer | Records per page, 1-100 (default 20). |
| branch_ids | array | Only these branches (see kiotviet_list_branches). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| order_direction | string | Sort direction. |
| last_modified_from | string | Only records changed at or after this date-time (shop local time). |
{
"name": "kiotviet_list_stock",
"title": "List stock on hand",
"description": "Stock on hand and reserved quantity per product and branch. Filter by branch or last change. GET /productOnHands.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"order_by": {
"enum": [
"code",
"createdDate",
"modifiedDate"
],
"type": "string",
"description": "Sort field."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"branch_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Only these branches (see kiotviet_list_branches)."
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"order_direction": {
"enum": [
"Asc",
"Desc"
],
"type": "string",
"description": "Sort direction."
},
"last_modified_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only records changed at or after this date-time (shop local time)."
}
}
},
"annotations": {
"title": "List stock on hand",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List suppliers (code, name, phone, email, address, debt, total invoiced). Filter by code, name, phone or last change. GET /suppliers.
| Parameter | Type | Description |
|---|---|---|
| code | string | Supplier code. |
| name | string | Filter by supplier name. |
| page_size | integer | Records per page, 1-100 (default 20). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| include_total | boolean | Include financial totals (debt, total invoiced). |
| contact_number | string | Filter by phone number. |
| order_direction | string | Sort direction. |
| last_modified_from | string | Only records changed at or after this date-time (shop local time). |
{
"name": "kiotviet_list_suppliers",
"title": "List suppliers",
"description": "List suppliers (code, name, phone, email, address, debt, total invoiced). Filter by code, name, phone or last change. GET /suppliers.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Supplier code."
},
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Filter by supplier name."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"include_total": {
"type": "boolean",
"description": "Include financial totals (debt, total invoiced)."
},
"contact_number": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Filter by phone number."
},
"order_direction": {
"enum": [
"Asc",
"Desc"
],
"type": "string",
"description": "Sort direction."
},
"last_modified_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only records changed at or after this date-time (shop local time)."
}
}
},
"annotations": {
"title": "List suppliers",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One supplier by id. GET /suppliers/{id}.
| Parameter | Type | Description |
|---|---|---|
| supplier_id * | integer | KiotViet supplier id. |
{
"name": "kiotviet_get_supplier",
"title": "Get supplier",
"description": "One supplier by id. GET /suppliers/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"supplier_id"
],
"properties": {
"supplier_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet supplier id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get supplier",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List goods receipts from suppliers (nhap hang: code, date, branch, supplier, total, lines). Filter by branch, status or purchase-date range. GET /purchaseorders.
| Parameter | Type | Description |
|---|---|---|
| status | array | KiotViet status code(s) to include. |
| page_size | integer | Records per page, 1-100 (default 20). |
| branch_ids | array | Only these branches (see kiotviet_list_branches). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| include_payment | boolean | Include the payments. |
| to_purchase_date | string | Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time). |
| from_purchase_date | string | Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time). |
{
"name": "kiotviet_list_purchase_orders",
"title": "List goods receipts",
"description": "List goods receipts from suppliers (nhap hang: code, date, branch, supplier, total, lines). Filter by branch, status or purchase-date range. GET /purchaseorders.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"status": {
"type": "array",
"items": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"maxItems": 10,
"description": "KiotViet status code(s) to include."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"branch_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Only these branches (see kiotviet_list_branches)."
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"include_payment": {
"type": "boolean",
"description": "Include the payments."
},
"to_purchase_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
},
"from_purchase_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
}
}
},
"annotations": {
"title": "List goods receipts",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One goods receipt (nhap hang) by id with its lines. GET /purchaseorders/{id}.
| Parameter | Type | Description |
|---|---|---|
| purchase_order_id * | integer | KiotViet goods receipt id. |
{
"name": "kiotviet_get_purchase_order",
"title": "Get goods receipt",
"description": "One goods receipt (nhap hang) by id with its lines. GET /purchaseorders/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"purchase_order_id"
],
"properties": {
"purchase_order_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet goods receipt id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get goods receipt",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List orders placed with suppliers (dat hang nhap: code, date, branch, supplier, status, lines, amount paid). Filter by branch, status, supplier or product text. GET /ordersuppliers.
| Parameter | Type | Description |
|---|---|---|
| status | integer | KiotViet status code. |
| code_key | string | Order code. |
| branch_id | integer | Only this branch. |
| page_size | integer | Records per page, 1-100 (default 20). |
| product_key | string | Product code or name. |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| supplier_key | string | Supplier code, name or phone. |
{
"name": "kiotviet_list_supplier_orders",
"title": "List supplier orders",
"description": "List orders placed with suppliers (dat hang nhap: code, date, branch, supplier, status, lines, amount paid). Filter by branch, status, supplier or product text. GET /ordersuppliers.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"status": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "KiotViet status code."
},
"code_key": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Order code."
},
"branch_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Only this branch.",
"exclusiveMinimum": 0
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"product_key": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Product code or name."
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"supplier_key": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Supplier code, name or phone."
}
}
},
"annotations": {
"title": "List supplier orders",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List customer returns (code, date, branch, customer, invoice, return total, lines). GET /returns.
| Parameter | Type | Description |
|---|---|---|
| order_by | string | Sort field. |
| page_size | integer | Records per page, 1-100 (default 20). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| include_payment | boolean | Include the payments. |
| order_direction | string | Sort direction. |
| last_modified_from | string | Only records changed at or after this date-time (shop local time). |
{
"name": "kiotviet_list_returns",
"title": "List returns",
"description": "List customer returns (code, date, branch, customer, invoice, return total, lines). GET /returns.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"order_by": {
"enum": [
"createdDate",
"modifiedDate",
"code"
],
"type": "string",
"description": "Sort field."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"include_payment": {
"type": "boolean",
"description": "Include the payments."
},
"order_direction": {
"enum": [
"Asc",
"Desc"
],
"type": "string",
"description": "Sort direction."
},
"last_modified_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only records changed at or after this date-time (shop local time)."
}
}
},
"annotations": {
"title": "List returns",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}One customer return by id with its lines. GET /returns/{id}.
| Parameter | Type | Description |
|---|---|---|
| return_id * | integer | KiotViet return id. |
{
"name": "kiotviet_get_return",
"title": "Get return",
"description": "One customer return by id with its lines. GET /returns/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"return_id"
],
"properties": {
"return_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet return id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get return",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List cash-book entries (receipts and payments: code, branch, method, partner, amount, date, status). Filter by branch, direction or date range. GET /cashflow.
| Parameter | Type | Description |
|---|---|---|
| code | string | Voucher code. |
| end_date | string | Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time). |
| page_size | integer | Records per page, 1-100 (default 20). |
| branch_ids | array | Only these branches (see kiotviet_list_branches). |
| is_receipt | boolean | true = receipts (money in), false = payments (money out). |
| start_date | string | Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| partner_name | string | Customer, supplier or other partner name. |
{
"name": "kiotviet_list_cashflow",
"title": "List cash flow",
"description": "List cash-book entries (receipts and payments: code, branch, method, partner, amount, date, status). Filter by branch, direction or date range. GET /cashflow.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Voucher code."
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"branch_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Only these branches (see kiotviet_list_branches)."
},
"is_receipt": {
"type": "boolean",
"description": "true = receipts (money in), false = payments (money out)."
},
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"partner_name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Customer, supplier or other partner name."
}
}
},
"annotations": {
"title": "List cash flow",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List the shop's staff users (id, username, name, phone, email). GET /users.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Records per page, 1-100 (default 20). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
{
"name": "kiotviet_list_users",
"title": "List users",
"description": "List the shop's staff users (id, username, name, phone, email). GET /users.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
}
}
},
"annotations": {
"title": "List users",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}List price books (bang gia: name, active flag, validity dates, branches, customer groups). GET /pricebooks.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Records per page, 1-100 (default 20). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| include_branches | boolean | Include the branches each price book applies to. |
| include_customer_groups | boolean | Include the customer groups each price book applies to. |
{
"name": "kiotviet_list_price_books",
"title": "List price books",
"description": "List price books (bang gia: name, active flag, validity dates, branches, customer groups). GET /pricebooks.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"include_branches": {
"type": "boolean",
"description": "Include the branches each price book applies to."
},
"include_customer_groups": {
"type": "boolean",
"description": "Include the customer groups each price book applies to."
}
}
},
"annotations": {
"title": "List price books",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}The product prices of one price book (product id, code, price), paged. GET /pricebooks/{id}.
| Parameter | Type | Description |
|---|---|---|
| page_size | integer | Records per page, 1-100 (default 20). |
| current_item | integer | Record offset to start from (0 = first record). Pass the previous reply's next_item. |
| price_book_id * | integer | KiotViet price book id. |
{
"name": "kiotviet_get_price_book",
"title": "Get price book prices",
"description": "The product prices of one price book (product id, code, price), paged. GET /pricebooks/{id}.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"price_book_id"
],
"properties": {
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"price_book_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "KiotViet price book id.",
"exclusiveMinimum": 0
}
}
},
"annotations": {
"title": "Get price book prices",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}Tools for KiotViet, hosted by usefulapi.io. If the user is new or asks what this server can do, suggest requests such as: "Which products are running low on stock at the Hanoi branch?"; "Show today's invoices with their totals and payment status."; "Find the customer with phone number 0901234567 and list their latest orders.". Read-only tools never change data; ask the user before a tool that creates, changes or deletes KiotViet data. Free plan: 50 tool calls per month. Run kiotviet_usage_status to see the calls used this month. If the user asks for something none of these tools can do, tell the user and, with their OK, run kiotviet_request_feature to record the request. Paid plans: Pro (10,000 tool calls a month, $9/month or $90/year, for normal use) and Pro+ (100,000 tool calls a month, $39/month or $390/year, for automations and heavy use). A plan can be cancelled at any time and then runs to the end of the paid period, so it also suits a one-time job. When the user wants more calls or reaches the limit, run kiotviet_upgrade without a plan: it returns both plans, each with a payment link for the user to open. kiotviet_cancel_subscription cancels Pro at the end of the paid period.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| include_customer_group | boolean | Include each customer's groups. |
{
"name": "kiotviet_list_customers",
"title": "List customers",
"description": "List customers (code, name, phone, email, address, debt, total invoiced, reward points, groups). Contains personal data of the shop's customers. Filter by code, name, phone, group or last change. GET /customers.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Customer code."
},
"name": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "Filter by customer name."
},
"group_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Only customers in this customer group.",
"exclusiveMinimum": 0
},
"order_by": {
"enum": [
"name",
"code",
"createdDate",
"modifiedDate"
],
"type": "string",
"description": "Sort field."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"include_total": {
"type": "boolean",
"description": "Include financial totals (debt, total invoiced, points)."
},
"contact_number": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Filter by phone number."
},
"order_direction": {
"enum": [
"Asc",
"Desc"
],
"type": "string",
"description": "Sort direction."
},
"last_modified_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only records changed at or after this date-time (shop local time)."
},
"include_customer_group": {
"type": "boolean",
"description": "Include each customer's groups."
}
}
},
"annotations": {
"title": "List customers",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}{
"name": "kiotviet_create_customer",
"title": "Create customer",
"description": "WRITE: create a new customer in the shop (name required; code is generated by KiotViet if omitted). Always check with the user first, and look the customer up by phone before creating a duplicate. POST /customers.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"name"
],
"properties": {
"code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Customer code (optional; KiotViet generates one)."
},
"name": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Customer name."
},
"email": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Email address."
},
"address": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Street address."
},
"comments": {
"type": "string",
"maxLength": 1000,
"minLength": 1,
"description": "Note on the customer."
},
"tax_code": {
"type": "string",
"maxLength": 50,
"minLength": 1,
"description": "Tax code (ma so thue)."
},
"group_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 20,
"description": "Customer group ids."
},
"birth_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
},
"organization": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "Company name."
},
"contact_number": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Phone number."
}
}
},
"annotations": {
"title": "Create customer",
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}
}| to_purchase_date |
| string |
| Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time). |
| from_purchase_date | string | Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time). |
| last_modified_from | string | Only records changed at or after this date-time (shop local time). |
{
"name": "kiotviet_list_invoices",
"title": "List invoices",
"description": "List sales invoices (code, date, branch, customer, total, amount paid, status, lines). Filter by branch, customer, status, order, purchase-date range or last change. GET /invoices.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"status": {
"type": "array",
"items": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"maxItems": 10,
"description": "KiotViet status code(s) to include."
},
"order_by": {
"enum": [
"createdDate",
"modifiedDate",
"purchaseDate",
"code"
],
"type": "string",
"description": "Sort field."
},
"order_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Only the invoice created from this sales order.",
"exclusiveMinimum": 0
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"branch_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Only these branches (see kiotviet_list_branches)."
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"customer_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Only invoices of these customers."
},
"customer_code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Only invoices of the customer with this code."
},
"include_payment": {
"type": "boolean",
"description": "Include the payments."
},
"order_direction": {
"enum": [
"Asc",
"Desc"
],
"type": "string",
"description": "Sort direction."
},
"to_purchase_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
},
"from_purchase_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Date 2026-10-01 or date-time 2026-10-01T08:00:00 (shop local time)."
},
"last_modified_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only records changed at or after this date-time (shop local time)."
}
}
},
"annotations": {
"title": "List invoices",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}| sale_channel_id |
| integer |
| Only orders from this sales channel. |
| last_modified_to | string | Only orders last changed up to this date-time (KiotViet toDate is a bound on the modification time, not the creation time). Use with last_modified_from. |
| last_modified_from | string | Only records changed at or after this date-time (shop local time). |
| include_order_delivery | boolean | Include the delivery details. |
{
"name": "kiotviet_list_orders",
"title": "List sales orders",
"description": "List sales orders (code, date, branch, customer, total, status, lines, delivery). Filter by branch, customer, status, creation date (from) or last change (from/to). GET /orders.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"status": {
"type": "array",
"items": {
"type": "integer",
"maximum": 100,
"minimum": 0
},
"maxItems": 10,
"description": "KiotViet status code(s) to include."
},
"order_by": {
"enum": [
"createdDate",
"modifiedDate",
"purchaseDate",
"code"
],
"type": "string",
"description": "Sort field."
},
"page_size": {
"type": "integer",
"maximum": 100,
"description": "Records per page, 1-100 (default 20).",
"exclusiveMinimum": 0
},
"branch_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Only these branches (see kiotviet_list_branches)."
},
"created_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only orders created at or after this date."
},
"current_item": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"description": "Record offset to start from (0 = first record). Pass the previous reply's next_item."
},
"customer_ids": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"exclusiveMinimum": 0
},
"maxItems": 50,
"description": "Only orders of these customers."
},
"customer_code": {
"type": "string",
"maxLength": 100,
"minLength": 1,
"description": "Only orders of the customer with this code."
},
"include_payment": {
"type": "boolean",
"description": "Include the payments."
},
"order_direction": {
"enum": [
"Asc",
"Desc"
],
"type": "string",
"description": "Sort direction."
},
"sale_channel_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Only orders from this sales channel.",
"exclusiveMinimum": 0
},
"last_modified_to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only orders last changed up to this date-time (KiotViet toDate is a bound on the modification time, not the creation time). Use with last_modified_from."
},
"last_modified_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,7})?)?(Z|[+-]\\d{2}:\\d{2})?)?$",
"description": "Only records changed at or after this date-time (shop local time)."
},
"include_order_delivery": {
"type": "boolean",
"description": "Include the delivery details."
}
}
},
"annotations": {
"title": "List sales orders",
"readOnlyHint": true,
"openWorldHint": true,
"destructiveHint": false
}
}