read
automation

Why a variant's price is what it is: every price step, with its date, actor and reason.

Changed on

One row per price or reference-price step of one variant, newest first, from the price history Magistry keeps for every variant. attribution says how the step is known: receipt when a Magistry receipt set it (its receipt_id, action_id, actor, reason and approved_by are the ones POST /api/v1/receipts returns), writer when only the writer's stamp names it, observed when a sync read it from the shop, first_seen for the first price we recorded and unknown when nothing recorded who changed it — an actor is never guessed. receipt_candidates counts the price acts that could have set the step; above 1 the newest one before the step is shown.

post/api/v1/receipts/price

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

Request body

object required
variant_id, string uuid required

The Magistry variant id.

store_id, string uuid

One store this credential covers. Defaults to all of them; never widens.

limit, integer

Steps to return.

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