brc_update_prepayment
Update an existing parent prepayment using its ID and retrieved timestamp. User confirmation is required before writing changes.
Instructions
Updates an existing parent Prepayment by id. Use brc_get_prepayment first to retrieve the current prepayment and timestamp. Child prepayments are not exposed by the public API. Do not call with confirmWrite=true until the user has reviewed the draft and explicitly confirmed the update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Parent prepayment id. | |
| total | Yes | Prepayment total amount. | |
| acCode | Yes | Nominal account code, for example 4000. | |
| procDate | Yes | Processing date, for example 2024-03-15T00:00:00. | |
| entryDate | Yes | Entry date, for example 2024-03-01T00:00:00. | |
| reference | Yes | Prepayment reference, for example PRE0001. | |
| timestamp | Yes | Base64 timestamp returned by the prepayment, for example bgUcQIbL3gg=. | |
| companyName | Yes | Company context name, for example YOUR-COMPANY-NAME. | |
| firstDetail | No | First detail text. | |
| confirmWrite | No | Must be true only after the user explicitly confirms updating this prepayment. | |
| secondDetail | No | Second detail text. |