List stored cost inputs
Changed onEvery 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.
Request
- Base URLhttps://api.reacherapp.com/public/v1
- URLhttps://api.reacherapp.com/public/v1/pnl/costs
- AuthAPI key in header x-api-key and API key in header x-shop-id
Query parameters
Filter to one type: cogs | sample_unit_cost.
Filter to one product.
Filter to one SKU. Pass an empty string to see only product-level defaults.
Response
Successful Response
Changes
- breaking
response property
costs/items/amountlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - info
added the optional property
//to the response with the status
- breaking
- info
response property
costs/items/iddeprecated - info
added the required property
//to the response with the status
- info