# 交易与履行

> Hosted checkout, orders, payments, receipts, inventory and shipping on one transaction core.

> Markdown version of https://kanorio.com/zh-CN/developers/products/orders. Append `.md` to any developer docs URL for this format. Index: https://kanorio.com/llms.txt · MCP: https://app.kanorio.com/api/mcp
>
> Translated from the English original: https://kanorio.com/en/developers/products/orders.md

Status: **Available**

订单记录了顾客的购买与付款内容。结账流程在 Kanorio 的托管结账页面上执行，该页面会处理付款与收据，随后将顾客重定向至您的前端。

## 核心对象

- **订单 (Orders)：** 包含项目明细、总金额、顾客信息以及付款与履行状态。
- **交易 (Transactions)：** 针对订单进行的付款与退款。
- **履行 (Fulfillment)：** 实体商品的运送与数字商品的访问授权。

## API 如何运作

- 将您的购买按钮链接至托管结账页面，并设置 `return_to` 网址。付款完成后，系统会自动授予链接的权益。
- 使用 Management API 读取订单，并透过 Customer API 让顾客查看自己的订单与收据。
- Webhooks 会回报已付款的订单、退款与运送状态变更，并提供可供追踪的 `operationId`。

退款需从后台执行。令牌绝不会被授予退款权限。

## What the APIs expose

| Capability | Status | API | Elements | Hosted site | Webhooks |
| --- | --- | --- | --- | --- | --- |
| Orders & hosted checkout | Available | Management API `orders.*`; Customer `GET /orders`, `GET /orders/:id` | — | `/orders`, `/data/orders`; system-hosted checkout & `/account/orders` | `ec.order.paid` |
| Merchant-to-customer subscriptions (recurring billing) | Planned | Planned (`subscriptions.*`), a sub-domain of the transaction core; not derived from the site's own Kanorio plan | — | Planned | — |

## API reference

- Management API: [Orders](https://kanorio.com/en/developers/management-api/orders) (2 operations)
- Management API: [Store](https://kanorio.com/en/developers/management-api/store) (1 operations)
- Customer API: [Orders](https://kanorio.com/en/developers/customer-api/orders) (2 operations)

## Webhook events

- `ec.order.paid`: Fired when an order payment succeeds and is captured.
- `ec.shipment.statusChanged`: Fired when a shipment status transitions (in transit, arrived at store, delivered, or exception).
- `ec.order.refunded`: Fired once per successful refund (partial or full, issued from the dashboard, at the payment provider, or by a lost chargeback) with the refunded lines and the order's refund status after it.

Payloads: https://kanorio.com/en/developers/webhooks/events

## Recent changes

- 2026-11-03: Customer API: course, unit and order text in the customer's locale
- 2026-11-02: Products: shipping is decided per variant

Full changelog: https://kanorio.com/en/developers/changelog

## For site owners

Dashboard help: https://kanorio.com/zh-CN/help/store-orders
