Hold or release a customer's QuickBooks automatic posting (#3741)
Changed onHeld (held: true): after a completed QuickBooks read Median does not post the opening entry or the activity, take QuickBooks' edits to posted objects (the change reviews stay open), turn on invoices and bills, or push bank-feed items to QuickBooks for this company; Ask My Accountant, change detection and the parity check still run. The accountant imports through the manual trial-balance and import-batch routes (draft, review, approve, post). Released (held: false): the next completed read posts whatever is still unposted after the cutoff. #3903: automatic sync never turns invoices and bills on for a cash-basis company (companies.accounting_method cash); releasing one whose AR/AP items are off returns arApNotice saying AR/AP stays off. Needs no QuickBooks connection or cutoff, so it can be set before the cutoff. Every call writes an audit_logs row (entity_type company) with the reason and the previous and new value. The agent service token may set the hold (held: true) as a high-impact operation, with its source and key id in the audit row; releasing it (held: false) needs a signed-in accountant and answers 403 to an API key, because releasing restarts automatic posting and push without review. Default for every company: not held. A signed-in assigned accountant can also supply the expected hold, connection and realm together. The hold changes only if all three still match. Release waits for any active source read and pending guarded change review.
Request
- Base URLhttps://api.medianfi.com/api/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
Path parameters
Request body
Response
The hold as now recorded
Changes
- breaking
the request body dependentRequired was added: when
expectedConnectionIdis present,expectedHeldexpectedRealmIdare required - breaking
the request body dependentRequired was added: when
expectedHeldis present,expectedConnectionIdexpectedRealmIdare required - breaking
the request body dependentRequired was added: when
expectedRealmIdis present,expectedHeldexpectedConnectionIdare required
4 more changes in this revision
- breaking