PUT
/
v1
/
cogs_entries
/
{id}

Path Parameters

id
integer
required

The unique identifier of the COGS entry to update

Body

period
string

The accounting period for the COGS entry

product
string

The product associated with the COGS entry

quantity_sold
integer

The quantity of the product sold

cogs
number

The Cost of Goods Sold amount

average_cost
number

The average cost per unit

ending_inventory_quantity
number

The quantity of inventory remaining at the end of the period

ending_inventory_value
number

The value of the ending inventory

currency
string

The currency used for the financial calculations

exchange_rate_id
integer

Identifier for the related exchange rate

sale_transaction_id
integer

Identifier for the related sale transaction

unit_selling_price
number

The selling price per unit

gross_sales
number

The total gross sales amount

cogs_method
string

The method used to calculate COGS

product_category
string

The category of the product

sales_channel
string

The channel through which the sale was made

customer_segment
string

The segment of the customer who made the purchase

sale_date
string

The date of the sale

is_return
boolean

Indicates whether this entry is for a return

return_reason
string

The reason for the return, if applicable

cost_center
string

The cost center associated with the COGS entry

supplier_id
integer

Identifier for the related supplier

Response

id
integer

The unique identifier of the updated COGS entry

message
string

A success message confirming the update of the COGS entry