{"auth":"Authorization: Bearer pos_<token> (tạo ở trang API, phân quyền read hoặc read,write)","scopes":{"read":"Chỉ đọc dữ liệu (GET / MCP read tools)","write":"Đọc và ghi dữ liệu (POST/PUT/PATCH/DELETE / MCP full tools)"},"mcp":{"url":"https://allpos.pages.dev/mcp","transport":"streamable-http","supports_write":true,"module_filtered":true},"openapi":"https://allpos.pages.dev/openapi.yaml","tools":[{"name":"list_products","group":"Sản phẩm","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/products","description":"Tìm/liệt kê sản phẩm theo tên, SKU hoặc barcode.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Tên, SKU hoặc barcode"},"type":{"type":"string","description":"Lọc theo product_type (vd general, fashion, gold...)"},"status":{"type":"string","description":"active | inactive | '' (tất cả)"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"get_product","group":"Sản phẩm","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/products/{id}","description":"Chi tiết 1 sản phẩm và danh sách biến thể.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID sản phẩm"}},"required":["id"],"additionalProperties":false}},{"name":"create_product","group":"Sản phẩm","method":"POST","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/products","description":"Tạo sản phẩm mới (tự sinh biến thể mặc định và tồn kho ban đầu = 0).","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Tên sản phẩm"},"sku":{"type":"string","description":"Mã SKU (bỏ trống sẽ tự sinh)"},"product_type":{"type":"string","description":"Ngành sản phẩm (mặc định general)"},"base_price":{"type":"integer","description":"Giá bán mặc định (VND)","minimum":0},"category_id":{"type":"string","description":"UUID danh mục"},"brand_id":{"type":"string","description":"UUID thương hiệu/NSX"}},"required":["name"],"additionalProperties":false}},{"name":"update_product","group":"Sản phẩm","method":"PUT","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/products/{id}","description":"Cập nhật thông tin sản phẩm.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID sản phẩm"},"name":{"type":"string","description":"Tên sản phẩm"},"base_price":{"type":"integer","description":"Giá bán (VND)","minimum":0},"status":{"type":"string","description":"active | inactive","enum":["active","inactive"]},"category_id":{"type":"string","description":"UUID danh mục"},"product_type":{"type":"string","description":"Ngành sản phẩm"},"brand_id":{"type":"string","description":"UUID thương hiệu/NSX"}},"required":["id"],"additionalProperties":false}},{"name":"delete_product","group":"Sản phẩm","method":"DELETE","scope":"write","module":"core","idempotent":false,"destructive":true,"path":"/api/products/{id}","description":"Ẩn (ngừng bán) một sản phẩm.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID sản phẩm"}},"required":["id"],"additionalProperties":false}},{"name":"create_variant","group":"Sản phẩm","method":"POST","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/variants","description":"Thêm biến thể (SKU/barcode/giá/thuộc tính) cho sản phẩm.","input_schema":{"type":"object","properties":{"product_id":{"type":"string","description":"UUID sản phẩm"},"sku":{"type":"string","description":"Mã SKU biến thể"},"barcode":{"type":"string","description":"Mã vạch"},"price":{"type":"integer","description":"Giá bán (VND)","minimum":0},"attributes":{"type":"object","description":"Thuộc tính ngành hàng dạng JSON (size, color...)"},"metal":{"type":"object","description":"Chi tiết vàng/bạc (nếu là sản phẩm vàng/bạc)"}},"required":["product_id","sku","price"],"additionalProperties":false}},{"name":"update_variant","group":"Sản phẩm","method":"PUT","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/variants/{id}","description":"Cập nhật giá, SKU, barcode hoặc thuộc tính của 1 biến thể.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID biến thể"},"sku":{"type":"string","description":"Mã SKU"},"barcode":{"type":"string","description":"Mã vạch"},"price":{"type":"integer","description":"Giá bán (VND)","minimum":0},"attributes":{"type":"object","description":"Thuộc tính JSON"},"metal":{"type":"object","description":"Chi tiết vàng/bạc"}},"required":["id"],"additionalProperties":false}},{"name":"list_categories","group":"Sản phẩm","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/categories","description":"Danh sách danh mục sản phẩm.","input_schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"create_category","group":"Sản phẩm","method":"POST","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/categories","description":"Tạo danh mục sản phẩm mới.","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Tên danh mục"},"parent_id":{"type":"string","description":"UUID danh mục cha (tuỳ chọn)"}},"required":["name"],"additionalProperties":false}},{"name":"list_brands","group":"Sản phẩm","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/brands","description":"Danh sách thương hiệu / nhà sản xuất.","input_schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"create_brand","group":"Sản phẩm","method":"POST","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/brands","description":"Tạo thương hiệu / nhà sản xuất mới.","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Tên thương hiệu"},"symbol":{"type":"string","description":"Ký hiệu"},"standard":{"type":"string","description":"Tiêu chuẩn công bố"},"address":{"type":"string","description":"Địa chỉ"}},"required":["name"],"additionalProperties":false}},{"name":"list_customers","group":"Khách hàng","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/customers","description":"Tìm/liệt kê khách hàng.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Tên hoặc số điện thoại"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"get_customer","group":"Khách hàng","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/customers/{id}","description":"Chi tiết 1 khách hàng.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID khách hàng"}},"required":["id"],"additionalProperties":false}},{"name":"create_customer","group":"Khách hàng","method":"POST","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/customers","description":"Tạo khách hàng mới (cá nhân hoặc doanh nghiệp).","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Họ tên hoặc tên doanh nghiệp"},"phone":{"type":"string","description":"Số điện thoại"},"email":{"type":"string","description":"Email"},"address":{"type":"string","description":"Địa chỉ"},"is_business":{"type":"boolean","description":"Là doanh nghiệp"},"tax_code":{"type":"string","description":"Mã số thuế"},"id_card":{"type":"string","description":"CCCD/CMND"},"notes":{"type":"string","description":"Ghi chú"}},"required":["name"],"additionalProperties":false}},{"name":"update_customer","group":"Khách hàng","method":"PUT","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/customers/{id}","description":"Cập nhật thông tin khách hàng.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID khách hàng"},"name":{"type":"string","description":"Họ tên"},"phone":{"type":"string","description":"Số điện thoại"},"email":{"type":"string","description":"Email"},"address":{"type":"string","description":"Địa chỉ"},"is_business":{"type":"boolean","description":"Là doanh nghiệp"},"tax_code":{"type":"string","description":"Mã số thuế"},"id_card":{"type":"string","description":"CCCD/CMND"},"notes":{"type":"string","description":"Ghi chú"}},"required":["id"],"additionalProperties":false}},{"name":"get_customer_debt","group":"Khách hàng","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/customers/{id}/debt","description":"Công nợ (tiền VND và vàng quy 99 nếu có) của 1 khách.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID khách hàng"}},"required":["id"],"additionalProperties":false}},{"name":"list_customer_debts","group":"Khách hàng","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/customers/debts","description":"Danh sách khách đang nợ / cửa hàng đang nợ khách.","input_schema":{"type":"object","properties":{"direction":{"type":"string","description":"all | customer_owes | shop_owes","enum":["all","customer_owes","shop_owes"]},"search":{"type":"string","description":"Tên/SĐT khách"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"adjust_customer_debt","group":"Khách hàng","method":"POST","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/customers/{id}/debt","description":"Ghi bút toán điều chỉnh công nợ thủ công (hoặc ghi chú nhắc nợ) cho khách hàng.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID khách hàng"},"money_amount":{"type":"integer","description":"Số tiền VND có dấu (+ khách nợ thêm, - giảm nợ / cửa hàng nợ)"},"gold_amount_99":{"type":"string","description":"Số chỉ vàng 99 có dấu dạng chuỗi thập phân (mặc định '0')"},"note":{"type":"string","description":"Lý do / ghi chú bút toán"}},"required":["id"],"additionalProperties":false}},{"name":"list_orders","group":"Đơn hàng","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/orders","description":"Danh sách đơn hàng, lọc theo ngày/trạng thái/loại đơn.","input_schema":{"type":"object","properties":{"status":{"type":"string","description":"pending | completed | cancelled | refunded"},"order_type":{"type":"string","description":"retail | wholesale"},"search":{"type":"string","description":"Mã đơn, tên hoặc SĐT khách"},"include_quick":{"type":"string","description":"Truyền '1' để gồm cả đơn nháp"},"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"get_order","group":"Đơn hàng","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/orders/{id}","description":"Chi tiết 1 đơn hàng (dòng hàng, thanh toán).","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID đơn"}},"required":["id"],"additionalProperties":false}},{"name":"create_order","group":"Đơn hàng","method":"POST","scope":"write","module":"core","idempotent":true,"destructive":false,"path":"/api/orders","description":"Tạo đơn bán lẻ hoặc bán sỉ (tự trừ tồn kho và ghi nhận thanh toán ban đầu nếu có).","input_schema":{"type":"object","properties":{"customer_id":{"type":"string","description":"UUID khách hàng (tuỳ chọn cho bán lẻ)"},"order_type":{"type":"string","description":"retail | wholesale (mặc định retail)","enum":["retail","wholesale"]},"items":{"type":"array","description":"Danh sách mặt hàng: [{ product_variant_id, quantity, unit_price, discount? }]"},"discount":{"type":"integer","description":"Giảm giá toàn đơn (VND)","minimum":0},"notes":{"type":"string","description":"Ghi chú đơn hàng"},"invoice_date":{"type":"string","description":"Ngày hoá đơn YYYY-MM-DD (tuỳ chọn)"},"initial_payment":{"type":"object","description":"Thanh toán ngay lúc tạo đơn: { amount, method, reference_no? }"},"idempotency_key":{"type":"string","description":"Khoá chống ghi trùng (tuỳ chọn; MCP tự sinh nếu bỏ trống)","minLength":8,"maxLength":128}},"required":["items"],"additionalProperties":false}},{"name":"update_order_status","group":"Đơn hàng","method":"PATCH","scope":"write","module":"core","idempotent":false,"destructive":true,"path":"/api/orders/{id}/status","description":"Cập nhật trạng thái đơn hàng (completed / cancelled / refunded; huỷ/hoàn sẽ tự hoàn kho).","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID đơn hàng"},"status":{"type":"string","description":"Trạng thái mới","enum":["completed","cancelled","refunded"]}},"required":["id","status"],"additionalProperties":false}},{"name":"list_payments","group":"Đơn hàng","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/payments","description":"Danh sách giao dịch thanh toán.","input_schema":{"type":"object","properties":{"order_id":{"type":"string","description":"Lọc theo UUID đơn hàng"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"create_payment","group":"Đơn hàng","method":"POST","scope":"write","module":"core","idempotent":true,"destructive":false,"path":"/api/payments","description":"Ghi nhận thanh toán (thu tiền / hoàn tiền) cho 1 đơn hàng.","input_schema":{"type":"object","properties":{"order_id":{"type":"string","description":"UUID đơn hàng"},"amount":{"type":"integer","description":"Số tiền VND (dương = thu, âm = hoàn trả)"},"method":{"type":"string","description":"Phương thức: cash | transfer | card | installment"},"reference_no":{"type":"string","description":"Mã tham chiếu giao dịch"},"idempotency_key":{"type":"string","description":"Khoá chống ghi trùng (tuỳ chọn; MCP tự sinh nếu bỏ trống)","minLength":8,"maxLength":128}},"required":["order_id","amount","method"],"additionalProperties":false}},{"name":"get_stock","group":"Kho","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/inventory/stock","description":"Tồn kho hiện tại.","input_schema":{"type":"object","properties":{"variant_id":{"type":"string","description":"Lọc theo 1 variant"}},"required":[],"additionalProperties":false}},{"name":"list_inventory_transactions","group":"Kho","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/inventory","description":"Lịch sử nhập/xuất/điều chỉnh kho.","input_schema":{"type":"object","properties":{"type":{"type":"string","description":"IN | OUT | ADJUST","enum":["IN","OUT","ADJUST"]},"search":{"type":"string","description":"Từ khoá"},"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"create_inventory_transaction","group":"Kho","method":"POST","scope":"write","module":"core","idempotent":true,"destructive":false,"path":"/api/inventory","description":"Tạo phiếu nhập (IN), xuất (OUT) hoặc điều chỉnh (ADJUST) tồn kho cho 1 biến thể.","input_schema":{"type":"object","properties":{"product_variant_id":{"type":"string","description":"UUID biến thể sản phẩm"},"type":{"type":"string","description":"Loại giao dịch kho","enum":["IN","OUT","ADJUST"]},"quantity":{"type":"integer","description":"Số lượng"},"unit_cost":{"type":"integer","description":"Giá vốn đơn vị (VND)","minimum":0},"notes":{"type":"string","description":"Ghi chú"},"idempotency_key":{"type":"string","description":"Khoá chống ghi trùng (tuỳ chọn; MCP tự sinh nếu bỏ trống)","minLength":8,"maxLength":128}},"required":["product_variant_id","type","quantity"],"additionalProperties":false}},{"name":"list_suppliers","group":"Nhà cung cấp","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/suppliers","description":"Danh sách nhà cung cấp.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Từ khoá"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"create_supplier","group":"Nhà cung cấp","method":"POST","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/suppliers","description":"Tạo nhà cung cấp mới.","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Tên nhà cung cấp"},"phone":{"type":"string","description":"Số điện thoại"},"email":{"type":"string","description":"Email"},"address":{"type":"string","description":"Địa chỉ"},"tax_code":{"type":"string","description":"Mã số thuế"},"notes":{"type":"string","description":"Ghi chú"}},"required":["name"],"additionalProperties":false}},{"name":"list_purchase_receipts","group":"Nhà cung cấp","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/purchase-receipts","description":"Danh sách phiếu nhập hàng.","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"},"limit":{"type":"integer","description":"Số dòng tối đa (1–200, mặc định 50)","minimum":1,"maximum":200},"offset":{"type":"integer","description":"Bỏ qua N dòng đầu (phân trang)","minimum":0}},"required":[],"additionalProperties":false}},{"name":"get_purchase_receipt","group":"Nhà cung cấp","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/purchase-receipts/{id}","description":"Chi tiết 1 phiếu nhập hàng.","input_schema":{"type":"object","properties":{"id":{"type":"string","description":"UUID phiếu nhập"}},"required":["id"],"additionalProperties":false}},{"name":"create_purchase_receipt","group":"Nhà cung cấp","method":"POST","scope":"write","module":"core","idempotent":true,"destructive":false,"path":"/api/purchase-receipts","description":"Tạo phiếu nhập kho nhiều sản phẩm từ nhà cung cấp.","input_schema":{"type":"object","properties":{"supplier_id":{"type":"string","description":"UUID nhà cung cấp (tuỳ chọn)"},"notes":{"type":"string","description":"Ghi chú"},"items":{"type":"array","description":"Danh sách hàng nhập: [{ product_variant_id, quantity, unit_cost }]"},"idempotency_key":{"type":"string","description":"Khoá chống ghi trùng (tuỳ chọn; MCP tự sinh nếu bỏ trống)","minLength":8,"maxLength":128}},"required":["items"],"additionalProperties":false}},{"name":"report_revenue","group":"Báo cáo","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/reports/revenue","description":"Báo cáo doanh thu (mặc định 30 ngày gần nhất).","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"}},"required":[],"additionalProperties":false}},{"name":"report_stock","group":"Báo cáo","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/reports/stock","description":"Báo cáo tồn kho.","input_schema":{"type":"object","properties":{"filter":{"type":"string","description":"Bộ lọc, vd low-stock"}},"required":[],"additionalProperties":false}},{"name":"get_settings","group":"Cài đặt","method":"GET","scope":"read","module":"core","idempotent":false,"destructive":false,"path":"/api/settings","description":"Đọc cài đặt cửa hàng (tên, địa chỉ, tiền tệ, ngành kinh doanh, module...).","input_schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"update_settings","group":"Cài đặt","method":"POST","scope":"write","module":"core","idempotent":false,"destructive":false,"path":"/api/settings","description":"Cập nhật các khoá cài đặt cửa hàng (vd shop_name, low_stock_threshold, enabled_industries...).","input_schema":{"type":"object","properties":{"shop_name":{"type":"string","description":"Tên cửa hàng"},"shop_address":{"type":"string","description":"Địa chỉ"},"shop_phone":{"type":"string","description":"Số điện thoại"},"tax_code":{"type":"string","description":"Mã số thuế"},"low_stock_threshold":{"type":"string","description":"Ngưỡng tồn kho thấp"},"receipt_footer":{"type":"string","description":"Lời cảm ơn cuối bill"},"enabled_industries":{"type":"string","description":"Danh sách ngành cách nhau bằng dấu phẩy"},"enabled_modules":{"type":"string","description":"Danh sách module chuyên ngành cách nhau bằng dấu phẩy"}},"required":[],"additionalProperties":false}},{"name":"get_gold_prices","group":"Vàng","method":"GET","scope":"read","module":"gold","idempotent":false,"destructive":false,"path":"/api/gold/prices","description":"Giá vàng đã lưu.","input_schema":{"type":"object","properties":{"date":{"type":"string","description":"Ngày YYYY-MM-DD"}},"required":[],"additionalProperties":false}},{"name":"set_gold_price","group":"Vàng","method":"POST","scope":"write","module":"gold","idempotent":false,"destructive":false,"path":"/api/gold/prices","description":"Cập nhật bảng giá vàng mua vào / bán ra.","input_schema":{"type":"object","properties":{"gold_type_id":{"type":"string","description":"UUID loại vàng"},"buy_price":{"type":"integer","description":"Giá mua vào (VND/chỉ)","minimum":0},"sell_price":{"type":"integer","description":"Giá bán ra (VND/chỉ)","minimum":0},"effective_date":{"type":"string","description":"Ngày áp dụng YYYY-MM-DD"}},"required":["gold_type_id","buy_price","sell_price"],"additionalProperties":false}},{"name":"list_gold_types","group":"Vàng","method":"GET","scope":"read","module":"gold","idempotent":false,"destructive":false,"path":"/api/gold/types","description":"Danh sách loại vàng và tuổi vàng.","input_schema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"create_gold_type","group":"Vàng","method":"POST","scope":"write","module":"gold","idempotent":false,"destructive":false,"path":"/api/gold/types","description":"Thêm loại vàng mới (tên + độ tuổi %).","input_schema":{"type":"object","properties":{"name":{"type":"string","description":"Tên loại vàng (vd Vàng 98)"},"purity":{"type":"number","description":"Độ tuổi % (vd 98, 99.99, 61)"}},"required":["name"],"additionalProperties":false}},{"name":"list_gold_orders","group":"Vàng","method":"GET","scope":"read","module":"gold","idempotent":false,"destructive":false,"path":"/api/gold/orders","description":"Danh sách phiếu gia công / đặt hàng vàng.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Từ khoá"}},"required":[],"additionalProperties":false}},{"name":"list_gold_invoices","group":"Vàng","method":"GET","scope":"read","module":"gold","idempotent":false,"destructive":false,"path":"/api/gold/invoices","description":"Danh sách hoá đơn vàng.","input_schema":{"type":"object","properties":{"search":{"type":"string","description":"Từ khoá"}},"required":[],"additionalProperties":false}},{"name":"report_gold","group":"Báo cáo","method":"GET","scope":"read","module":"gold","idempotent":false,"destructive":false,"path":"/api/reports/gold","description":"Báo cáo tổng hợp module vàng.","input_schema":{"type":"object","properties":{"from":{"type":"string","description":"Từ ngày YYYY-MM-DD"},"to":{"type":"string","description":"Đến ngày YYYY-MM-DD"}},"required":[],"additionalProperties":false}}]}