Sales-channel summary
channel_summarySales by channel (Shopee, TikTok, Shopify, your storefront, …) for from to to (YYYY-MM-DD). Per channel: order count, gross goods revenue, seller discounts, shipping income, freight-out, marketplace fees, netProceeds (the settlement booked on each sale's entry: the net payout owed for Shopee and TikTok, what settled into cash or gateway clearing for the storefront), returns and netGoodsRevenue (gross goods revenue less returns). returns is revenue reversed in the range by credit notes (on the credit note's date) plus goods revenue taken back by a marketplace Returns-page reversal (journal reference <CHANNEL>-CN-<order>, no credit-note document), on the reversal's own date; once both dates are in range a fully reversed order nets to 0. Only goods revenue enters returns: discounts, shipping, freight, fees and netProceeds come from the invoice side and are gross of returns. A channel with only returns in the range still shows (saleCount 0, negative netGoodsRevenue). A Shopee-wallet fee credit note adds 0 to returns; Shopee wallet deductions booked since 31 Oct 2026, and Shopee fees on old-books invoices settled through the wallet since 1 Nov 2026, sit on wallet entries and appear in income_statement, not here. A settlement-correction credit note moves only its goods part into returns; its fee and shipping parts are booked on the credit note, so a fee-only correction does not show here, and past figures can still move as corrections are approved. marketplaceFees excludes storefront gateway fees (booked on payout entries). TikTok is the exception: its fees and freight, booked later by "Book settlement fees" (TIKTOK-FEE-<order id>), are included and dated by the settlement entry, so a June sale settled in July shows its fees in July and a month can show a tiktok row with saleCount 0. Manual and non-channel sales are excluded.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>"
},
"name": "channel_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes |