P&L

List stored cost inputs

Changed on

Every cost input stored for this shop: cost of goods per SKU and per-unit sample cost per product. Returns full history — a row per effective_from — not just what is in force today, so a caller restating an old window can see which amount applied then. sku_id is null on the product-level default.

get/pnl/costs

Request

  • Base URL
    https://api.reacherapp.com/public/v1
  • URL
    https://api.reacherapp.com/public/v1/pnl/costs
  • Auth
    API key in header x-api-key and API key in header x-shop-id

Query parameters

cost_typestring nullable

Filter to one type: cogs | sample_unit_cost.

product_idstring nullable

Filter to one product.

sku_idstring nullable

Filter to one SKU. Pass an empty string to see only product-level defaults.

Response

Successful Response

shop_idinteger required

Changes

    • breaking

      response property costs/items/amount list-of-types was widened by adding types null to media type application/json of response 200

    • info

      added the optional property // to the response with the status

    • info

      response property costs/items/id deprecated

    • info

      added the required property // to the response with the status