P&L

Insert 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.

put/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

Request body

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