read

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

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
  • URL: https://app.magistry.io/api/v1/tools/inspect_cost_import
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.magistry.io/api/oauth/authorize, token URL https://app.magistry.io/api/oauth/token, scopes: costs:read)

Request body

import_idstring uuid required

The staged cost_imports id.

Response

Tool result

okboolean required
resultunknown required

Changes

No recorded changes to this operation across all 3 revisions of this API.