---
title: "Creates a new product cost"
method: POST
path: "/products/{public_id}/costs"
tags: ["products"]
---

# Creates a new product cost

`POST /products/{public_id}/costs`

## Request

- Base URL: `https://api.autron.ai`
- URL: `https://api.autron.ai/products/{public_id}/costs`
- Auth: API key in header `Authorization`

## Request body

- ProductCost
  - `public_id` string: product cost public id
  - `cost_of_goods_per_unit` number, required: product cost of goods per unit
  - `shipping_cost_per_unit` number, required: product shipping cost per unit
  - `misc_cost_per_unit` number: product miscellaneous cost per unit
  - `total_cost_per_unit` number: product total cost per unit
  - `effective_from` string, date-time, required: product cost effective from datetime
  - `effective_to` string, date-time: product cost effective to datetime
  - `state` string: product cost state: [enabled, disabled, archived]

## Response `200`

Success

---

[API](https://skmtc.dev/autron/apis/autron-api.md) · [All operations](https://skmtc.dev/autron/apis/autron-api/llms.txt) · [OpenAPI document](https://skmtc.dev/autron/apis/autron-api/revisions/f696bfa7295f?raw)
