P&L
Delete a cost input
Changed onRemove one stored cost by its id. The units it covered become uncosted again and drop out of contribution_profit — they are not treated as free-of-charge silently, they are reported as uncosted. Scoped to this shop, so an id belonging to another shop returns 404. A row in force on a day the shop has closed returns 409 PNL_PERIOD_CLOSED: deleting it would restate that day. Requires read_write scope and a single shop.
delete/pnl/costs/{cost_id}
Request
- Base URLhttps://api.reacherapp.com/public/v1
- URLhttps://api.reacherapp.com/public/v1/pnl/costs/{cost_id}
- AuthAPI key in header x-api-key and API key in header x-shop-id
Path parameters
cost_idinteger required
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