Update Sales Entry
brc_update_sales_entryUpdates a sales entry while preserving the existing BRC unpaid value. Requires a valid routeToken issued for the matching action workflow. The token remains valid through lookup, preview and the permitted transaction. Placeholder tokens are invalid. A routeToken does not bypass preview or explicit-confirmation requirements. A call without confirmWrite: true returns confirmation_required and a payload preview. confirmWrite: true applies the previewed change after explicit confirmation. Passing preflight is not confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Sales Entry id, normally the bookTranId returned by customer account transactions. | |
| note | No | Optional. BRC "Note" field on the sales document (JSON field `note`). Leave blank to default it to the customer name (BRC customer "Name" / JSON `name`). Do not use the product name as the note. Only set this when the user explicitly provides a note. | |
| total | No | New gross total. For monetary edits this must equal totalNet + totalVAT. | |
| acCode | No | Customer account code. | |
| details | No | Sales Entry details/description field. | |
| procDate | No | Processing date in ISO format. Historical dates may be attempted; BRC determines whether the change is permitted. | |
| totalNet | No | New total net value. For monetary edits this must be supplied together with totalVAT, total, acEntries and vatEntries. | |
| totalVAT | No | New total VAT value. For monetary edits this must be supplied together with totalNet, total, acEntries and vatEntries. | |
| acEntries | No | Complete BRC accounting-entry collection. For monetary edits, the sum of each entry's value must equal totalNet. | |
| entryDate | No | Entry date in ISO format. Historical dates may be attempted; BRC determines whether the change is permitted. | |
| reference | No | Optional. BRC "Reference" field (JSON field `reference`). BRC "Our Ref" (JSON `ourReference`) and BRC "Your Ref" (JSON `yourReference`) default to this value when not supplied separately. | |
| vatTypeId | No | VAT type id. | |
| customerId | No | Customer id. | |
| routeToken | Yes | Opaque routeToken from brc_route_request for this action workflow. Required for transactional tools. Routing permission only — does not replace preview-before-posting or confirmWrite. | |
| vatEntries | No | Complete BRC VAT-entry collection. Each entry should contain the BRC vatRateId, percentage and net amount used to calculate VAT. | |
| companyName | Yes | Company context name, for example YOUR-COMPANY-NAME. | |
| confirmWrite | No | Must be true only after a plain-English preview before posting has been shown in the current conversation and the user explicitly confirmed posting (for example yes, create it / post it now / confirm). Never set true on the first call or because the user initially asked to create something. Nothing is written to Big Red Cloud until you confirm. | |
| connectionRef | No | Opaque Red connection reference returned by brc_confirm_company_connection. Pass this exact value on every later tool call when the MCP client rotates session ids (for example Vibe/Mistral). Keep reusing the same connectionRef after successful tool calls — do not start a new connection because a lookup returned empty or partial data. It is not an API key and does not contain credentials. | |
| bookTranTypeId | No | Book transaction type id. Sales Entries normally use the existing record's transaction type. |