P&L

Delete a cost input

Changed on

Remove 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 URL
    https://api.reacherapp.com/public/v1
  • URL
    https://api.reacherapp.com/public/v1/pnl/costs/{cost_id}
  • Auth
    API key in header x-api-key and API key in header x-shop-id

Path parameters

cost_idinteger required

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