Set cost inputs
Changed onInsert or update cost inputs in bulk — the endpoint a spreadsheet or CSV import writes through. Rows are keyed on (product_id, sku_id, cost_type, effective_from): re-sending a key overwrites its amount rather than stacking a second cost onto the same units, so replaying the same import is safe. Omit sku_id to set a product-level default that applies to every SKU without one of its own. Once the shop has closed its books, a row without effective_from starts the day after the close, and an effective_from on or before it returns 409 PNL_PERIOD_CLOSED. Requires read_write scope and a single shop.
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
Request body
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