Post an intercompany pair
intercompanyIntercompany between companies of this account (round 622). action=pair proposes one entry with both sides from this company (or company): to_company (the other company's code), date (YYYY-MM-DD), amount (what this company is owed by the other for it; a minus amount turns it round), narration, reference (both sides keep it), kind (trade, the default: a sale, recharge or fee on the current accounts, its income and cost are eliminated in the group; payment: money moved; other: a loan or its interest, on the loan accounts), from_other and to_other (each side's other account: income here and cost there, the bank on both for a payment), from_account and to_account (the intercompany balance accounts; left out: the only one). This company's side is the journal of the proposal; on release the other company posts its side in the same transaction and both are linked as a pair, as the owner's switches say who releases. The differences between the companies, named entry by entry: the intercompany report. Books in two currencies pair too: the amount is in this company's currency, the other company books it in that currency at to_rate (its book units per one unit; left out: the rate on file for the day). action=account with to_company names the balance account each keeps with the other: from_account here, to_account there, codes of each chart (both left out: each chart's standard intercompany account, added where missing); action=accounts lists those kept here. Round 865: from_tax and to_tax, a tax rate (code or name) on each side's other line, the amount then being gross (a recharge with VAT; a reverse charge code across a border); left out, no VAT on that side. Round 910: action=vat_group sets up or changes a UK VAT group (VAT Act 1994 s43) or a German or Austrian Organschaft: members (company codes, comma separated, one country), representative (the representative member or Organträger, a member), vat_number (the group's, optional), valid_from; the representative's VAT return is then the group's return and a pair between members takes the group's code (outside the scope, disregarded). action=vat_group_end with valid_to ends the group of this company; action=vat_group_show shows it. Round 1067: action=stock_profit gives the stock this company holds that it bought from to_company (amount: stock held at cost here, in this company's currency), margin_percent (the seller's margin on that cost) and date (as at); the group takes that profit out of stock until a later figure replaces it (0 ends it). action=stock_profit_show lists the figures on file here. Round 1068: without a figure typed the group reads it from the stock records (batches received with bought_from, and the seller's own cost of them); a typed figure overrides them from its date; action=stock_profit_from_stock (to_company, date) goes back to the stock records from that date.
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": {
"action": "<action>"
},
"name": "intercompany"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| kind | No | trade | |
| action | Yes | ||
| amount | No | ||
| reason | No | ||
| to_tax | No | ||
| company | No | ||
| members | No | ||
| to_rate | No | ||
| from_tax | No | ||
| to_other | No | ||
| valid_to | No | ||
| narration | No | ||
| reference | No | ||
| from_other | No | ||
| to_account | No | ||
| to_company | No | ||
| valid_from | No | ||
| vat_number | No | ||
| from_account | No | ||
| margin_percent | No | ||
| representative | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||