Skip to main content

Upload Product Costs

POST 

/v1/profitability/product-costs

Upload a brand-scoped product-cost CSV. Valid rows are saved while rejected rows return by line and SKU; inspect updated, unchanged, and rejected counts.

Requires products.write.

Request and response fields at a glance
  • Request body (multipart/form-data): file (string, required), brandId (integer, required).
  • 201 response (application/json): brandId (number, required), rowsRead (number, required), accepted (number, required), updated (number, required), unchanged (number, required), rejected (array, required).

Request​