propose_write
finance

Propose up to 50 entries, classifications or reconciliations in one call, each decided by a person. Posts nothing.

Changed on

items holds 1 to 50 proposals, each shaped as the arguments of a single proposal, without entity_id or a key. A malformed item refuses the whole batch with invalid_request and its index; otherwise each item is proposed or refused on its own, and items answers per index: status: proposed with proposal_id, where and approve_url, or status: refused with error (code, reason, message). Requires an Idempotency-Key header (or idempotency_key, 8 to 200 characters): a retry with the same key and the same items answers the first per-item result with replayed: true; the same key over other items is refused with 409 idempotency_conflict. A batch in which nothing was proposed keeps no key. 403 feature_off while batch proposals are switched off on the platform. Nothing is booked, matched or filed.

post/api/v1/finance/proposals/batch

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesfinance:write

Headers

Idempotency-Key, string

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

object required
entity_id, string uuid required

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.

items, object[] required

The proposals, at most 50.

idempotency_key, string required

Same as the Idempotency-Key header; give one of the two.

Response

Result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision