brc_create_prepayment
Create a prepayment draft that automatically generates a reversing child transaction. Submit for review and confirm to finalize.
Instructions
Creates a new parent Prepayment. The API accepts only the parent transaction shape and relies on shared logic to generate the reversing child transaction. Do not call with confirmWrite=true until the user has reviewed the draft and explicitly confirmed creation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| 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 creating this prepayment. | |
| secondDetail | No | Second detail text. |