brc_update_allocations
Creates or updates allocations from a sender transaction to receiver transactions. Requires prior identification of eligible receivers and explicit user confirmation before finalizing.
Instructions
Creates or updates allocations for a sender book transaction. Use brc_list_allocation_resolvers first to identify eligible receiver transactions. Do not call with confirmWrite=true until the user has reviewed the allocation draft and explicitly confirmed posting. Required fields: bookTranId and allocationResolvers with allocated amounts and receiver book transaction ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bookTranId | Yes | Book transaction id to allocate from, for example 1001. | |
| companyName | Yes | Company context name, for example YOUR-COMPANY-NAME. | |
| confirmWrite | No | Must be true only after the user explicitly confirms posting the allocation update. | |
| allocationResolvers | Yes | Allocations to create or update. |