Book a transaction a Plaid takeover held unbooked
Changed on#3361. When a new Plaid Item takes a bank account over from a connection that is no longer connected, a transaction in the old connection's booked window that matches none of its booked rows is held unbooked: while Plaid is still loading the Item's history and the old connection still has unmatched rows (#3687), when one of them could be the same transaction changed, or when it is dated in a closed month. This books the held transaction through the normal import path, from the transaction Plaid reported and its stored raw record, posts its journal entry, removes the hold and writes an audit_logs row (action plaid_takeover_hold.booked). While the history is still loading, a reason is required and a plaid_takeover_hold.early_booking_requested row (actor, reason, candidates, outcome pending) is written before anything is booked; the outcome follows as a second row. The checks and the booking run under the company's Plaid account-discovery lock, which a bank link holds while it moves bank accounts, so a link cannot take the account over in between. Human accountants only; the assignment is re-read before the write.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Request body
Why it is booked. Required (10 characters or more, trimmed) while Plaid's history is still loading (#3687): the hold could still be a possible duplicate of an unmatched old row, so the booking is audited before it is made.
Response
The booked transaction
Changes
- info
added optional request body
- info
added the non-success response with the status
- info
- info
endpoint added
- info