Orders API
Version: 1.0
Table of contents
- Overview
- Concepts and terminology
- Capabilities
- Business and API rules
- API operations
- Data definitions
- Search, filter, sort, and pagination
- Permissions and limitations
- Errors and exceptions
- Usage guidance for AI
- Sources
- Thông tin cần bổ sung cho 7 API write
Overview
An Order represents a customer's request to purchase one or more products from a shop. This AI-facing Orders API specification supports reading and filtering orders, counting orders, retrieving a specific order, updating a limited set of attributes, changing order lifecycle state, managing tags, and assigning advanced order-processing responsibility.
Creating orders is outside the scope of this specification; see Capabilities.
This specification covers exactly seven write operations, each targeting one existing order:
- Confirm an order: marks the order as confirmed and records
confirmed_at. - Close an order: marks an order with no remaining work as closed and records
closed_at. - Reopen a closed order: returns a closed order to the open state.
- Update an order: changes the order note (
note) and additional details (note_attributes). - Add order tags: adds tags to the order while keeping its existing tags.
- Delete order tags: removes the named tags from the order; it does not delete the order.
- Assign order handling: assigns handling users, user groups, and a location in advanced order processing.
Admin features described in Help do not extend this API contract.
Concepts and terminology
Order identifiers
| Field | Meaning |
|---|---|
id | Numeric identifier used in API paths such as /com/orders/{order_id}.json. |
order_number | Identifier intended for the merchant and customer. It is distinct from the API id. |
name | Display name generated from the order number plus the merchant's configured prefix and suffix. The API can also set this field to a string value. |
number | Position of the order in the shop's order count. |
token | Unique value used when referencing the order. |
cart_token | Identifier of the cart associated with the order. |
checkout_token | Identifier of the checkout associated with the order. |
Use id, not order_number, name, or number, as {order_id} in documented API paths.
Order lifecycle state
| Concept | Documented values or meaning |
|---|---|
| Confirmation | confirmed_at records when the order was confirmed. confirmed_status is shown as unconfirmed before confirmation. The complete set of confirmed_status values is not specified. |
| Closure | closed_at is the close timestamp or null. closed_status is shown as unclosed before closure. A closed order has no more work to perform because its items have been fulfilled or refunded. |
| Cancellation | cancelled_at is the cancellation timestamp or null. cancelled_status is shown as uncancelled before cancellation and cancelled in a cancellation example. |
Payment status
financial_status is read-only in this specification; see Business and API rules. Documented values are:
| Value | Meaning |
|---|---|
pending | Payment is pending and might still fail. |
authorized | Payment has been authorized. |
partially_paid | Order has been partially paid. |
paid | Payment has been recorded as paid. |
partially_refunded | Payment has been partially refunded. |
refunded | Payment has been refunded. |
voided | Payment has been voided. |
Use partially_paid with an underscore. partiallypaid is not a documented value.
Fulfillment status
The Order resource documents these fulfillment_status values:
| Value | Meaning |
|---|---|
null | No line item has been fulfilled. |
partial | At least one line item has been fulfilled. |
fulfilled | Every line item has been fulfilled. |
restocked | Every line item has been restocked and the order cancelled. |
The list endpoint uses different filter terms: unshipped, shipped, and partial. Do not substitute resource values for filter values.
Cancellation reasons
| Value | Meaning |
|---|---|
customer | Customer changed or cancelled the order. |
fraud | Order was fraudulent. |
inventory | Items were not available in inventory. |
declined | Payment was declined. |
other | Cancellation reason is not represented by another value. |
Capabilities
The documented API can:
- List orders with server-side filters, field selection, sorting, and page-based pagination.
- Count all orders or count cancelled orders using the documented example.
- Retrieve an order by its API
id. - Confirm, close, or reopen an order.
- Update
noteandnote_attributesusing the documented update examples. - Add or remove tags.
- Assign users, groups, and a location for advanced order processing.
The documented API does not provide an endpoint that deletes the Order resource. A DELETE endpoint exists only for removing tags.
Create Order is excluded from the AI capability set. Do not call or propose POST /com/orders.json, even when the credential has com.write_orders.
Business and API rules
- Write requests target one existing order by API ID. Use the documented JSON envelope for each operation; field presence in a response does not establish writability.
- Confirmation, closure, payment, and fulfillment are separate states. Do not send undocumented lifecycle fields through the generic update endpoint.
financial_statusandsource_namecan be set only when an order is created. They are read-only in this specification.- Orders created through Haravan POS might not have an attached
customer. Consumers must handlecustomer: null. billing_addresscan be absent when an order does not require a payment method.shipping_addresscan be absent when an order does not require shipping.- Tags are stored as a comma-separated string. Each individual tag is limited to 40 characters.
total_priceandtotal_taxare documented as positive values.total_weightis not adjusted when items are removed from the order.- A gift-card line item is not taxed and is not included in shipping charges.
- A closed order is described as having no remaining work because all items have been fulfilled or refunded.
- Assignment is documented only for shops using advanced order processing.
API operations
Base URL: https://apis.haravan.com. JSON request examples use Content-Type: application/json and Accept: application/json; supply the integration's configured authentication and replace sample IDs with verified shop IDs. Examples are illustrative.
List orders
Purpose
Use this operation to retrieve multiple orders and narrow the result on the server. Prefer it over downloading all orders and filtering locally.
Endpoint
GET https://apis.haravan.com/com/orders.json
Input
All inputs are query parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
ids | string | No | Comma-separated API order IDs. |
limit | integer | No | Results per page. Default 50; maximum 50. |
page | not specified | No | Page to return. |
since_id | not specified | No | Return results after the specified API ID. |
created_at_min | ISO 8601 timestamp | No | Orders created after the timestamp. |
created_at_max | ISO 8601 timestamp | No | Orders created before the timestamp. |
updated_at_min | ISO 8601 timestamp | No | Orders updated after the timestamp. |
updated_at_max | ISO 8601 timestamp | No | Orders updated before the timestamp. |
processed_at_min | ISO 8601 timestamp | No | Orders imported after the timestamp. |
processed_at_max | ISO 8601 timestamp | No | Orders imported before the timestamp. |
financial_status | string | No | pending, paid, partially_paid, refunded, voided, or partially_refunded. The list filter does not document authorized. |
fulfillment_status | string | No | unshipped, shipped, or partial. |
status | string | No | open, closed, cancelled, or any. any includes archived orders. |
fields | string | No | Comma-separated fields to include in the response. |
order | string | No | Sort by created_at or updated_at, followed by asc or desc. |
Output
Returns HTTP 200 OK with an orders array. Each entry is an Order object. When fields is supplied, the examples show only the selected fields.
Constraints
- Page size cannot exceed 50.
- Only
created_atandupdated_atare documented as sortable. - The default sort order is not specified.
Examples
GET /com/orders.json?page=1
GET /com/orders.json?updated_at_min=2021-01-04T00:00:00.000Z
GET /com/orders.json?fields=id,name,created_at
GET /com/orders.json?since_id=1138637000
GET /com/orders.json?order=created_at%20desc
Count orders
Purpose
Use this operation when only the number of matching orders is needed and the Order objects themselves are unnecessary.
Endpoint
GET https://apis.haravan.com/com/orders/count.json
Input
Supports the same query parameters as List orders, including filters such as status, financial_status, fulfillment_status, date ranges, etc. The count reflects the orders matching the supplied parameters.
Output
Returns HTTP 200 OK with a numeric count.
{
"count": 500
}
Constraints
Count-specific limits are not specified.
Retrieve an order
Purpose
Use this operation when the API id of a specific order is known and the full Order resource is required.
Endpoint
GET https://apis.haravan.com/com/orders/{order_id}.json
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | number | Yes | Order API ID in the path. |
Output
Returns HTTP 200 OK with an order object.
Constraints
The error response for an unknown order_id is not specified.
Confirm an order
Purpose
Use this operation to confirm an existing order.
Endpoint
POST https://apis.haravan.com/com/orders/{order_id}/confirm.json
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | number | Yes | Order API ID in the path. |
The documented request body is an empty JSON object ({}).
Output
Returns HTTP 200 OK with the updated order object.
Read order.id and confirmed_at to identify the order and its confirmation timestamp. The complete set of confirmation-status values is not specified.
Constraints
Eligible states, repeat-call behavior, and confirmation-specific errors are not specified.
Order verification, payment confirmation, stock dispatch, and fulfillment creation are separate steps. Do not describe this operation as collecting payment or completing delivery. Its inventory and notification side effects are not specified.
Examples
POST https://apis.haravan.com/com/orders/1225418252/confirm.json
Accept: application/json
Content-Type: application/json
{}
Close an order
Purpose
Use this operation when an order has no more work to perform because all items have been fulfilled or refunded.
Endpoint
POST https://apis.haravan.com/com/orders/{order_id}/close.json
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | number | Yes | Order API ID in the path. |
The documented request body is an empty JSON object ({}).
Output
Returns HTTP 200 OK with the updated order object.
Read order.id and closed_at. The latter records closure time; it does not establish payment or delivery completion.
Constraints
Server validation for orders that are not fully fulfilled or refunded is not specified.
The Admin Archive / Unarchive actions are recommended after delivery and payment are complete. This is workflow guidance, not an API validation rule. Whether these actions correspond exactly to close / open is not specified. Closure is not proof of payment or delivery.
Examples
POST https://apis.haravan.com/com/orders/1225418252/close.json
Accept: application/json
Content-Type: application/json
{}
Reopen a closed order
Purpose
Use this operation to reopen an order that is closed.
Endpoint
POST https://apis.haravan.com/com/orders/{order_id}/open.json
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | number | Yes | Order API ID in the path. |
The documented request body is an empty JSON object ({}).
Output
Returns HTTP 200 OK with the updated order object.
Read order.id and closed_at; the resource definition uses null when the order is not closed. Payment and fulfillment statuses are independent.
Constraints
Behavior when the order is not closed is not specified.
Do not infer that reopening reverses payment or fulfillment. Those effects and repeat-call behavior are not specified.
Examples
POST https://apis.haravan.com/com/orders/1225418252/open.json
Accept: application/json
Content-Type: application/json
{}
Update an order
Purpose
Use this operation only for the documented mutable attributes, note and note_attributes.
Endpoint
PUT https://apis.haravan.com/com/orders/{order_id}.json
Input
The request body uses an order envelope. Documented examples cover note and note_attributes; the full list of mutable fields is not specified.
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | number | Yes | Order API ID in the path; do not use display order numbers. |
order | object | Documented envelope | Contains the attributes to update. |
order.id | number | Not specified | Included in examples; keep consistent with the path. Omission support is unspecified. |
order.note | string | Not specified | Order note; null/empty clearing semantics unspecified. |
order.note_attributes | array of objects | Not specified | Objects with name and value strings. Replacement and omission behavior is not specified; do not assume per-key merging. |
Output
Returns HTTP 200 OK with the updated order object.
Read the returned note or note_attributes to report the resulting values. Do not assume other submitted fields were accepted.
Constraints
- Line items and their quantities cannot be changed.
- The complete list of mutable attributes is not specified. Do not assume a field is writable because it appears in a response.
financial_statusandsource_nameare read-only; see Business and API rules.
The order note is separate from internal history comments; this operation is not documented as adding a history comment. Admin editing of products, quantities, and prices is not available through this operation.
Examples
PUT https://apis.haravan.com/com/orders/1225418252.json
Accept: application/json
Content-Type: application/json
{
"order": {
"id": 1225418252,
"note": "Customer contacted us about a custom engraving"
}
}
Update additional details (note_attributes):
PUT https://apis.haravan.com/com/orders/1225418252.json
Accept: application/json
Content-Type: application/json
{
"order": {
"id": 1225418252,
"note_attributes": [
{
"name": "colour",
"value": "red"
}
]
}
}
Add order tags
Purpose
Use this operation to add tags while preserving tags that are not named in the request.
Endpoint
POST https://apis.haravan.com/com/orders/{order_id}/tags.json
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | number | Yes | Order API ID in the path. |
tags | string | Included in example | Comma-separated tag names in the JSON body. Omission behavior is not specified. |
Output
Returns HTTP 200 OK with the resulting comma-separated tags string. The example adds a1,a2 to existing VIP and returns VIP,a1,a2.
{"tags": "VIP,a1,a2"}
Constraints
- The path targets one order;
tagsis a comma-separated string, not an array. Duplicate handling, case sensitivity, whitespace normalization, and empty-string behavior are not specified. - Admin can change tags on multiple orders at once; no bulk tag operation is documented for the API.
- Use
POSTfor this operation.
Examples
POST https://apis.haravan.com/com/orders/1225418252/tags.json
Accept: application/json
Content-Type: application/json
{
"tags": "a1,a2"
}
Delete order tags
Purpose
Use this operation to remove the tags named in the request. It does not delete the Order resource.
Endpoint
DELETE https://apis.haravan.com/com/orders/{order_id}/tags.json
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | number | Yes | Order API ID in the path. |
tags | string | Included in example | Comma-separated tag names in the JSON body. Omission behavior is not specified. |
Output
Returns HTTP 200 OK with the remaining comma-separated tags string. The example removes a1,a2 and returns VIP.
{"tags": "VIP"}
Constraints
Behavior when a requested tag is not present is not specified.
Use DELETE with the documented JSON body. It removes named tags from this order, not globally. Empty input, removing the final tag, matching rules, and repeat-call behavior are not specified.
Examples
DELETE https://apis.haravan.com/com/orders/1225418252/tags.json
Accept: application/json
Content-Type: application/json
{
"tags": "a1,a2"
}
Assign order handling
Purpose
Use this operation to assign handling users, user groups, and a location when advanced order processing is enabled.
Endpoint
POST https://apis.haravan.com/com/orders/{order_id}/assign.json
Input
Whether each array can contain multiple values, what group_user_ids: [0] represents, and which fields are individually required are not specified.
| Parameter | Type | Required | Description |
|---|---|---|---|
order_id | number | Yes | Order API ID in the path. |
user_ids | array of numbers | Not specified | Handling users; lookup endpoint and maximum cardinality unspecified. |
group_user_ids | array of numbers | Not specified | Handling groups. [0] appears in the example; it is not a documented default or unassign command. |
location_id | number | Not specified | Assignment location; eligible locations and inventory effects unspecified. |
Do not substitute employee names for IDs. Omitted fields, empty arrays, changing an existing assignment, and removing assignment have no documented semantics.
Output
Returns HTTP 200 OK with the updated order. The example includes assignment fields such as assigned_location_id, assigned_location_name, assigned_location_at, and order_processing_status.
Constraints
- This operation is documented only for advanced order processing.
- Eligibility, assignment validation, and permission errors are not documented.
- In Admin, group/user assignment is part of advanced order processing and is available on Scale or higher packages. Whether the API enforces package eligibility and employee/location permissions is not specified.
Examples
The meaning of group_user_ids: [0] in this example is not specified; do not use it as a default.
POST https://apis.haravan.com/com/orders/1225418252/assign.json
Accept: application/json
Content-Type: application/json
{
"user_ids": [200001038919],
"group_user_ids": [0],
"location_id": 876530
}
Data definitions
Core Order fields
| Field | Type | Definition and constraints |
|---|---|---|
id | number | API identifier for the Order. |
name | string | Merchant/customer display name; generated from number plus configured prefix/suffix unless explicitly set by API. |
number | number | Position in the shop's order count. |
order_number | string | Merchant/customer identifier, distinct from API id. |
email | string | Customer email address. |
contact_email | string | Contact email of the buyer. Its relationship to email is not specified. |
note | string | Optional note attached by the merchant. |
note_attributes | array | Additional name/value details displayed in the order's Additional details section. |
tags | string | Comma-separated tags. |
currency | string | Three-letter ISO 4217 shop currency code. |
created_at | string | Creation timestamp in ISO 8601 format. |
updated_at | string | Last-update timestamp in ISO 8601 format. |
confirmed_at | string or null | Confirmation timestamp in ISO 8601 format. |
closed_at | string or null | Closure timestamp in ISO 8601 format. |
cancelled_at | string or null | Cancellation timestamp in ISO 8601 format. |
cancel_reason | string or null | Documented cancellation-reason enum. |
financial_status | string | Payment status; read-only. |
fulfillment_status | string or null | Overall fulfillment state. |
processing_method | string or null | checkout, direct, manual, or offsite. |
source_name | string | Order source; read-only, with protected Haravan channel values. |
gateway | string | Payment gateway name recorded on the order. |
gateway_code | string | Unique identifier of the recorded payment gateway. |
user_id | number | Haravan POS user who processed the order, when applicable. |
location_id | number | Physical location where the order was processed. |
Timestamps use ISO 8601. Examples use UTC with a Z suffix (for example, 2021-05-13T07:29:20.1Z); the timezone of every response is not guaranteed. Send filter timestamps in UTC with Z; do not assume local timezone conversion.
Amount and weight fields
| Field | Type | Meaning |
|---|---|---|
subtotal_price | number | Price after discounts and before shipping, duties, taxes, and tips. |
total_discounts | number | Total discounts in shop currency. |
total_line_items_price | number | Sum of line-item prices in shop currency. |
total_price | number | Sum of line-item prices, discounts, shipping, taxes, and tips; documented as positive. |
total_tax | number | Sum of taxes in shop currency; documented as positive. |
total_weight | number | Sum of line-item weights in grams; not adjusted when items are removed. |
taxes_included | string | Whether taxes are included in the subtotal. Values are true and false. |
Addresses
billing_address and shipping_address contain address fields including address1, address2, city, company, country, country_code, first_name, last_name, latitude, longitude, name, phone, province, province_code, and zip. Response examples also include Haravan-specific district, district_code, ward, and ward_code.
Billing address is optional when no payment method is required. Shipping address is optional when no shipping is required.
Customer
customer contains customer information and can be null, especially for orders created through Haravan POS. Consumers must not depend on its presence. Use the Customer API for the customer contract.
Line items
Important documented line-item fields include:
| Field | Meaning |
|---|---|
id | Line-item identifier. |
product_id | Product identifier; can become null if the original product is later deleted. |
variant_id | Product-variant identifier. |
quantity | Purchased quantity. |
fulfillable_quantity | quantity - max(refunded_quantity, fulfilled_quantity) - pending_fulfilled_quantity. |
price | Price before discounts. |
total_discount | Discount applied to the line item; it is not subtracted from price. |
grams | Weight in grams. |
fulfillment_service | manual or provider name. |
fulfillment_status | Source lists fulfilled, null, or partial for a line item. |
requires_shipping | Whether shipping is required. |
sku | Stock keeping unit. |
title | Product title. |
variant_title | Variant title. |
vendor | Supplier name. |
name | Product-variant name. |
gift_card | Gift-card indicator; gift cards are not taxed or included in shipping charges. |
taxable | Whether the line item is taxable. |
tax_lines | Taxes applicable to the line item. |
Response examples contain additional line-item fields such as barcode, properties, applied_discounts, image, product_exists, not_allow_promotion, and ma_cost_amount; their contracts are not specified.
Discounts, shipping, tax, refunds, and transactions
discount_codesis an array. Documented fields includecode,amount, andtype; documentedtypevalues arepercentage,shipping, andfixed_amount, withfixed_amountidentified as the default.shipping_linesis an array of shipping methods withcode,price,source,title, and optionallytax_lines.tax_linescontainsprice,rate, andtitlefor applicable taxes.refundscontains refunds associated with the order.transactionscontains transaction records. Use the Transactions API for the complete transaction contract.fulfillmentscontains fulfillment records associated with the order.
Other response fields
browser_ip,buyer_accepts_marketing, andreferring_siteappear in responses; their definitions are not specified.- Response examples include many additional fields without definitions. Presence in an example does not establish writability, enum values, or business behavior.
Search, filter, sort, and pagination
- Use
idsto request known API IDs in one list call. - Use
created_at_min/created_at_max,updated_at_min/updated_at_max, andprocessed_at_min/processed_at_maxfor server-side time ranges. - Use
financial_status,fulfillment_status, orstatusfor documented state filtering. - Use
fieldsto reduce the response when only specific fields are needed. - Pagination is page-based through
page;limitdefaults to 50 and cannot exceed 50. - Sort only by the documented fields
created_atandupdated_at, usingascordesc. - Cursor pagination, a total-page response field, and a default sort order are not documented.
Permissions and limitations
- Read operations require
com.read_orders. - Write operations require
com.write_orders. - All Haravan APIs are subject to platform rate limits; the numeric threshold for Orders is not specified. See API Rate Limits.
- No endpoint for deleting the Order resource is documented.
- Assignment is limited to advanced order processing.
- Historical data limits are not documented.
Errors and exceptions
Only successful 200 OK responses are documented for these operations. Structured error payloads and operation-specific error status codes are not documented.
Callers must still account for these documented failure conditions or uncertainties:
- Missing or insufficient read/write scope.
- Unknown
order_id. - Invalid enum or filter value.
limitgreater than 50.- Attempt to update immutable or unsupported fields, including line items and quantities.
- Invalid order state for a lifecycle action; exact state validation is not documented.
- Advanced assignment used when the feature is unavailable.
The exact HTTP status and error body for these cases are not specified and must not be invented.
Usage guidance for AI
- Supported write operations are confirm, close, reopen, update, add tags, delete tags, and assign.
- Use returned order fields to describe lifecycle/update/assignment results; tag operations instead return a
tagsobject. HTTP 200 on another action is not proof of payment or shipping success. - Retry safety is undocumented. A timeout does not prove a write failed; inspect current order state before deciding whether another call is appropriate. No idempotency-key contract is supplied.
- Keep history comments separate from order notes, and Admin editing capabilities separate from public PUT capabilities.
- Use the API
idfor{order_id}; do not substituteorder_number,name, ornumber. - Use
GET /com/orders/count.jsonwhen only a count is needed. - Use server-side filters, field selection, sorting, and pagination instead of retrieving all orders for local processing.
- Use only the documented list filter values. In particular, distinguish fulfillment filter values from the resource's fulfillment-status values.
- Treat
customer,billing_address, andshipping_addressas optional. - Use the dedicated tag endpoints for tag changes.
- Do not interpret
DELETE /tags.jsonas Order deletion. - Treat fields shown only in response examples as read-only or unknown unless another source explicitly documents them as writable.
- When validation, state transitions, errors, or capabilities are not documented, treat them as unknown rather than assuming conventional behavior.
Sources
- Orders API: routes, scope, request/response examples, restrictions and source inconsistencies.
- Order processing workflow: separate verification/payment/shipping steps, advanced assignment and UI package availability.
- Order management: Admin Archive / Unarchive workflow.
- Basic order information: order notes versus history comments, and adding/removing labels.
- Editing orders: broader UI editing capability; not evidence of additional public PUT fields.
Thông tin cần bổ sung cho 7 API write
Các mục dưới đây cần dev xác nhận để hoàn thiện tools. Phạm vi chỉ gồm Confirm, Close, Open, Update, thêm tag, xóa tag và Assign.
| API | Cần dev xác nhận |
|---|---|
| Confirm | Trạng thái được phép gọi; tác động tới tồn kho/thông báo và các field thay đổi; kết quả khi xác nhận lại. |
| Close / Open | Điều kiện trạng thái, đặc biệt đơn chưa giao/chưa thanh toán; có tương ứng chính xác Lưu trữ/Bỏ lưu trữ trên Admin không; field thay đổi và hành vi gọi lặp. |
| Update | Danh sách field được sửa, trường bắt buộc; order.id có bắt buộc không; bỏ field/null/rỗng; note_attributes thay toàn bộ hay gộp; điều kiện trạng thái riêng cho public PUT. |
| Thêm / xóa tag | Tag trùng/không tồn tại, hoa thường, khoảng trắng, chuỗi rỗng; response khi xóa tag cuối; hành vi gọi lại. |
| Assign | API tra ID nhân viên/nhóm; trường bắt buộc; ý nghĩa [0]; số lượng người/nhóm; gán thay thế hay bổ sung; bỏ phân công; kho hợp lệ và tác động khi đổi kho. |
- Quyền nhân viên/phạm vi kho ngoài
com.write_orders; cách API kiểm tra tính năng và gói đối với Assign. - HTTP status và body lỗi cho ID không tồn tại, thiếu quyền, input sai, trạng thái không hợp lệ.
- Cơ chế gọi lặp/idempotency và xác định kết quả sau timeout; response thực tế để đối chiếu ví dụ tài liệu.
Ưu tiên chốt input của Update và Assign để dev thiết kế tool schema. Không suy ra quy tắc API từ khả năng thao tác trên UI.