read
costs

Profile a spreadsheet the user uploaded to import as expenses, by its import_id. Returns the detected columns (which is

Changed on

Profile a spreadsheet the user uploaded to import as expenses, by its import_id. Returns the detected columns (which is the store / amount / date / label), the distinct values of the store column tagged as matches-a-store / not-in-account / blank, a count of refund (negative) rows, the full list of the user's stores, each store's expense categories, and a 10-row sample. ALWAYS call this first when a sheet is attached, then CONFIRM with the user how to map each store value, the currency, and whether to skip refunds before calling propose_expense_import.

post/api/v1/tools/inspect_expense_import

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
      Scopescosts:read

Request body

object required
import_id, string uuid required

The staged expense_imports id.

Response

Tool 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