brc_update_allocations
Create or update allocations for a book transaction to receiver invoices. First list eligible allocation resolvers, then draft allocations and confirm before posting.
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. |