Financial events
get_financial_eventsfee_breakdown supports exact event_type (Shipment, Refund, Adjustment, ServiceFee) and component_type filters in SQL before aggregation and pagination. For storage postings use grain='raw_component', event_type='ServiceFee', and component_type='FBAStorageBilling' or 'FBALongTermStorageBilling'; omit asin/order_id to retain account-level rows. ASIN/order-item pivots include only matching components and still exclude rows without an ASIN/order respectively. Filters are not valid for profitability. Return Finances v0 financial-event rows and deterministic ASIN economics. view='fee_breakdown' returns raw order components when order_id is supplied; otherwise grain='asin' returns the existing ASIN pivot, grain='order_item' returns bulk order/SKU/ASIN fee pivots, and grain='raw_component' returns component rows across the date range. view='profitability' returns ASIN-level shipment_principal, source-signed refund_principal, source-signed refund_net, revenue, fees, tax, tax_withheld, promotions, net, units, refund-event coverage, and data-gap fields. revenue remains shipment_principal + refund_principal for backward compatibility. Promotions and marketplace-facilitator tax Amazon withheld are separate signed components (component_type 'Promotion' and 'ItemWithheldTax:'; a repeat on one item is numbered, e.g. 'Promotion#2'): they are included in net and net_profit and never counted as fees. Its money fields are selected by financial-event posted_date, not order date; order_item_revenue is an independently filtered purchase-date reference, so posted-date economics must not be subtracted from order-date sales as though both cutoffs represented the same orders. Fees on off-Amazon fulfillment (MCF) orders, which carry no Principal, are excluded from total_fees and net_profit and returned in off_amazon_fulfillment_fees (net_including_off_amazon_fulfillment reconciles); prior_period_order_share reports how much posted shipment principal came from orders placed before start_date. Profitability includes Shipment/Refund events only and excludes all ad spend, FBA storage fees, inbound freight, COGS, and account-level Adjustment/ServiceFee events; responses expose date_basis, scope, excluded_costs, and reconciliation_note. Account-level Adjustment/ServiceFee rows remain available with view='fee_breakdown' and grain='raw_component', where they are surfaced for any marketplace key. Rows are attributed to the marketplace Amazon reports for each event, and a marketplace's rows can include components in another currency (for example cross-border fees), so money is scoped to the marketplace currency by default; set include_all_currencies=true to include all component currencies (amounts are then mixed across currencies and should not be summed). Rows carry data_gap='no_refund_events_in_period' when refund adjustments are absent. For pre-settlement Transaction View rows use get_payment_transactions; for finalized settlements use get_settlement_economics.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_financial_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asin | No | Filter by ASIN | |
| view | No | Financial events view: fee_breakdown returns fee components by ASIN/order grain; profitability returns ASIN economics over financial events. | fee_breakdown |
| grain | No | fee_breakdown view only. Date-range output grain when order_id is omitted: asin returns the existing ASIN pivot; order_item returns one row per posted_date/order_id/ASIN/SKU/event_type with common fee components pivoted; raw_component returns one row per fee component. | asin |
| limit | No | Max rows (1-1000, default 20). | |
| offset | No | Pagination offset (0-100000, default 0). Use the returned pagination.next_offset to continue. | |
| sort_by | No | Column to sort by. Allowed columns depend on view and order_id mode. | |
| end_date | No | Optional. YYYY-MM-DD end date for posted_date. The range may span at most 366 days. | |
| order_id | No | fee_breakdown view only. Specific order ID returns raw component rows for that order. Without dates it searches from the day before the order's stored purchase date through 364 days after it, not only the recent 90 days; order_lookup reports the window searched. | |
| event_type | No | fee_breakdown only. Exact event type filter, applied before aggregation and pagination: Shipment, Refund, Adjustment, or ServiceFee. | |
| sort_order | No | Sort direction | desc |
| start_date | No | Optional. YYYY-MM-DD start date for posted_date. The range may span at most 366 days. | |
| component_type | No | fee_breakdown only. Exact, case-sensitive component type filter before aggregation and pagination, e.g. FBAStorageBilling or FBALongTermStorageBilling. Pivot totals include only matching components; use grain='raw_component' for account-level fees without an order/ASIN. | |
| include_raw_rows | No | For tabular results, false returns compact rows capped at MCP_TEXT_ROW_PREVIEW_LIMIT (default 10), regardless of limit. Complete-page and custom non-tabular responses may ignore this option; see tool-specific notes. Default true; large full-row responses are capped separately. Freshness fields require include_diagnostics=true in either row mode, where supported. | |
| include_diagnostics | No | True enables expanded freshness diagnostics. Where supported, snapshot_capture_at and snapshot_data_through_date are populated only when include_diagnostics=true, in both compact and full-row modes; values may still be null if source data is unavailable. Default false. Basic empty-result data-window diagnostics are included by default when available. | |
| include_all_currencies | No | By default, money is scoped to the marketplace currency so amounts are not summed across USD/CAD/MXN etc. Set true to include all component currencies (amounts are then mixed and should not be summed). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| evidence | No |