{
  "schema": "sidianpos-openapi-changelog/1",
  "apiVersion": "v1",
  "current": "1.10.1",
  "updated": "2026-11-23",
  "policy": {
    "breakingNoticeDays": 30,
    "deprecationWindowDays": 90,
    "feed": "/docs/changelog.xml",
    "spec": "/docs/openapi.yaml",
    "versioning": "https://semver.org/lang/zh-CN/"
  },
  "note": "本文件是唯一真相源。每次发版手工补一条 release；派生产物由 tools/openapi_changelog.py build 生成，禁止手工改。",
  "releases": [
    {
      "version": "1.10.1",
      "date": "2026-11-23",
      "type": "patch",
      "commit": "",
      "breaking": false,
      "summary": "澄清 ERP 出站方向的「谁调谁」与前置条件。POST /erp/outbounds 是补推触发器，不是 pets 的回调入口 —— 出站方向上思店是调用方、pets 是被调方，对接方不需要准备任何回调地址。",
      "changes": [
        {
          "type": "changed",
          "method": "POST",
          "path": "/erp/outbounds",
          "note": "标题改为「补推触发器」；description 补三件事：①日常出库由本地队列 + 定时任务自动完成，对接方通常不需要调用，只有漏推/立刻重推/外部订单源指定明细三种情况才手工调；②出站方向思店是调用方、pets 是被调方（思店用门店账号调 erp.outBound/add），本方向不存在回调地址；③前置条件不满足会明确报错 —— 无映射 code=400，该 pets 门店未配专属登录账号 code=409（pets 建单无门店字段，门店由登录账号决定），绝不静默跳过"
        },
        {
          "type": "changed",
          "method": "GET",
          "path": "/erp/outbounds",
          "note": "status 枚举由 0待推送/1已出库/2推送失败 补全为 7 态 0~6（新增 3待门店账号、4待人工确认、5库存不足、6已人工处理），与 sd_open_erp_outbound 实际取值一致；「已出库」统一改称「已同步」"
        },
        {
          "type": "docs",
          "note": "补一段「pets 建单没有幂等键」的风险提示：若上次失败在『单头已建、反查单号失败』这一步，重推会在 pets 侧多出一张同名出库单，重推前先到 pets 后台按 out_bound_name 搜一遍"
        }
      ]
    },
    {
      "version": "1.10.0",
      "date": "2026-11-23",
      "type": "minor",
      "commit": "",
      "breaking": false,
      "summary": "新增 ERP 出入库单据「入站」同步：pets ERP 侧自己发生的出入库（自营收银、美团闪购、采购入库、调拨、报损）可以主动推送回思店收银，改思店库存。此前后只有一个方向（思店卖货→扣 pets 库存），两边数量必然越走越远。",
      "changes": [
        {
          "type": "added",
          "method": "POST",
          "path": "/erp/stock-docs",
          "note": "推送一张 ERP 出入库单据到思店库存。幂等键 store_id + direction + doc_no（唯一索引 uk_erp_doc），重复推送零写入返回 duplicated=true；另有一层 sd_stock_log.ref_no 幂等，拦住推送与定时拉取互相重复记账。严格模式（缺省）下只要有任意明细映射不到思店商品就整单不写并返回未映射清单 —— 部分写入会被唯一键锁死、剩下几行永远补不上，库存永久少一块且无人可查。需要先落能落的传 allow_partial=true，未映射商品存 pending_keys，补完映射原样重推只补那几个商品。思店自己推给 pets 的出库单会被识别跳过（result=self_pushed），否则同一笔销售扣两遍库存。外部单据同步不拦负库存。"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/erp/stock-docs",
          "note": "入站同步记录列表，对接方自查用：某张单到底进来没有、卡在哪个商品上。列表不返回 payload（明细原文较大）。"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/erp/stock-docs/{id}",
          "note": "入站单据详情，含 payload（推送明细原文）与 pending_keys，排查「为什么某个商品没落库」用。越权访问与不存在一律返回 code=404，不泄露资源是否存在。"
        },
        {
          "type": "changed",
          "note": "文档分类「ERP销售出库」更名为「ERP出入库同步」—— 该分组现在同时含出站与入站两个方向，沿用出库名义会让对接方误以为只有出站能力。原有 path 与字段一个未动，纯分类名与描述调整。"
        },
        {
          "type": "docs",
          "note": "本组接口上线时未进契约，一致性守卫（tools/openapi_doc_guard.php）报「接口有、文档缺」3 条；本次补齐后 129/129 对齐。"
        }
      ]
    },
    {
      "version": "1.9.0",
      "date": "2026-11-23",
      "type": "minor",
      "commit": "e5b9ee6f",
      "breaking": false,
      "summary": "新增 POST /miniapp/url-link：外部系统（SCRM）可签发小程序 URL Link，把客户在微信外直接送进小程序认领页。",
      "changes": [
        {
          "type": "added",
          "method": "POST",
          "path": "/miniapp/url-link",
          "note": "签发小程序 URL Link（微信 wxa/generate_urllink，10 分钟有效）。path 白名单只放行 pages/crm-claim/index，query 只接受 k=<40 位 hex> 的一次性认领凭证，app_id 必须是 wx+16 位 hex —— 本接口带应用签名，限制范围是为了避免变成「给任意小程序页面生成外链」的开放重定向面"
        },
        {
          "type": "docs",
          "note": "本接口自 2026-11-12 上线后一直未进契约，一致性守卫（tools/openapi_doc_guard.php）报「接口有、文档缺」；本次补齐后 126/126 对齐"
        },
        {
          "type": "changed",
          "method": "POST",
          "path": "/payments/notify",
          "note": "已取消订单收到到账的处理明确化：钱照入流水（不丢账），但订单保持取消、不释放桌台、不推 order.paid / member.deducted、不累计会员消费积分。对接方不得用「回调返回成功」推导「订单已履约」，请读响应 order_status"
        }
      ]
    },
    {
      "version": "1.8.8",
      "date": "2026-11-12",
      "type": "patch",
      "commit": "f28251b7",
      "breaking": false,
      "summary": "下单接口的加料/规格改为一律服务端计价：客户端传的 price / extra_price 不再作为依据，菜品加料改为按菜单回查（含门店级 + 连锁模板两套配置）。",
      "changes": [
        {
          "type": "fixed",
          "method": "POST",
          "path": "/orders",
          "note": "items[].additive_info[].price 此前被直接当作计价依据（菜品分支），传 0.01 就按 1 分钱卖，且 quantity 不生效恒按 1 份。现按 name(+category) 回查菜单加料价，quantity 真正相乘，同名重复只算一次"
        },
        {
          "type": "fixed",
          "method": "POST",
          "path": "/orders",
          "note": "items[].spec_info[].extra_price 此前同样被直接采信（菜品规格），漏传或传 0 就当加价白送（如「大杯 +3 元」按中杯价成交）。现按 sd_dish_spec.values 回查，name / label 两种历史写法都认"
        },
        {
          "type": "fixed",
          "method": "POST",
          "path": "/orders",
          "note": "菜品加料同时认「门店级 sd_dish_additive」与「连锁菜品模板 sd_chain_dish.additives」两套配置：门店行优先（与收银弹层展示一致），门店行缺失时用模板兜底，避免把加料当 0 元"
        },
        {
          "type": "error",
          "method": "POST",
          "path": "/orders",
          "note": "新增 422「所选加料已不存在」。此前传菜单上不存在的加料名会被静默按客户端报价（含 0 元）计入，现在直接拒绝，请先 GET /dishes 取名称"
        },
        {
          "type": "docs",
          "method": "POST",
          "path": "/orders",
          "note": "补齐 items[].spec_info / additive_info 的字段说明与服务端计价口径（含 additive_info 的 name/category/quantity 结构）"
        }
      ]
    },
    {
      "version": "1.8.7",
      "date": "2026-11-10",
      "type": "patch",
      "commit": "",
      "breaking": false,
      "summary": "修复 GET /products/mappings 的 keyword 参数不生效——外部系统按自己的商品号查不到映射。",
      "changes": [
        {
          "type": "fixed",
          "method": "GET",
          "path": "/products/mappings",
          "note": "keyword 此前在契约里存在但实现未处理，传了也返回全量。现同时匹配 source_product_id / source_product_code / source_product_name 与思店本地商品名/条码/编码。外部 ERP 出库扣减前用它把 goods_no 换成 pos_product_id"
        },
        {
          "type": "docs",
          "method": "GET",
          "path": "/products/mappings",
          "note": "补全 source_system 大小写口径：值必须与灌映射时完全一致（pets 是 pet 单数），写错返回 0 行且不报错"
        }
      ]
    },
    {
      "version": "1.8.6",
      "date": "2026-11-09",
      "type": "patch",
      "commit": "71f3dee1",
      "breaking": false,
      "summary": "开放平台第二批：批量员工匹配 + oa.submitted 事件注册。",
      "changes": [
        {
          "type": "added",
          "method": "POST",
          "path": "/staff/match",
          "note": "批量匹配员工（手机号/姓名 → staff_id）"
        },
        {
          "type": "docs",
          "note": "同步注册 oa.submitted webhook 事件，外部 OA 可订阅审批提交"
        }
      ]
    },
    {
      "version": "1.8.5",
      "date": "2026-11-09",
      "type": "minor",
      "commit": "ca93e1d8",
      "breaking": false,
      "summary": "SCRM 客户经营任务接口（回访 / 召回 N1-N4）与对应 webhook 事件开放。",
      "changes": [
        {
          "type": "added",
          "method": "POST",
          "path": "/crm/tasks/detail",
          "note": "任务详情（含处理记录与近 3 笔订单）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/crm/tasks/list",
          "note": "回访/召回任务列表"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/crm/tasks/result",
          "note": "回写处理结果（幂等）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/crm/tasks/stats",
          "note": "角标统计（待办/逾期/今日到期）"
        }
      ]
    },
    {
      "version": "1.8.4",
      "date": "2026-11-07",
      "type": "patch",
      "commit": "05ada167",
      "breaking": false,
      "summary": "webhook 订阅匹配改三段归属，堵住跨连锁推送。",
      "changes": [
        {
          "type": "fixed",
          "note": "webhook 订阅匹配增加连锁归属校验，修复跨连锁事件误推送"
        }
      ]
    },
    {
      "version": "1.8.3",
      "date": "2026-11-07",
      "type": "patch",
      "commit": "552a6a75",
      "breaking": true,
      "summary": "只读查询接口「目标不存在」改为返回 code=0 + 空 data；属行为变更，旧判断逻辑需改造。",
      "changes": [
        {
          "type": "breaking",
          "note": "20 个 GET 详情/查询接口在目标不存在时，由 code=400/404 改为 code=0 且 data 为空。若对接方用 code != 0 判断「查不到」，必须改为判断 data 是否为空，否则升级后会漏判；写操作目标不存在仍报错，不受影响"
        }
      ]
    },
    {
      "version": "1.8.2",
      "date": "2026-11-06",
      "type": "patch",
      "commit": "9ad73fff",
      "breaking": false,
      "summary": "补 POST /erp/store-mappings 文档（实现早已存在），并建立接口文档铁律与一致性守卫。",
      "changes": [
        {
          "type": "added",
          "method": "POST",
          "path": "/erp/store-mappings",
          "note": "新建/更新门店映射（与 PUT 完全等价）"
        },
        {
          "type": "docs",
          "note": "新增 backend/docs/API-DOC-IRON-RULE.md 与 tools/openapi_doc_guard.php"
        }
      ]
    },
    {
      "version": "1.8.1",
      "date": "2026-11-04",
      "type": "patch",
      "commit": "26446422",
      "breaking": false,
      "summary": "products/sync 未传 stock_type 时按门店进销存开关推断。",
      "changes": [
        {
          "type": "changed",
          "method": "POST",
          "path": "/products/sync",
          "note": "stock_type 省略时改为按门店进销存开关推断，不再要求必传"
        }
      ]
    },
    {
      "version": "1.8.0",
      "date": "2026-11-04",
      "type": "minor",
      "commit": "f4a0c9db",
      "breaking": false,
      "summary": "补齐合作伙伴反复靠猜的业务口径，新增 ERP 销售出库与门店映射接口。",
      "changes": [
        {
          "type": "added",
          "method": "DELETE",
          "path": "/erp/store-mappings/{id}",
          "note": "删除门店映射"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/erp/outbounds",
          "note": "同步记录列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/erp/outbounds/{id}",
          "note": "同步记录详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/erp/store-mappings",
          "note": "门店映射列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/erp/store-mappings/resolve",
          "note": "映射自查（某门店会出到 pets 哪家店）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/erp/outbounds",
          "note": "提交销售出库（幂等）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/erp/outbounds/{id}/retry",
          "note": "重推失败的同步记录"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/orders/settle",
          "note": "订单结算同步（建单 + 扣库存 + 扣会员余额，一次事务）"
        },
        {
          "type": "added",
          "method": "PUT",
          "path": "/erp/store-mappings",
          "note": "新建/更新门店映射（按 store_id + erp_type 幂等覆盖）"
        },
        {
          "type": "changed",
          "note": "入站 store_id 支持外部门店号翻译（宠物 ERP shop_id → 思店门店），解析顺序与三处映射来源写入文档"
        },
        {
          "type": "changed",
          "note": "/products/sync 的 store_id 明确为思店门店 ID，source_system 固定 pet"
        }
      ]
    },
    {
      "version": "1.5.0",
      "date": "2026-10-23",
      "type": "minor",
      "commit": "eeb633e4",
      "breaking": false,
      "summary": "考勤打卡对外只读接口开放，OA 三件套收口（110 个端点）。",
      "changes": [
        {
          "type": "added",
          "method": "GET",
          "path": "/attendance/amends",
          "note": "补卡/请假申请列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/attendance/records",
          "note": "打卡记录列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/attendance/stats",
          "note": "按月考勤汇总"
        }
      ]
    },
    {
      "version": "1.4.0",
      "date": "2026-10-23",
      "type": "minor",
      "commit": "32889d7d",
      "breaking": false,
      "summary": "报销 / 日报 / 经营分析等对外只读接口开放，文档补齐到 107 个端点。",
      "changes": [
        {
          "type": "added",
          "method": "GET",
          "path": "/analytics/daily",
          "note": "逐日营收趋势"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/analytics/hours",
          "note": "分时段分布"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/analytics/overview",
          "note": "经营总览（当日 + 当月）"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/analytics/products",
          "note": "热销商品排行"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/analytics/stores",
          "note": "分门店营收"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/assets",
          "note": "资产台账列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/assets/{id}",
          "note": "资产详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/daily-reports",
          "note": "查看门店日报"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/expense/applies",
          "note": "报销单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/expense/applies/{id}",
          "note": "报销单详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/expense/categories",
          "note": "报销科目"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/grooming/orders",
          "note": "洗护单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/grooming/orders/{id}",
          "note": "洗护单详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/live-pets",
          "note": "活体列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/live-pets/{id}",
          "note": "活体详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/medical/records",
          "note": "健康记录列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/medical/records/{id}",
          "note": "健康记录详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/medical/vaccines",
          "note": "疫苗字典"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/members/detail",
          "note": "会员完整档案"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/members/orders",
          "note": "会员订单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/members/points",
          "note": "会员积分流水"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/members/{id}/pets",
          "note": "会员宠物档案"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/sso/verify",
          "note": "校验免登票据"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/tasks/instances",
          "note": "任务实例列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/tasks/templates",
          "note": "任务模板列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/workorders",
          "note": "工单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/workorders/{id}",
          "note": "工单详情"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/daily-reports/adjust",
          "note": "日报细项调整"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/daily-reports/submit",
          "note": "提交日报手填"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/inventory/deduct",
          "note": "按单扣减库存"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/live-pets/checkout",
          "note": "活体成交结算"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/live-pets/sync",
          "note": "活体信息同步"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/members/balance/sync",
          "note": "会员余额同步（外部权威值入站）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/members/sync",
          "note": "会员资料同步（按 phone upsert）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/tasks/instances/{id}/reject",
          "note": "任务审核打回"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/tasks/instances/{id}/review",
          "note": "任务审核通过"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/tasks/quick",
          "note": "建简单任务"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/tasks/templates/{id}/dispatch",
          "note": "派发任务"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/workorders",
          "note": "创建工单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/workorders/{id}/assign",
          "note": "工单派单/改派"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/workorders/{id}/cancel",
          "note": "取消工单"
        }
      ]
    },
    {
      "version": "1.3.0",
      "date": "2026-09-13",
      "type": "minor",
      "commit": "c984bce4",
      "breaking": false,
      "summary": "开放平台接口契约首次纳入 git 基线，66 个端点。1.3.0 之前已提供的接口统一记为基线版本。",
      "changes": [
        {
          "type": "added",
          "method": "DELETE",
          "path": "/products/{id}",
          "note": "删除商品（软删，须未被映射引用）"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/app/info",
          "note": "查询当前应用信息（名称/权限/门店范围）"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/categories",
          "note": "查询商品分类"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/coupons/{code}",
          "note": "查询优惠券信息"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/dinein/orders",
          "note": "查询堂食订单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/dinein/orders/{order_no}",
          "note": "查询堂食订单详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/flash/orders",
          "note": "查询闪购订单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/flash/orders/{id}",
          "note": "查询闪购订单详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/groupbuy/coupons",
          "note": "查询团购券列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/groupbuy/coupons/{code}",
          "note": "查询团购券详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/groupbuy/verify_logs",
          "note": "查询核销记录"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/health",
          "note": "健康检查（无需签名）"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/inventory/purchases",
          "note": "查询采购单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/inventory/purchases/{no}",
          "note": "查询采购单详情（按单号）"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/inventory/stock_logs",
          "note": "查询库存流水（对账）"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/inventory/stocks",
          "note": "查询库存现状"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/inventory/stocktakes",
          "note": "查询盘点单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/inventory/stocktakes/{no}",
          "note": "查询盘点单详情（按单号）"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/inventory/suppliers",
          "note": "查询供应商列表（本店 + 连锁共享）"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/members/balance",
          "note": "查询会员余额"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/members/search",
          "note": "会员搜索"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/orders",
          "note": "查询订单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/orders/{order_no}",
          "note": "查询订单详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/payments/{payment_no}",
          "note": "查询支付单状态"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/products",
          "note": "查询商品列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/products/mappings",
          "note": "查询商品映射列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/stores",
          "note": "查询门店列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/stores/{id}",
          "note": "查询门店详情"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/stores/{id}/cashiers",
          "note": "查询门店收银员列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/takeout/orders",
          "note": "查询外卖订单列表"
        },
        {
          "type": "added",
          "method": "GET",
          "path": "/takeout/orders/{id}",
          "note": "查询外卖订单详情"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/coupons/generate",
          "note": "批量生成优惠券"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/coupons/rollback",
          "note": "回滚核销"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/coupons/verify",
          "note": "核销优惠券"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/dinein/orders",
          "note": "创建堂食/自取订单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/dinein/orders/{order_no}/cancel",
          "note": "取消堂食订单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/dinein/orders/{order_no}/complete",
          "note": "完成堂食订单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/dinein/orders/{order_no}/confirm",
          "note": "确认堂食订单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/flash/orders",
          "note": "推送闪购（即时零售）订单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/flash/orders/{id}/accept",
          "note": "接单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/flash/orders/{id}/complete",
          "note": "订单完成"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/flash/orders/{id}/dispatch",
          "note": "配送发出"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/flash/orders/{id}/picking",
          "note": "开始拣货"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/flash/orders/{id}/reject",
          "note": "拒单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/groupbuy/coupons/rollback",
          "note": "回滚团购券核销"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/groupbuy/coupons/verify",
          "note": "核销团购券"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/inventory/adjust",
          "note": "库存对齐调整（按实盘数）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/inventory/purchases",
          "note": "创建采购单（外部 ERP 下单）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/inventory/purchases/{no}/receive",
          "note": "采购单整单收货回传"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/inventory/stock_in",
          "note": "入库登记（采购直收/领用退回）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/inventory/stock_out",
          "note": "出库登记（报损/领用）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/inventory/stocktakes",
          "note": "创建盘点单（生成账面快照）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/members/balance/deduct",
          "note": "会员余额扣减"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/members/balance/refund",
          "note": "会员余额退还"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/members/tags",
          "note": "会员标签管理"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/orders",
          "note": "创建订单（收银下单）"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/orders/{order_no}/refund",
          "note": "订单退款"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/payments",
          "note": "发起支付"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/payments/notify",
          "note": "支付结果回调通知"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/products/mappings",
          "note": "手动创建/更新映射"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/products/sync",
          "note": "商品批量同步"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/takeout/orders",
          "note": "推送外卖订单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/takeout/orders/{id}/accept",
          "note": "接单"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/takeout/orders/{id}/complete",
          "note": "订单完成"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/takeout/orders/{id}/ready",
          "note": "出餐完成"
        },
        {
          "type": "added",
          "method": "POST",
          "path": "/takeout/orders/{id}/reject",
          "note": "拒单"
        }
      ]
    }
  ]
}
