Propose an entry, a classification, a reconciliation or a reversal for a person to decide. Posts nothing.
Changed onAnswers the proposal id. kind entry takes date, description and lines (each account_code, side debit|credit, amount as a decimal string; debits equal credits); classification takes bank_transaction_id and account_code; reconciliation takes bank_transaction_id and journal_entry_id; reversal takes journal_entry_id (a posted entry in an open period, not yet reversed) and optionally date (on or after it, in an open period): its lines are the entry's own, mirrored by the books, and rationale (10 to 500 characters) becomes the reversal's reason. Requires an Idempotency-Key header (or idempotency_key, 8 to 200 characters): a retry with the same key and the same proposal answers the first result with replayed: true; the same key over another proposal is refused with 409 idempotency_conflict. Answers proposal_id, applied: false, status: proposed, where (the Books screen and control that decide it) and approve_url. Refused with invalid_request and the reason for an unbalanced entry or an id of another entity, and with 409 finance_proposal_refused for a closed period, an entry already reversed or with a reversal waiting, or while the entity's owner has not switched app proposals on. Nothing is booked, matched or filed: a person accepts or dismisses it in Books.
Request
- Base URLhttps://app.magistry.io
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://app.magistry.io/api/oauth/authorizeToken URLhttps://app.magistry.io/api/oauth/tokenScopesfinance:write
Headers
Required, here or as idempotency_key in the body. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.
Request body
The entity, one of those this app was granted (GET /api/v1/finance/entities lists them). In a GET query string entity is accepted too.
What is proposed.
Why, in one or two sentences, for the person who decides (1 to 2000 characters; a reversal 10 to 500).
entry: the entry date; its period must be open. reversal: optional, on or after the entry.
entry: the entry description.
entry: two or more lines.
classification, reconciliation: the bank line.
classification: the account code.
reconciliation: the journal entry to match. reversal: the journal entry to reverse.
Same as the Idempotency-Key header; give one of the two.
Response
Result
Changes
- warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status
11 more changes in this revision
- warning