read
costs

Resolve a supplier cost sheet the user uploaded, by its import_id. Returns a RESOLVED MAPPING (which column identifies t

Changed on

Resolve a supplier cost sheet the user uploaded, by its import_id. Returns a RESOLVED MAPPING (which column identifies the product, which column holds the cost, the currency), how many rows actually match this store's catalogue, rows worth flagging, and — the important field — questions: the ONLY things the sheet could not answer by itself. ALWAYS call this first. If ready_to_propose is true, ask NOTHING and call propose_cost_import straight away. Otherwise ask exactly the questions listed, one at a time, with ask_user_question, passing each option's label, description AND value through unchanged — the value is the token propose_cost_import needs and it comes back on the user's answer. Never invent a question the sheet already answers, and never retype a value.

post/api/v1/tools/inspect_cost_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 cost_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