brc_create_cash_receipt
Creates a cash receipt. User confirms a plain-English draft and explicitly confirms the customer or supplier before posting.
Instructions
Creates a BRC cash receipt. Accepts either a raw payload object or common flat fields. entryDate/procDate default to today. VAT rate fields are only sent when the company's VAT on Cash Receipt setting is enabled. First call without confirmWrite: true returns confirmation_required and a payload preview — show a plain-English draft in chat, then retry with confirmWrite: true only after explicit user confirmation in a later message. Passing preflight is not confirmation. Also requires confirmCounterpartyExplicit: true once the user has explicitly named or confirmed the customer/supplier in the current conversation. Do not reuse a counterparty from an earlier draft without that confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| total | No | ||
| acCode | No | ||
| ledger | No | ||
| details | No | ||
| payload | No | ||
| discount | No | ||
| procDate | No | ||
| totalNet | No | ||
| totalVAT | No | ||
| totalVat | No | ||
| acEntries | No | ||
| entryDate | No | ||
| reference | No | ||
| vatRateId | No | ||
| vatTypeId | No | ||
| customerId | No | ||
| percentage | No | ||
| vatEntries | No | ||
| accountCode | No | ||
| companyName | Yes | Company context name, for example YOUR-COMPANY-NAME. | |
| description | No | ||
| unallocated | No | ||
| confirmWrite | No | Must be true only after a plain-English draft 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. | |
| customFields | No | ||
| vatPercentage | No | ||
| bookTranTypeId | No | ||
| detailCollection | No | ||
| analysisCategoryId | No | ||
| confirmCounterpartyExplicit | No | Must be true only after the user explicitly named or confirmed the customer, supplier, or other counterparty in the current conversation. Never set true because a customer or supplier appeared in an earlier draft, was inferred from context, or was filled in without the user's explicit choice in this conversation. |