Zugeordnete Vertriebskosten lesen
get_sales_costsRead costs already attributed to one learning opportunity or channel; use get_sales_cost_sources to discover original invoices and allocate_sales_cost only for an explicitly requested change. kind and id identify the same existing target. Read one page of explicit invoice net allocations to an existing learning opportunity or channel. Follow nextCursor as after. Optionally choose a returned allocationId as historyAllocationId to read its recorded corrections/releases; follow history.nextBeforeRevision as historyBeforeRevision with that same ID. Both lists are bounded to 20 entries/120KB per page. Historical revisions obey the same current Accounting visibility, original fingerprint, target customer and owner authority checks; unavailable or changed sources/targets have no amounts. History never enters current totals. Concurrent allocation or target/customer changes conflict; current read consent is rechecked. Known amounts cover only the current allocation page; complete costs, payment and full contribution remain unknown. No tenant selector, new ledger or financial mutation.
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": {
"kind": "<kind>",
"id": "<id>"
},
"name": "get_sales_costs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Exact existing learning opportunity or channel ID matching kind; not a customer, invoice or allocation ID. | |
| kind | Yes | Existing attribution target type, opportunity or channel. Keep kind, id and current revision from the same target. | |
| after | No | Copy nextCursor from the preceding current-allocation page for the same kind/id. Omit for the first page. | |
| historyAllocationId | No | Existing allocationId returned for this same target; selects that allocation’s recorded corrections/releases, not another source document. | |
| historyBeforeRevision | No | Copy history.nextBeforeRevision with the same historyAllocationId to continue history. Never use the current-page after cursor here. |