read
costs

Returns cost data and margin analysis for products. Confidence tier A = verified Shopify COGS, B = reverse-image AliExpr

Changed on

Returns cost data and margin analysis for products. Confidence tier A = verified Shopify COGS, B = reverse-image AliExpress estimate, C = unknown. Use when the user asks about margins, costs, profitability, or which products have unverified costs.

post/api/v1/tools/get_product_costs

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
product_ids, string[]

Optional list of product UUIDs to filter to (max 50). Omit to return latest costs across the store.

confidence_tier, 'A' | 'B' | 'C'

Optional: filter to a specific cost confidence tier.

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